[U-Boot] [PATCH v5 08/10] fdtdec: sort include files

Simon Glass sjg at chromium.org
Wed Sep 13 04:26:42 UTC 2017


Hi Jean-Jacques,

On 12 September 2017 at 08:45, Jean-Jacques Hiblot <jjhiblot at ti.com> wrote:
> Sort include files in accordance to U-Boot coding style.
>
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
> ---
>  lib/fdtdec.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/lib/fdtdec.c b/lib/fdtdec.c
> index 630e040..ee398d1 100644
> --- a/lib/fdtdec.c
> +++ b/lib/fdtdec.c
> @@ -4,17 +4,17 @@
>   */
>
>  #ifndef USE_HOSTCC
> +#include <asm/sections.h>
>  #include <boot_fit.h>
>  #include <common.h>
>  #include <dm.h>
> +#include <dm/of_extra.h>
>  #include <errno.h>
> -#include <serial.h>
> -#include <libfdt.h>
> -#include <fdt_support.h>
>  #include <fdtdec.h>
> -#include <asm/sections.h>
> -#include <dm/of_extra.h>
> +#include <fdt_support.h>
> +#include <libfdt.h>
>  #include <linux/ctype.h>
> +#include <serial.h>

The asm and linux things come at the end. Please see:

https://www.denx.de/wiki/U-Boot/CodingStyle

>
>  DECLARE_GLOBAL_DATA_PTR;
>
> --
> 1.9.1
>

Regards,
Simon


More information about the U-Boot mailing list