[PATCH v4 1/2] board/km/cent2: add include common.h

Tom Rini trini at konsulko.com
Wed Jul 19 22:28:11 CEST 2023


On Wed, Jul 19, 2023 at 03:45:43PM +0200, christian.taedcke-oss at weidmueller.com wrote:

> From: Christian Taedcke <christian.taedcke at weidmueller.com>
> 
> Including common.h before event.h is required, because the new fpga
> load event in event.h uses the size_t type.
> 
> Signed-off-by: Christian Taedcke <christian.taedcke at weidmueller.com>
> ---
> 
> Changes in v4:
> - add include common.h to kmcent2 board file
> 
>  board/keymile/kmcent2/kmcent2.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/board/keymile/kmcent2/kmcent2.c b/board/keymile/kmcent2/kmcent2.c
> index ed552c57b5..6dbaaa5457 100644
> --- a/board/keymile/kmcent2/kmcent2.c
> +++ b/board/keymile/kmcent2/kmcent2.c
> @@ -6,6 +6,7 @@
>   * Copyright 2013 Freescale Semiconductor, Inc.
>   */
>  
> +#include <common.h>
>  #include <event.h>
>  #include <asm/cache.h>
>  #include <asm/fsl_fdt.h>

No, we aren't adding common.h to more files.  What in event.h needs some
other part of common.h that it's not getting today?  common.h has
nothing more in it than other includes.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230719/10c09ea5/attachment-0001.sig>


More information about the U-Boot mailing list