diff options
| author | Masahiro Yamada <[email protected]> | 2023-02-19 14:15:52 +0000 |
|---|---|---|
| committer | John Paul Adrian Glaubitz <[email protected]> | 2023-07-05 16:51:10 +0000 |
| commit | 706afcea16cd83fecb7c2229ccc31bb237ffdbef (patch) | |
| tree | 1553bdc000abc43e47f3010c102c4b5cb01f4994 /scripts/clang-tools/gen_compile_commands.py | |
| parent | sh: Avoid using IRQ0 on SH3 and SH4 (diff) | |
| download | kernel-706afcea16cd83fecb7c2229ccc31bb237ffdbef.tar.gz kernel-706afcea16cd83fecb7c2229ccc31bb237ffdbef.zip | |
sh: Fix -Wmissing-include-dirs warnings for various platforms
The 0day bot reports a lot of warnings (or errors due to CONFIG_WERROR)
like this:
cc1: error: arch/sh/include/mach-hp6xx: No such file or directory [-Werror=missing-include-dirs]
Indeed, arch/sh/include/mach-hp6xx does not exist.
While -Wmissing-include-dirs is only a W=1 warning, it may be
annoying when CONFIG_BTRFS_FS is enabled because fs/btrfs/Makefile
unconditionally adds this warning option.
arch/sh/Makefile defines machdir-y for two purposes:
- Build platform code in arch/sh/boards/mach-*/
- Add arch/sh/include/mach-*/ to the header search path
For the latter, some platforms use arch/sh/include/mach-common/
instead of having its own arch/sh/include/mach-*/.
Drop unneeded machdir-y to omit non-existing include directories.
To build arch/sh/boards/mach-*/, use the standard obj-y syntax in
arch/sh/boards/Makefile.
Reported-by: kernel test robot <[email protected]>
Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Masahiro Yamada <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Reviewed-by: John Paul Adrian Glaubitz <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: John Paul Adrian Glaubitz <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
