diff options
author | Masahiro Yamada <[email protected]> | 2024-04-27 23:55:00 +0900 |
---|---|---|
committer | Masahiro Yamada <[email protected]> | 2024-05-07 23:30:50 +0900 |
commit | 9dcb47a616d552306a01c2032b81c0c920b06847 (patch) | |
tree | 1f4e78a9b0db6ebc2fb2be5c6e88737eb1d1a0f6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b957df3b858d16ba3d4291233569bba09cfd08c7 (diff) |
kbuild: do not add $(srctree) or $(objtree) to header search paths
scripts/Makefile.lib is included not only from scripts/Makefile.build
but also from scripts/Makefile.{vmlinux,modfinal} for building generated
C files.
In scripts/Makefile.{vmlinux,modfinal}, $(obj) and $(src) are empty.
Therefore, the header include paths:
-I $(srctree)/$(src) -I $(objtree)/$(obj)
... become meaningless code:
-I $(srctree)/ -I $(objtree)/
Add these paths only when 'obj' and 'src' are defined.
Reported-by: kernel test robot <[email protected]>
Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Masahiro Yamada <[email protected]>
Reviewed-by: Nicolas Schier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions