watchdog: mtx-1: drop au1000.h header file
PATCH 1/1 watchdog: mtx-1: drop au1000.h header file
The mtx-1_wdt driver does not need the au1000.h header file. Instead, the header file causes build errors, so drop it.
This change fixes multiple build errors, all in au1000.h. E.g.:
In file included from ../drivers/watchdog/mtx-1_wdt.c:44:../arch/mips/include/asm/mach-au1x00/au1000.h: In function 'alchemy_rdsys':../arch/mips/include/asm/mach-au1x00/au1000.h:603:36: error: implicit declaration of function 'KSEG1ADDR'; did you mean 'CKSEG1ADDR'? [-Werror=implicit-function-declaration]
603 | void __iomem *b = (void __iomem *)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);../arch/mips/include/asm/mach-au1x00/au1000.h:603:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
603 | void __iomem *b = (void __iomem *)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);
--- drivers/watchdog/mtx-1_wdt.c | 2 -- 1 file changed, 2 deletions(-)
drivers/watchdog/mtx-1_wdt.c +0 -2
@@ -41,8 +41,6 @@#include <linux/uaccess.h> #include <linux/gpio/consumer.h> -#include <asm/mach-au1x00/au1000.h> -#define MTX1_WDT_INTERVAL (5 * HZ)static int ticks =100 *HZ ;
Quoted 5 lines · Randy Dunlap
The mtx-1_wdt driver does not need the
au1000.hheader file. Instead, the header file causes build errors, so drop it.This change fixes multiple build errors, all in
au1000.h. E.g.:
Quoted 8 lines
In file included from
../drivers/watchdog/mtx-1_wdt.c:44:../arch/mips/include/asm/mach-au1x00/au1000.h: In function 'alchemy_rdsys':../arch/mips/include/asm/mach-au1x00/au1000.h:603:36: error: implicit declaration of function 'KSEG1ADDR'; did you mean 'CKSEG1ADDR'? [-Werror=implicit-function-declaration]
603 | void__iomem*b = (void__iomem*)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);../arch/mips/include/asm/mach-au1x00/au1000.h:603:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
603 | void__iomem*b = (void__iomem*)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);Fixes 04bf3b4f5fc0 ("[WATCHDOG] MTX-1 Watchdog driver")
More like
Quoted 5 lines
Signed-off-by Randy Dunlap <[email protected]>Cc Wim Van Sebroeck <[email protected]>Cc Guenter Roeck <[email protected]>Cc Florian Fainelli <[email protected]>
Quoted 16 lines
--- drivers/watchdog/mtx-1_wdt.c | 2 -- 1 file changed, 2 deletions(-)drivers/watchdog/mtx-1_wdt.c +0
-2@@ -41,8 +41,6 @@#include <linux/uaccess.h> #include <linux/gpio/consumer.h> -#include <asm/mach-au1x00/au1000.h> -#define MTX1_WDT_INTERVAL (5 * HZ)static int ticks =100 *HZ ;
Quoted 13 lines · Guenter Roeck
Quoted 12 lines · Randy Dunlap
The mtx-1_wdt driver does not need the
au1000.hheader file. Instead, the header file causes build errors, so drop it.This change fixes multiple build errors, all in
au1000.h. E.g.:In file included from
../drivers/watchdog/mtx-1_wdt.c:44:../arch/mips/include/asm/mach-au1x00/au1000.h: In function 'alchemy_rdsys':../arch/mips/include/asm/mach-au1x00/au1000.h:603:36: error: implicit declaration of function 'KSEG1ADDR'; did you mean 'CKSEG1ADDR'? [-Werror=implicit-function-declaration] 603 | void__iomem*b = (void__iomem*)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);../arch/mips/include/asm/mach-au1x00/au1000.h:603:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
603 | void__iomem*b = (void__iomem*)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);
Quoted 5 lines
Quoted 1 line
Fixes 04bf3b4f5fc0 ("[WATCHDOG] MTX-1 Watchdog driver")More like
Fixes da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Duh. Thanks.
Quoted 21 lines
Quoted 5 lines
Signed-off-by Randy Dunlap <[email protected]>Cc Wim Van Sebroeck <[email protected]>Cc Guenter Roeck <[email protected]>Cc Florian Fainelli <[email protected]>Reviewed-by Guenter Roeck <[email protected]>Quoted 13 lines
---
drivers/watchdog/mtx-1_wdt.c| 2 --1 file changed, 2 deletions(-)drivers/watchdog/mtx-1_wdt.c +0
-0@@ -41,8 +41,6 @@ #include <linux/uaccess.h> #include <linux/gpio/consumer.h>-#include <
asm/mach-au1x00/au1000.h>
-
#define MTX1_WDT_INTERVAL (5 * HZ)
static int ticks = 100 * HZ;
Guenter Roeck
maintainerQuoted 14 lines · Randy Dunlap
Quoted 13 lines · Guenter Roeck
Quoted 12 lines · Randy Dunlap
The mtx-1_wdt driver does not need the
au1000.hheader file. Instead, the header file causes build errors, so drop it.This change fixes multiple build errors, all in
au1000.h. E.g.:In file included from
../drivers/watchdog/mtx-1_wdt.c:44:../arch/mips/include/asm/mach-au1x00/au1000.h: In function 'alchemy_rdsys':../arch/mips/include/asm/mach-au1x00/au1000.h:603:36: error: implicit declaration of function 'KSEG1ADDR'; did you mean 'CKSEG1ADDR'? [-Werror=implicit-function-declaration]
603 | void__iomem*b = (void__iomem*)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);../arch/mips/include/asm/mach-au1x00/au1000.h:603:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
603 | void__iomem*b = (void__iomem*)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Fixes 04bf3b4f5fc0 ("[WATCHDOG] MTX-1 Watchdog driver")More like
Fixes da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")Duh. Thanks.
That patch wasn't exactly one of my better ideas.
$ git log v4.10.. | grep da2a68b3eb47
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Commit da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")Me blush :-(
Guenter
Quoted 21 lines
Quoted 21 lines
Quoted 5 lines
Signed-off-by Randy Dunlap <[email protected]>Cc Wim Van Sebroeck <[email protected]>Cc Guenter Roeck <[email protected]>Cc Florian Fainelli <[email protected]>Reviewed-by Guenter Roeck <[email protected]>Quoted 13 lines
--- drivers/watchdog/mtx-1_wdt.c | 2 -- 1 file changed, 2 deletions(-)drivers/watchdog/mtx-1_wdt.c +0
-1@@ -41,8 +41,6 @@ #include <linux/uaccess.h> #include <linux/gpio/consumer.h> -#include <asm/mach-au1x00/au1000.h> - #define MTX1_WDT_INTERVAL (5 * HZ) static int ticks = 100 * HZ;
Quoted 12 lines · Randy Dunlap
The mtx-1_wdt driver does not need the
au1000.hheader file. Instead, the header file causes build errors, so drop it.This change fixes multiple build errors, all in
au1000.h. E.g.:In file included from
../drivers/watchdog/mtx-1_wdt.c:44:../arch/mips/include/asm/mach-au1x00/au1000.h: In function 'alchemy_rdsys':../arch/mips/include/asm/mach-au1x00/au1000.h:603:36: error: implicit declaration of function 'KSEG1ADDR'; did you mean 'CKSEG1ADDR'? [-Werror=implicit-function-declaration]
603 | void__iomem*b = (void__iomem*)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);../arch/mips/include/asm/mach-au1x00/au1000.h:603:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
603 | void__iomem*b = (void__iomem*)KSEG1ADDR(AU1000_SYS_PHYS_ADDR);
Quoted 6 lines
Fixes 04bf3b4f5fc0 ("[WATCHDOG] MTX-1 Watchdog driver")Signed-off-by Randy Dunlap <[email protected]>Cc Wim Van Sebroeck <[email protected]>Cc Guenter Roeck <[email protected]>Cc Florian Fainelli <[email protected]>
Signature · 1 line
Florian