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 <mikael.olsson@arm.com>
diff --git a/mailbox/Kbuild b/mailbox/Kbuild
index 7476fcb..599988d 100644
--- a/mailbox/Kbuild
+++ b/mailbox/Kbuild
@@ -1,5 +1,6 @@
 #
-# (C) COPYRIGHT 2020 ARM Limited. All rights reserved.
+# SPDX-FileCopyrightText: Copyright 2020,2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
+# 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_ARM_MHU) += arm_mhu.o