[PATCH] x86: Fix i8254 ifdef include guard

Bin Meng bmeng.cn at gmail.com
Wed Oct 27 05:08:48 CEST 2021


On Thu, Oct 21, 2021 at 5:31 AM Alistair Delva <adelva at google.com> wrote:
>
> When building U-Boot with clang, it notices that the i8254.h include
> guard does not work correctly due to a typo. Fix it.
>
> Signed-off-by: Alistair Delva <adelva at google.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> ---
>  arch/x86/include/asm/i8254.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/include/asm/i8254.h b/arch/x86/include/asm/i8254.h
> index d769daf85d..bb8930338b 100644
> --- a/arch/x86/include/asm/i8254.h
> +++ b/arch/x86/include/asm/i8254.h
> @@ -7,7 +7,7 @@
>  /* i8254.h Intel 8254 PIT registers */
>
>  #ifndef _ASMI386_I8254_H_
> -#define _ASMI386_I8954_H_
> +#define _ASMI386_I8254_H_

There is another I8954 at the end of this file. I can fix it when applying.

>
>  #define PIT_T0         0x00    /* PIT channel 0 count/status */
>  #define PIT_T1         0x01    /* PIT channel 1 count/status */

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list