From: Tom Rini Date: Thu, 2 May 2024 01:31:37 +0000 (-0600) Subject: api: Remove and add needed includes X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=1227a30d0056e8f09e7bb97a555ccfa900afba46;p=u-boot.git api: Remove and add needed includes Remove from here and when needed add missing include files directly. Signed-off-by: Tom Rini --- diff --git a/api/api.c b/api/api.c index 89003c161c..d22132f62f 100644 --- a/api/api.c +++ b/api/api.c @@ -7,11 +7,13 @@ #include #include -#include #include #include +#include #include +#include #include +#include #include #include #include diff --git a/api/api_display.c b/api/api_display.c index 2e877a85d1..8fd078c8c4 100644 --- a/api/api_display.c +++ b/api/api_display.c @@ -3,9 +3,9 @@ * Copyright (c) 2011 The Chromium OS Authors. */ -#include #include #include +#include /* TODO(clchiou): add support of video device */ diff --git a/api/api_net.c b/api/api_net.c index 7515c26e8b..264ff53056 100644 --- a/api/api_net.c +++ b/api/api_net.c @@ -6,7 +6,6 @@ */ #include -#include #include #include #include diff --git a/api/api_storage.c b/api/api_storage.c index 78becbe39f..3d2d9d6ef4 100644 --- a/api/api_storage.c +++ b/api/api_storage.c @@ -6,10 +6,10 @@ */ #include -#include #include #include #include +#include #if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE) #include diff --git a/examples/api/demo.c b/examples/api/demo.c index d586174ce8..677d13b307 100644 --- a/examples/api/demo.c +++ b/examples/api/demo.c @@ -5,7 +5,7 @@ * Written by: Rafal Jaworowski */ -#include +#include #include #include #include diff --git a/examples/api/glue.c b/examples/api/glue.c index 075d307ae2..08c21a8cb9 100644 --- a/examples/api/glue.c +++ b/examples/api/glue.c @@ -3,7 +3,6 @@ * (C) Copyright 2007-2008 Semihalf, Rafal Jaworowski */ -#include #include #include #include diff --git a/examples/api/libgenwrap.c b/examples/api/libgenwrap.c index 3aa222866f..bfd88e100d 100644 --- a/examples/api/libgenwrap.c +++ b/examples/api/libgenwrap.c @@ -9,7 +9,6 @@ * existing code e.g. operations on strings and similar. */ -#include #include #include #include diff --git a/examples/standalone/atmel_df_pow2.c b/examples/standalone/atmel_df_pow2.c index dcb25da949..ed0d7aeaad 100644 --- a/examples/standalone/atmel_df_pow2.c +++ b/examples/standalone/atmel_df_pow2.c @@ -6,7 +6,6 @@ * Licensed under the 2-clause BSD. */ -#include #include #include #include diff --git a/examples/standalone/sched.c b/examples/standalone/sched.c index 1c52960713..d507163f6f 100644 --- a/examples/standalone/sched.c +++ b/examples/standalone/sched.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+ -#include #include /* diff --git a/examples/standalone/stubs.c b/examples/standalone/stubs.c index 65115570e8..04e8acb8ab 100644 --- a/examples/standalone/stubs.c +++ b/examples/standalone/stubs.c @@ -1,4 +1,3 @@ -#include #include #include diff --git a/include/api_public.h b/include/api_public.h index 5a4465ea89..e89572c00a 100644 --- a/include/api_public.h +++ b/include/api_public.h @@ -8,6 +8,8 @@ #ifndef _API_PUBLIC_H_ #define _API_PUBLIC_H_ +#include + #define API_EINVAL 1 /* invalid argument(s) */ #define API_ENODEV 2 /* no device */ #define API_ENOMEM 3 /* no memory */