[SRU][J][devel][PATCH 2/2] UBUNTU: SAUCE: Makefile: Fix compiler warnings

Juerg Haefliger juerg.haefliger at canonical.com
Mon Feb 14 10:29:36 UTC 2022


When building out-of-tree (which we do for package builds), the compiler
emits the following warning:

cc1: warning: ubuntu/include: No such file or directory [-Wmissing-include-dirs]

Fix that by (always) using the absolute path of the include directory.

Signed-off-by: Juerg Haefliger <juergh at canonical.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index db3d9c4a5f58..aca426cc63ba 100644
--- a/Makefile
+++ b/Makefile
@@ -509,7 +509,7 @@ LINUXINCLUDE    := \
 		$(USERINCLUDE)
 
 # UBUNTU: Include our third party driver stuff too
-LINUXINCLUDE   += -Iubuntu/include $(if $(KBUILD_SRC),-I$(srctree)/ubuntu/include)
+LINUXINCLUDE   += -I$(srctree)/ubuntu/include
 
 KBUILD_AFLAGS   := -D__ASSEMBLY__ -fno-PIE
 KBUILD_CFLAGS   := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \
-- 
2.32.0




More information about the kernel-team mailing list