From 6e0778ab30f471d957c6e02f42c24565abd38aa0 Mon Sep 17 00:00:00 2001 From: Mikael Olsson Date: Fri, 6 Oct 2023 13:59:44 +0200 Subject: Add -Werror to kernel module builds To ensure that no compilation warnings goes unnoticed, the kernel modules are now built with the -Werror flag so all warnings are treated as errors. Change-Id: Id688052bd297e366ab7ca07c508ca697ca03431e Signed-off-by: Mikael Olsson --- kernel/Kbuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'kernel/Kbuild') diff --git a/kernel/Kbuild b/kernel/Kbuild index 4b76b0d..a83400f 100644 --- a/kernel/Kbuild +++ b/kernel/Kbuild @@ -1,5 +1,6 @@ # -# Copyright 2020,2022-2023 Arm Limited and/or its affiliates +# SPDX-FileCopyrightText: Copyright 2020,2022-2023 Arm Limited and/or its affiliates +# SPDX-License-Identifier: GPL-2.0-only # # This program is free software and is provided to you under the terms of the # GNU General Public License version 2 as published by the Free Software @@ -15,8 +16,8 @@ # along with this program; if not, you can access it online at # http://www.gnu.org/licenses/gpl-2.0.html. # -# SPDX-License-Identifier: GPL-2.0-only -# + +ccflags-y += -Werror obj-$(CONFIG_ETHOSU) = ethosu.o -- cgit v1.2.1