From 6f9215501355f00d7e6a8f923cbd80eaf3fb55d1 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 11 Jul 2023 13:26:51 +0100 Subject: [PATCH] drivers: Enable -Werror for all drivers Treat all warnings as errors when compiling the out-of-tree drivers. Bug 4190165 Change-Id: Idba0f6385445b010cd272d5c44c517dfdf1f45ec Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2934460 Reviewed-by: svcacv Reviewed-by: Laxman Dewangan GVS: Gerrit_Virtual_Submit --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index cd12a56b..7381d225 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ LINUXINCLUDE += -I$(srctree.nvidia-oot)/include +subdir-ccflags-y += -Werror + ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y) subdir-ccflags-y += -DCONFIG_TEGRA_VIRTUALIZATION endif