From: Jan Kiszka <[email protected]> subdir-ccflags-y doesn't have the desired effect, at least with recent kernels.
Reported-by: Jan-Marc Stranz <[email protected]> Signed-off-by: Jan Kiszka <[email protected]> --- Kbuild | 2 -- configs/Makefile | 2 +- hypervisor/Makefile | 2 +- inmates/Makefile | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Kbuild b/Kbuild index 1808dc77..b76a8dd7 100644 --- a/Kbuild +++ b/Kbuild @@ -56,8 +56,6 @@ $(GEN_PCI_DEFS_PY): $(src)/scripts/gen_pci_defs.sh subdir-y := hypervisor configs inmates tools -subdir-ccflags-y := -Werror - obj-m := driver/ # Do not generate files by creating dependencies if we are cleaning up diff --git a/configs/Makefile b/configs/Makefile index 31ca15a3..513b0a9b 100644 --- a/configs/Makefile +++ b/configs/Makefile @@ -17,7 +17,7 @@ include $(ALWAYS_COMPAT_MK) LINUXINCLUDE := -I$(src)/../hypervisor/arch/$(SRCARCH)/include \ -I$(src)/../hypervisor/include \ -I$(src)/../include -KBUILD_CFLAGS := -Wextra -D__LINUX_COMPILER_TYPES_H +KBUILD_CFLAGS := -Werror -Wextra -D__LINUX_COMPILER_TYPES_H ifneq ($(wildcard $(obj)/../include/jailhouse/config.h),) KBUILD_CFLAGS += -include $(obj)/../include/jailhouse/config.h diff --git a/hypervisor/Makefile b/hypervisor/Makefile index b8377a33..5322b5aa 100644 --- a/hypervisor/Makefile +++ b/hypervisor/Makefile @@ -26,7 +26,7 @@ LINUXINCLUDE := -I$(src)/arch/$(SRCARCH)/include \ -I$(src)/../include/arch/$(SRCARCH) \ -I$(src)/../include KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE -KBUILD_CFLAGS := -g -Os -Wall -Wstrict-prototypes -Wtype-limits \ +KBUILD_CFLAGS := -g -Os -Werror -Wall -Wstrict-prototypes -Wtype-limits \ -Wmissing-declarations -Wmissing-prototypes \ -fno-strict-aliasing -fno-pic -fno-common \ -fno-stack-protector -fno-builtin-ffsl \ diff --git a/inmates/Makefile b/inmates/Makefile index 81099b84..7d3fafa0 100644 --- a/inmates/Makefile +++ b/inmates/Makefile @@ -22,7 +22,7 @@ INCLUDES := -I$(INMATES_LIB) \ LINUXINCLUDE := $(INCLUDES) KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE -KBUILD_CFLAGS := -g -Os -Wall -Wstrict-prototypes -Wtype-limits \ +KBUILD_CFLAGS := -g -Os -Werror -Wall -Wstrict-prototypes -Wtype-limits \ -Wmissing-declarations -Wmissing-prototypes \ -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ -fno-common -fno-stack-protector -ffreestanding \ -- 2.26.2 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/d046f951-101f-5bfe-d055-abd2a40c9209%40web.de.
