Patch "net: wwan: t7xx: do not compile with -Werror" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: wwan: t7xx: do not compile with -Werror

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-wwan-t7xx-do-not-compile-with-werror.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 2daaf57cbc314915e7f9a2b06e0a06d318263d93
Author: Jiri Slaby (SUSE) <jirislaby@xxxxxxxxxx>
Date:   Fri Mar 31 08:35:15 2023 +0200

    net: wwan: t7xx: do not compile with -Werror
    
    [ Upstream commit 362f0b6678ad1377c322a7dd237ea6785efc7342 ]
    
    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) <jirislaby@xxxxxxxxxx>
    Link: https://lore.kernel.org/all/20230330232717.1f8bf5ea@xxxxxxxxxx/
    Cc: Chandrashekar Devegowda <chandrashekar.devegowda@xxxxxxxxx>
    Cc: Intel Corporation <linuxwwan@xxxxxxxxx>
    Cc: Chiranjeevi Rapolu <chiranjeevi.rapolu@xxxxxxxxxxxxxxx>
    Cc: Liu Haijun <haijun.liu@xxxxxxxxxxxx>
    Cc: M Chetan Kumar <m.chetan.kumar@xxxxxxxxxxxxxxx>
    Cc: Ricardo Martinez <ricardo.martinez@xxxxxxxxxxxxxxx>
    Cc: Loic Poulain <loic.poulain@xxxxxxxxxx>
    Cc: Sergey Ryazanov <ryazanov.s.a@xxxxxxxxx>
    Cc: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
    Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
    Cc: Eric Dumazet <edumazet@xxxxxxxxxx>
    Cc: Jakub Kicinski <kuba@xxxxxxxxxx>
    Cc: Paolo Abeni <pabeni@xxxxxxxxxx>
    Cc: netdev@xxxxxxxxxxxxxxx
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wwan/t7xx/Makefile b/drivers/net/wwan/t7xx/Makefile
index dc6a7d682c159..5e6398b527e72 100644
--- a/drivers/net/wwan/t7xx/Makefile
+++ b/drivers/net/wwan/t7xx/Makefile
@@ -1,7 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0-only
 
-ccflags-y += -Werror
-
 obj-${CONFIG_MTK_T7XX} := mtk_t7xx.o
 mtk_t7xx-y:=	t7xx_pci.o \
 		t7xx_pcie_mac.o \



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux