Fwd: [PATCH v2] uml: fix W=1 missing-include-dirs warnings

Anton Ivanov anton.ivanov at cambridgegreys.com
Fri Apr 16 10:15:05 BST 2021

Hi list,

If memory serves me right, the UML build in OpenWRT adds a uapi subdir. This patch adds it upstream and will probably break the openwrt build once it propagates.

Best Regards,


-------- Forwarded Message --------
Subject: 	[PATCH v2] uml: fix W=1 missing-include-dirs warnings
Date: 	Thu, 15 Apr 2021 10:13:52 -0700
From: 	Randy Dunlap <rdunlap at infradead.org>
To: 	linux-kernel at vger.kernel.org
CC: 	Randy Dunlap <rdunlap at infradead.org>, Masahiro Yamada <masahiroy at kernel.org>, Michal Marek <michal.lkml at markovi.net>, linux-kbuild at vger.kernel.org, Jeff Dike <jdike at addtoit.com>, Richard Weinberger <richard at nod.at>, Anton Ivanov <anton.ivanov at cambridgegreys.com>, linux-um at lists.infradead.org

Currently when using "W=1" with UML builds, there are over 700 warnings
like so:

CC arch/um/drivers/stderr_console.o
cc1: warning: ./arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]

but arch/um/ does not have include/uapi/ at all, so add that
subdir and put one Kbuild file into it (since git does not track
empty subdirs).

Signed-off-by: Randy Dunlap <rdunlap at infradead.org>
Cc: Masahiro Yamada <masahiroy at kernel.org>
Cc: Michal Marek <michal.lkml at markovi.net>
Cc: linux-kbuild at vger.kernel.org
Cc: Jeff Dike <jdike at addtoit.com>
Cc: Richard Weinberger <richard at nod.at>
Cc: Anton Ivanov <anton.ivanov at cambridgegreys.com>
Cc: linux-um at lists.infradead.org
v2: use Option 4 from v1: add arch/um/include/uapi so that 'make' is
placated -- and just like all other arch's have.

arch/um/include/uapi/asm/Kbuild | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/um/include/uapi/asm/Kbuild b/arch/um/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..f66554cd5c45
--- /dev/null
+++ b/arch/um/include/uapi/asm/Kbuild
@@ -0,0 +1 @@
+# SPDX-License-Identifier: GPL-2.0

linux-um mailing list
linux-um at lists.infradead.org

More information about the openwrt-devel mailing list