Patch "watchdog/sb_watchdog: fix compilation problem due to COMPILE_TEST" has been added to the 5.14-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

    watchdog/sb_watchdog: fix compilation problem due to COMPILE_TEST

to the 5.14-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:
     watchdog-sb_watchdog-fix-compilation-problem-due-to-.patch
and it can be found in the queue-5.14 subdirectory.

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



commit 02024332805c64f7a5897b81a9592a5c5a8d339b
Author: Jackie Liu <liuyun01@xxxxxxxxxx>
Date:   Mon Sep 13 15:32:20 2021 +0800

    watchdog/sb_watchdog: fix compilation problem due to COMPILE_TEST
    
    [ Upstream commit c388a18957efdf31db8e97ec4d2d4b7dc1ca9a44 ]
    
    Compiling sb_watchdog needs to clearly define SIBYTE_HDR_FEATURES.
    In arch/mips/sibyte/Platform like:
    
      cflags-$(CONFIG_SIBYTE_BCM112X) +=                                      \
                    -I$(srctree)/arch/mips/include/asm/mach-sibyte          \
                    -DSIBYTE_HDR_FEATURES=SIBYTE_HDR_FMASK_1250_112x_ALL
    
    Otherwise, SIBYTE_HDR_FEATURES is SIBYTE_HDR_FMASK_ALL.
    SIBYTE_HDR_FMASK_ALL is mean:
    
     #define SIBYTE_HDR_FMASK_ALL  SIBYTE_HDR_FMASK_1250_ALL | SIBYTE_HDR_FMASK_112x_ALL \
                                         | SIBYTE_HDR_FMASK_1480_ALL)
    
    So, If not limited to CPU_SB1, we will get such an error:
    
      arch/mips/include/asm/sibyte/bcm1480_scd.h:261: error: "M_SPC_CFG_CLEAR" redefined [-Werror]
      arch/mips/include/asm/sibyte/bcm1480_scd.h:262: error: "M_SPC_CFG_ENABLE" redefined [-Werror]
    
    Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
    Signed-off-by: Jackie Liu <liuyun01@xxxxxxxxxx>
    Reviewed-by: Guenter Roeck <linux@xxxxxxxxxxxx>
    Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index 546dfc1e2349..71cf3f503f16 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -1677,7 +1677,7 @@ config WDT_MTX1
 
 config SIBYTE_WDOG
 	tristate "Sibyte SoC hardware watchdog"
-	depends on CPU_SB1 || (MIPS && COMPILE_TEST)
+	depends on CPU_SB1
 	help
 	  Watchdog driver for the built in watchdog hardware in Sibyte
 	  SoC processors.  There are apparently two watchdog timers



[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