Skip to content

Commit 362f0b6

Browse files
Jiri Slaby (SUSE)davem330
authored andcommitted
net: wwan: t7xx: do not compile with -Werror
When playing with various compilers or their versions, some choke on the t7xx code. For example (with gcc 13): In file included from ./arch/s390/include/generated/asm/rwonce.h:1, from ../include/linux/compiler.h:247, from ../include/linux/build_bug.h:5, from ../include/linux/bits.h:22, from ../drivers/net/wwan/t7xx/t7xx_state_monitor.c:17: In function 'preempt_count', inlined from 't7xx_fsm_append_event' at ../drivers/net/wwan/t7xx/t7xx_state_monitor.c:439:43: ../include/asm-generic/rwonce.h:44:26: error: array subscript 0 is outside array bounds of 'const volatile int[0]' [-Werror=array-bounds=] There is no reason for any code in the kernel to be built with -Werror by default. Note that we have generic CONFIG_WERROR. So if anyone wants -Werror, they can enable that. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Cc: Chandrashekar Devegowda <[email protected]> Cc: Intel Corporation <[email protected]> Cc: Chiranjeevi Rapolu <[email protected]> Cc: Liu Haijun <[email protected]> Cc: M Chetan Kumar <[email protected]> Cc: Ricardo Martinez <[email protected]> Cc: Loic Poulain <[email protected]> Cc: Sergey Ryazanov <[email protected]> Cc: Johannes Berg <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: Paolo Abeni <[email protected]> Cc: [email protected] Signed-off-by: David S. Miller <[email protected]>
1 parent c5b959e commit 362f0b6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/wwan/t7xx/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22

3-
ccflags-y += -Werror
4-
53
obj-${CONFIG_MTK_T7XX} := mtk_t7xx.o
64
mtk_t7xx-y:= t7xx_pci.o \
75
t7xx_pcie_mac.o \

0 commit comments

Comments
 (0)