diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-10 11:39:55 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-18 14:54:24 -0400 |
commit | c3dc39a2f85b16bf590789f7e283cd72275cd168 (patch) | |
tree | fd07b448aa4192e1d4fede43e412d5fdfa584b82 /include/linux | |
parent | b79fdc76978515fba2c4f3b5b4f2e679c5ff1463 (diff) |
arm: Don't include common.h in header files
It is bad practice to include common.h in other header files since it can
bring in any number of superfluous definitions. It implies that some C
files don't include it and thus may be missing CONFIG options that are set
up by that file. The C files should include these themselves.
Update some header files in arch/arm to drop this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/compat.h | 1 | ||||
-rw-r--r-- | include/linux/mtd/rawnand.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h index 171188a76f..712eeaef4e 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -1,6 +1,7 @@ #ifndef _LINUX_COMPAT_H_ #define _LINUX_COMPAT_H_ +#include <log.h> #include <malloc.h> #include <linux/types.h> #include <linux/err.h> diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h index bd373b9617..66febc6b72 100644 --- a/include/linux/mtd/rawnand.h +++ b/include/linux/mtd/rawnand.h @@ -16,6 +16,7 @@ #include <config.h> #include <dm/device.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <linux/mtd/mtd.h> #include <linux/mtd/flashchip.h> |