Message ID | 20231012230359.2005249-2-trini@konsulko.com |
---|---|
State | Accepted |
Commit | 12c00f9e8b3e7987cfc5243f5b3edbe6c9fdfdc2 |
Delegated to: | Tom Rini |
Headers | show |
Series | [1/7] checkpatch.pl: Make common.h check boarder | expand |
On Thu, 12 Oct 2023 at 16:04, Tom Rini <trini@konsulko.com> wrote: > > These files references a number of types that are defined in > <linux/types.h> (and so forth), so include it here rather than rely on > indirect inclusion. > > Signed-off-by: Tom Rini <trini@konsulko.com> > --- > Cc: Simon Glass <sjg@chromium.org> > --- > include/bootstage.h | 1 + > include/cache.h | 2 ++ > include/cpu.h | 2 ++ > 3 files changed, 5 insertions(+) > Reviewed-by: Simon Glass <sjg@chromium.org>
On Thu, Oct 12, 2023 at 07:03:54PM -0400, Tom Rini wrote: > These files references a number of types that are defined in > <linux/types.h> (and so forth), so include it here rather than rely on > indirect inclusion. > > Signed-off-by: Tom Rini <trini@konsulko.com> > Reviewed-by: Simon Glass <sjg@chromium.org> Applied to u-boot/master, thanks!
diff --git a/include/bootstage.h b/include/bootstage.h index f9376c320c96..affb0e5c6a6a 100644 --- a/include/bootstage.h +++ b/include/bootstage.h @@ -11,6 +11,7 @@ #ifndef _BOOTSTAGE_H #define _BOOTSTAGE_H +#include <linux/types.h> #include <linux/kconfig.h> /* Flags for each bootstage record */ diff --git a/include/cache.h b/include/cache.h index b12fec259156..296ae3c8b48e 100644 --- a/include/cache.h +++ b/include/cache.h @@ -6,6 +6,8 @@ #ifndef __CACHE_H #define __CACHE_H +#include <linux/types.h> + struct udevice; /* diff --git a/include/cpu.h b/include/cpu.h index be02a1671298..2077ff30634b 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -7,6 +7,8 @@ #ifndef __CPU_H #define __CPU_H +#include <linux/types.h> + struct udevice; /**
These files references a number of types that are defined in <linux/types.h> (and so forth), so include it here rather than rely on indirect inclusion. Signed-off-by: Tom Rini <trini@konsulko.com> --- Cc: Simon Glass <sjg@chromium.org> --- include/bootstage.h | 1 + include/cache.h | 2 ++ include/cpu.h | 2 ++ 3 files changed, 5 insertions(+)