Remove obsolete __MODULE_STRING()
Subsystems (58)
Petr Pavlu
maintainercover Remove obsolete __MODULE_STRING()
__MODULE_STRING() has been an alias for __stringify() since "[PATCH] MODULE_PARM support for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end of linux/module.h
Replace the remaining uses of __MODULE_STRING() with __stringify() and remove the macro.
Apologies for the wide distribution. Acked-bys are appreciated.
[1] https://git.kernel.org/tglx/history/c/136839a1b4
---
Petr Pavlu (3):
watchdog: Replace __MODULE_STRING() with __stringify()
drivers: Replace __MODULE_STRING() with __stringify()
module: Remove obsolete __MODULE_STRING()
drivers/comedi/comedi_fops.c | 5 +++-- drivers/gpu/drm/drm_fb_helper.c | 3 ++- drivers/hwmon/fschmd.c | 3 ++- drivers/hwmon/nct7904.c | 5 +++-- drivers/hwmon/sch56xx-common.c | 3 ++- drivers/hwmon/w83793.c | 5 +++-- drivers/i2c/busses/i2c-kempld.c | 3 ++- drivers/net/ethernet/atheros/atl1e/atl1e_param.c | 9 +++++---- drivers/net/ethernet/atheros/atlx/atl1.c | 3 ++- drivers/net/ethernet/atheros/atlx/atl2.c | 11 ++++++----- drivers/net/ethernet/intel/e1000/e1000_param.c | 15 ++++++++------- drivers/net/ethernet/intel/e1000e/param.c | 16 ++++++---------- drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c | 7 ++++--- drivers/platform/cznic/turris-omnia-mcu-watchdog.c | 3 ++- drivers/rtc/rtc-ds1374.c | 3 ++- drivers/thunderbolt/tb.c | 3 ++- drivers/thunderbolt/tunnel.c | 5 +++-- drivers/tty/serial/8250/8250_platform.c | 3 ++- drivers/usb/atm/speedtch.c | 15 ++++++++------- drivers/usb/atm/usbatm.c | 17 +++++++++-------- drivers/watchdog/acquirewdt.c | 3 ++- drivers/watchdog/advantech_ec_wdt.c | 3 ++- drivers/watchdog/advantechwdt.c | 5 +++-- drivers/watchdog/airoha_wdt.c | 5 +++-- drivers/watchdog/alim1535_wdt.c | 5 +++-- drivers/watchdog/alim7101_wdt.c | 5 +++-- drivers/watchdog/arm_smc_wdt.c | 3 ++- drivers/watchdog/armada_37xx_wdt.c | 3 ++- drivers/watchdog/aspeed_wdt.c | 3 ++- drivers/watchdog/at91rm9200_wdt.c | 5 +++-- drivers/watchdog/at91sam9_wdt.c | 5 +++-- drivers/watchdog/atcwdt200_wdt.c | 5 +++-- drivers/watchdog/ath79_wdt.c | 5 +++-- drivers/watchdog/bcm2835_wdt.c | 3 ++- drivers/watchdog/bcm47xx_wdt.c | 5 +++-- drivers/watchdog/bcm7038_wdt.c | 3 ++- drivers/watchdog/booke_wdt.c | 3 ++- drivers/watchdog/cadence_wdt.c | 5 +++-- drivers/watchdog/cgbc_wdt.c | 7 ++++--- drivers/watchdog/da9052_wdt.c | 5 +++-- drivers/watchdog/da9055_wdt.c | 3 ++- drivers/watchdog/davinci_wdt.c | 5 +++-- drivers/watchdog/db8500_wdt.c | 5 +++-- drivers/watchdog/dw_wdt.c | 3 ++- drivers/watchdog/ebc-c384_wdt.c | 5 +++-- drivers/watchdog/eurotechwdt.c | 3 ++- drivers/watchdog/exar_wdt.c | 5 +++-- drivers/watchdog/f71808e_wdt.c | 9 +++++---- drivers/watchdog/gef_wdt.c | 3 ++- drivers/watchdog/geodewdt.c | 5 +++-- drivers/watchdog/gpio_wdt.c | 3 ++- drivers/watchdog/hpwdt.c | 3 ++- drivers/watchdog/i6300esb.c | 9 +++++---- drivers/watchdog/iTCO_wdt.c | 5 +++-- drivers/watchdog/ib700wdt.c | 5 +++-- drivers/watchdog/ibmasr.c | 3 ++- drivers/watchdog/ie6xx_wdt.c | 5 +++-- drivers/watchdog/imgpdc_wdt.c | 5 +++-- drivers/watchdog/imx2_wdt.c | 5 +++-- drivers/watchdog/imx7ulp_wdt.c | 3 ++- drivers/watchdog/imx_sc_wdt.c | 3 ++- drivers/watchdog/indydog.c | 3 ++- drivers/watchdog/intel_oc_wdt.c | 5 +++-- drivers/watchdog/it87_wdt.c | 7 ++++--- drivers/watchdog/jz4740_wdt.c | 7 ++++--- drivers/watchdog/keembay_wdt.c | 5 +++-- drivers/watchdog/kempld_wdt.c | 7 ++++--- drivers/watchdog/lenovo_se10_wdt.c | 5 +++-- drivers/watchdog/lenovo_se30_wdt.c | 5 +++-- drivers/watchdog/lenovo_se30g2_se60_wdt.c | 5 +++-- drivers/watchdog/loongson1_wdt.c | 5 +++-- drivers/watchdog/lpc18xx_wdt.c | 5 +++-- drivers/watchdog/ma35d1_wdt.c | 3 ++- drivers/watchdog/max63xx_wdt.c | 7 ++++--- drivers/watchdog/max77620_wdt.c | 3 ++- drivers/watchdog/mena21_wdt.c | 3 ++- drivers/watchdog/menf21bmc_wdt.c | 3 ++- drivers/watchdog/menz69_wdt.c | 3 ++- drivers/watchdog/meson_gxbb_wdt.c | 5 +++-- drivers/watchdog/meson_wdt.c | 3 ++- drivers/watchdog/mixcomwd.c | 3 ++- drivers/watchdog/mpc8xxx_wdt.c | 5 +++-- drivers/watchdog/mt7621_wdt.c | 3 ++- drivers/watchdog/mtk_wdt.c | 3 ++- drivers/watchdog/nct6694_wdt.c | 3 ++- drivers/watchdog/ni903x_wdt.c | 5 +++-- drivers/watchdog/nic7018_wdt.c | 5 +++-- drivers/watchdog/nv_tco.c | 5 +++-- drivers/watchdog/octeon-wdt-main.c | 5 +++-- drivers/watchdog/omap_wdt.c | 3 ++- drivers/watchdog/orion_wdt.c | 3 ++- drivers/watchdog/pc87413_wdt.c | 7 ++++--- drivers/watchdog/pcwd.c | 5 +++-- drivers/watchdog/pcwd_pci.c | 5 +++-- drivers/watchdog/pcwd_usb.c | 5 +++-- drivers/watchdog/pika_wdt.c | 5 +++-- drivers/watchdog/pnx4008_wdt.c | 5 +++-- drivers/watchdog/pseries-wdt.c | 7 ++++--- drivers/watchdog/rc32434_wdt.c | 5 +++-- drivers/watchdog/renesas_wdt.c | 3 ++- drivers/watchdog/rn5t618_wdt.c | 3 ++- drivers/watchdog/rt2880_wdt.c | 3 ++- drivers/watchdog/rti_wdt.c | 5 +++-- drivers/watchdog/rzg2l_wdt.c | 3 ++- drivers/watchdog/rzv2h_wdt.c | 3 ++- drivers/watchdog/s32g_wdt.c | 5 +++-- drivers/watchdog/s3c2410_wdt.c | 7 ++++--- drivers/watchdog/sama5d4_wdt.c | 5 +++-- drivers/watchdog/sbc60xxwdt.c | 5 +++-- drivers/watchdog/sbc7240_wdt.c | 5 +++-- drivers/watchdog/sbc8360.c | 3 ++- drivers/watchdog/sbc_epx_c3.c | 3 ++- drivers/watchdog/sbsa_gwdt.c | 5 +++-- drivers/watchdog/sc1200wdt.c | 3 ++- drivers/watchdog/sch311x_wdt.c | 5 +++-- drivers/watchdog/shwdt.c | 7 ++++--- drivers/watchdog/simatic-ipc-wdt.c | 3 ++- drivers/watchdog/sl28cpld_wdt.c | 3 ++- drivers/watchdog/smsc37b787_wdt.c | 3 ++- drivers/watchdog/softdog.c | 5 +++-- drivers/watchdog/sp5100_tco.c | 7 ++++--- drivers/watchdog/starfive-wdt.c | 7 ++++--- drivers/watchdog/stmp3xxx_rtc_wdt.c | 5 +++-- drivers/watchdog/stpmic1_wdt.c | 3 ++- drivers/watchdog/sun4v_wdt.c | 5 +++-- drivers/watchdog/sunplus_wdt.c | 3 ++- drivers/watchdog/sunxi_wdt.c | 3 ++- drivers/watchdog/tegra_wdt.c | 5 +++-- drivers/watchdog/tqmx86_wdt.c | 3 ++- drivers/watchdog/ts4800_wdt.c | 3 ++- drivers/watchdog/twl4030_wdt.c | 3 ++- drivers/watchdog/txx9wdt.c | 7 ++++--- drivers/watchdog/uniphier_wdt.c | 5 +++-- drivers/watchdog/via_wdt.c | 5 +++-- drivers/watchdog/visconti_wdt.c | 3 ++- drivers/watchdog/w83627hf_wdt.c | 5 +++-- drivers/watchdog/w83877f_wdt.c | 5 +++-- drivers/watchdog/w83977f_wdt.c | 5 +++-- drivers/watchdog/wafer5823wdt.c | 5 +++-- drivers/watchdog/watchdog_dev.c | 5 +++-- drivers/watchdog/wdat_wdt.c | 5 +++-- drivers/watchdog/wdt.c | 5 +++-- drivers/watchdog/wdt977.c | 5 +++-- drivers/watchdog/wdt_pci.c | 5 +++-- drivers/watchdog/wm831x_wdt.c | 3 ++- drivers/watchdog/wm8350_wdt.c | 3 ++- drivers/watchdog/xen_wdt.c | 5 +++-- drivers/watchdog/xilinx_wwdt.c | 5 +++-- drivers/watchdog/ziirave_wdt.c | 3 ++- include/linux/module.h | 4 ---- 150 files changed, 428 insertions(+), 288 deletions(-)
---
base-commit: 93f51579e7df248780214094418f205253383cc5
change-id: 20260919-module-string-d64816f203d9
Petr Pavlu
maintainerPATCH 1/3 watchdog: Replace __MODULE_STRING() with __stringify()
__MODULE_STRING() has been an alias for __stringify() since "[PATCH] MODULE_PARM support for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end of linux/module.h
Replace the remaining uses of __MODULE_STRING() with __stringify() in preparation for its removal.
--- drivers/watchdog/acquirewdt.c | 3 ++- drivers/watchdog/advantech_ec_wdt.c | 3 ++- drivers/watchdog/advantechwdt.c | 5 +++-- drivers/watchdog/airoha_wdt.c | 5 +++-- drivers/watchdog/alim1535_wdt.c | 5 +++-- drivers/watchdog/alim7101_wdt.c | 5 +++-- drivers/watchdog/arm_smc_wdt.c | 3 ++- drivers/watchdog/armada_37xx_wdt.c | 3 ++- drivers/watchdog/aspeed_wdt.c | 3 ++- drivers/watchdog/at91rm9200_wdt.c | 5 +++-- drivers/watchdog/at91sam9_wdt.c | 5 +++-- drivers/watchdog/atcwdt200_wdt.c | 5 +++-- drivers/watchdog/ath79_wdt.c | 5 +++-- drivers/watchdog/bcm2835_wdt.c | 3 ++- drivers/watchdog/bcm47xx_wdt.c | 5 +++-- drivers/watchdog/bcm7038_wdt.c | 3 ++- drivers/watchdog/booke_wdt.c | 3 ++- drivers/watchdog/cadence_wdt.c | 5 +++-- drivers/watchdog/cgbc_wdt.c | 7 ++++--- drivers/watchdog/da9052_wdt.c | 5 +++-- drivers/watchdog/da9055_wdt.c | 3 ++- drivers/watchdog/davinci_wdt.c | 5 +++-- drivers/watchdog/db8500_wdt.c | 5 +++-- drivers/watchdog/dw_wdt.c | 3 ++- drivers/watchdog/ebc-c384_wdt.c | 5 +++-- drivers/watchdog/eurotechwdt.c | 3 ++- drivers/watchdog/exar_wdt.c | 5 +++-- drivers/watchdog/f71808e_wdt.c | 9 +++++---- drivers/watchdog/gef_wdt.c | 3 ++- drivers/watchdog/geodewdt.c | 5 +++-- drivers/watchdog/gpio_wdt.c | 3 ++- drivers/watchdog/hpwdt.c | 3 ++- drivers/watchdog/i6300esb.c | 9 +++++---- drivers/watchdog/iTCO_wdt.c | 5 +++-- drivers/watchdog/ib700wdt.c | 5 +++-- drivers/watchdog/ibmasr.c | 3 ++- drivers/watchdog/ie6xx_wdt.c | 5 +++-- drivers/watchdog/imgpdc_wdt.c | 5 +++-- drivers/watchdog/imx2_wdt.c | 5 +++-- drivers/watchdog/imx7ulp_wdt.c | 3 ++- drivers/watchdog/imx_sc_wdt.c | 3 ++- drivers/watchdog/indydog.c | 3 ++- drivers/watchdog/intel_oc_wdt.c | 5 +++-- drivers/watchdog/it87_wdt.c | 7 ++++--- drivers/watchdog/jz4740_wdt.c | 7 ++++--- drivers/watchdog/keembay_wdt.c | 5 +++-- drivers/watchdog/kempld_wdt.c | 7 ++++--- drivers/watchdog/lenovo_se10_wdt.c | 5 +++-- drivers/watchdog/lenovo_se30_wdt.c | 5 +++-- drivers/watchdog/lenovo_se30g2_se60_wdt.c | 5 +++-- drivers/watchdog/loongson1_wdt.c | 5 +++-- drivers/watchdog/lpc18xx_wdt.c | 5 +++-- drivers/watchdog/ma35d1_wdt.c | 3 ++- drivers/watchdog/max63xx_wdt.c | 7 ++++--- drivers/watchdog/max77620_wdt.c | 3 ++- drivers/watchdog/mena21_wdt.c | 3 ++- drivers/watchdog/menf21bmc_wdt.c | 3 ++- drivers/watchdog/menz69_wdt.c | 3 ++- drivers/watchdog/meson_gxbb_wdt.c | 5 +++-- drivers/watchdog/meson_wdt.c | 3 ++- drivers/watchdog/mixcomwd.c | 3 ++- drivers/watchdog/mpc8xxx_wdt.c | 5 +++-- drivers/watchdog/mt7621_wdt.c | 3 ++- drivers/watchdog/mtk_wdt.c | 3 ++- drivers/watchdog/nct6694_wdt.c | 3 ++- drivers/watchdog/ni903x_wdt.c | 5 +++-- drivers/watchdog/nic7018_wdt.c | 5 +++-- drivers/watchdog/nv_tco.c | 5 +++-- drivers/watchdog/octeon-wdt-main.c | 5 +++-- drivers/watchdog/omap_wdt.c | 3 ++- drivers/watchdog/orion_wdt.c | 3 ++- drivers/watchdog/pc87413_wdt.c | 7 ++++--- drivers/watchdog/pcwd.c | 5 +++-- drivers/watchdog/pcwd_pci.c | 5 +++-- drivers/watchdog/pcwd_usb.c | 5 +++-- drivers/watchdog/pika_wdt.c | 5 +++-- drivers/watchdog/pnx4008_wdt.c | 5 +++-- drivers/watchdog/pseries-wdt.c | 7 ++++--- drivers/watchdog/rc32434_wdt.c | 5 +++-- drivers/watchdog/renesas_wdt.c | 3 ++- drivers/watchdog/rn5t618_wdt.c | 3 ++- drivers/watchdog/rt2880_wdt.c | 3 ++- drivers/watchdog/rti_wdt.c | 5 +++-- drivers/watchdog/rzg2l_wdt.c | 3 ++- drivers/watchdog/rzv2h_wdt.c | 3 ++- drivers/watchdog/s32g_wdt.c | 5 +++-- drivers/watchdog/s3c2410_wdt.c | 7 ++++--- drivers/watchdog/sama5d4_wdt.c | 5 +++-- drivers/watchdog/sbc60xxwdt.c | 5 +++-- drivers/watchdog/sbc7240_wdt.c | 5 +++-- drivers/watchdog/sbc8360.c | 3 ++- drivers/watchdog/sbc_epx_c3.c | 3 ++- drivers/watchdog/sbsa_gwdt.c | 5 +++-- drivers/watchdog/sc1200wdt.c | 3 ++- drivers/watchdog/sch311x_wdt.c | 5 +++-- drivers/watchdog/shwdt.c | 7 ++++--- drivers/watchdog/simatic-ipc-wdt.c | 3 ++- drivers/watchdog/sl28cpld_wdt.c | 3 ++- drivers/watchdog/smsc37b787_wdt.c | 3 ++- drivers/watchdog/softdog.c | 5 +++-- drivers/watchdog/sp5100_tco.c | 7 ++++--- drivers/watchdog/starfive-wdt.c | 7 ++++--- drivers/watchdog/stmp3xxx_rtc_wdt.c | 5 +++-- drivers/watchdog/stpmic1_wdt.c | 3 ++- drivers/watchdog/sun4v_wdt.c | 5 +++-- drivers/watchdog/sunplus_wdt.c | 3 ++- drivers/watchdog/sunxi_wdt.c | 3 ++- drivers/watchdog/tegra_wdt.c | 5 +++-- drivers/watchdog/tqmx86_wdt.c | 3 ++- drivers/watchdog/ts4800_wdt.c | 3 ++- drivers/watchdog/twl4030_wdt.c | 3 ++- drivers/watchdog/txx9wdt.c | 7 ++++--- drivers/watchdog/uniphier_wdt.c | 5 +++-- drivers/watchdog/via_wdt.c | 5 +++-- drivers/watchdog/visconti_wdt.c | 3 ++- drivers/watchdog/w83627hf_wdt.c | 5 +++-- drivers/watchdog/w83877f_wdt.c | 5 +++-- drivers/watchdog/w83977f_wdt.c | 5 +++-- drivers/watchdog/wafer5823wdt.c | 5 +++-- drivers/watchdog/watchdog_dev.c | 5 +++-- drivers/watchdog/wdat_wdt.c | 5 +++-- drivers/watchdog/wdt.c | 5 +++-- drivers/watchdog/wdt977.c | 5 +++-- drivers/watchdog/wdt_pci.c | 5 +++-- drivers/watchdog/wm831x_wdt.c | 3 ++- drivers/watchdog/wm8350_wdt.c | 3 ++- drivers/watchdog/xen_wdt.c | 5 +++-- drivers/watchdog/xilinx_wwdt.c | 5 +++-- drivers/watchdog/ziirave_wdt.c | 3 ++- 129 files changed, 352 insertions(+), 223 deletions(-)
drivers/watchdog/acquirewdt.c +2 -1
@@ -64,6 +64,7 @@#include <linux/init.h> /* For __init/__exit/... */ #include <linux/uaccess.h> /* For copy_to_user/put_user/... */ #include <linux/io.h> /* For inb/outb/... */ +#include <linux/stringify.h> /* For __stringify */ /* Module information */ #define DRV_NAME "acquirewdt"
@@ -92,7 +93,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Watchdog Operations
drivers/watchdog/advantech_ec_wdt.c +2 -1
@@ -14,6 +14,7 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/moduleparam.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define DRIVER_NAME "advantech_ec_wdt"
@@ -49,7 +50,7 @@ static ktime_t ec_timestamp;module_param (timeout, uint,0 );MODULE_PARM_DESC (timeout, - "Default Watchdog timer setting (" __MODULE_STRING(DEFAULT_TIME) "s). The range is from " __MODULE_STRING(MIN_TIME) " to " __MODULE_STRING(MAX_TIME) "."); + "Default Watchdog timer setting (" __stringify(DEFAULT_TIME) "s). The range is from " __stringify(MIN_TIME) " to " __stringify(MAX_TIME) ".");static void adv_ec_wdt_timing_gate (void ) {
drivers/watchdog/advantechwdt.c +3 -2
@@ -37,6 +37,7 @@#include <linux/init.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #define DRV_NAME "advantechwdt"
@@ -71,13 +72,13 @@ static int timeout = WATCHDOG_TIMEOUT; /* in seconds */module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. 1<= timeout <=63, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) "."); + __stringify(WATCHDOG_TIMEOUT) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Watchdog Operations
drivers/watchdog/airoha_wdt.c +3 -2
@@ -20,6 +20,7 @@#include <linux/of.h> #include <linux/platform_device.h> #include <linux/watchdog.h> +#include <linux/stringify.h> /* Base address of timer and watchdog registers */ #define TIMER_CTRL 0x0
@@ -44,12 +45,12 @@ struct airoha_wdt_desc {static int heartbeat =WDT_HEARTBEAT ;module_param (heartbeat, int,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. (default=" - __MODULE_STRING(WDT_HEARTBEAT) ")"); + __stringify(WDT_HEARTBEAT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int airoha_wdt_start (struct watchdog_device *wdog_dev) {
drivers/watchdog/alim1535_wdt.c +3 -2
@@ -18,6 +18,7 @@#include <linux/pci.h> #include <linux/uaccess.h> #include <linux/io.h> +#include <linux/stringify.h> #define WATCHDOG_NAME "ALi_M1535"#define WATCHDOG_TIMEOUT 60/* 60 sec default timeout */
@@ -34,13 +35,13 @@ static int timeout = WATCHDOG_TIMEOUT;module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. (0 < timeout < 18000, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + __stringify(WATCHDOG_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * ali_start - start watchdog countdown
drivers/watchdog/alim7101_wdt.c +3 -2
@@ -36,6 +36,7 @@#include <linux/pci.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #define WDT_ENABLE 0x9C
@@ -64,7 +65,7 @@ static int timeout = WATCHDOG_TIMEOUT;module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. (1<=timeout<=3600, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + __stringify(WATCHDOG_TIMEOUT) ")");static int use_gpio;/* Use the pic (for a1d revision alim7101) */ module_param (use_gpio, int,0 );
@@ -82,7 +83,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Whack the dog
drivers/watchdog/arm_smc_wdt.c +2 -1
@@ -13,6 +13,7 @@#include <linux/moduleparam.h> #include <linux/of.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h> #include <uapi/linux/psci.h>
@@ -191,7 +192,7 @@ MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds");module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Julius Werner <[email protected]>" );
drivers/watchdog/armada_37xx_wdt.c +2 -1
@@ -16,6 +16,7 @@#include <linux/of.h> #include <linux/platform_device.h> #include <linux/regmap.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h>
@@ -70,7 +71,7 @@ MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct armada_37xx_watchdog {struct watchdog_device wdt;
drivers/watchdog/aspeed_wdt.c +2 -1
@@ -17,12 +17,13 @@#include <linux/of_irq.h> #include <linux/platform_device.h> #include <linux/regmap.h> +#include <linux/stringify.h> #include <linux/watchdog.h> static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct aspeed_wdt_scu {const char *compatible;u32 reset_status_reg;
drivers/watchdog/at91rm9200_wdt.c +3 -2
@@ -23,6 +23,7 @@#include <linux/platform_device.h> #include <linux/reboot.h> #include <linux/regmap.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h> #include <linux/uaccess.h>
@@ -36,13 +37,13 @@ static struct regmap *regmap_st;module_param (wdt_time, int,0 ); MODULE_PARM_DESC(wdt_time, "Watchdog time in seconds. (default=" - __MODULE_STRING(WDT_DEFAULT_TIME) ")"); + __stringify(WDT_DEFAULT_TIME) ")");#ifdef CONFIG_WATCHDOG_NOWAYOUT module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");#endif
drivers/watchdog/at91sam9_wdt.c +3 -2
@@ -32,6 +32,7 @@#include <linux/uaccess.h> #include <linux/of.h> #include <linux/of_irq.h> +#include <linux/stringify.h> #include "at91sam9_wdt.h"
@@ -70,12 +71,12 @@static int heartbeat;module_param (heartbeat, int,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. " - "(default = " __MODULE_STRING(WDT_HEARTBEAT) ")"); + "(default = " __stringify(WDT_HEARTBEAT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " - "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default=" __stringify(WATCHDOG_NOWAYOUT) ")");#define to_wdt (wdd) container_of(wdd, struct at91wdt, wdd)struct at91wdt {
drivers/watchdog/atcwdt200_wdt.c +3 -2
@@ -19,6 +19,7 @@#include <linux/pm.h> #include <linux/pm_runtime.h> #include <linux/regmap.h> +#include <linux/stringify.h> #include <linux/watchdog.h> /* Register definitions */
@@ -570,11 +571,11 @@ module_platform_driver(atcwdt_driver);module_param (timeout, uint,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default=" - __MODULE_STRING(ATCWDT_TIMEOUT) ")"); + __stringify(ATCWDT_TIMEOUT) ")");module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("CL Wang <[email protected]>" );
drivers/watchdog/ath79_wdt.c +3 -2
@@ -32,6 +32,7 @@#include <linux/of.h> #include <linux/of_platform.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #define DRIVER_NAME "ath79-wdt"
@@ -50,12 +51,12 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " - "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default=" __stringify(WATCHDOG_NOWAYOUT) ")");static int timeout =WDT_TIMEOUT ;module_param (timeout, int,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds " - "(default=" __MODULE_STRING(WDT_TIMEOUT) "s)"); + "(default=" __stringify(WDT_TIMEOUT) "s)");static unsigned long wdt_flags;
drivers/watchdog/bcm2835_wdt.c +2 -1
@@ -20,6 +20,7 @@#include <linux/of_address.h> #include <linux/of_platform.h> #include <linux/reboot.h> +#include <linux/stringify.h> #define PM_RSTC 0x1c#define PM_RSTS 0x20
@@ -229,7 +230,7 @@ MODULE_PARM_DESC(heartbeat, "Initial watchdog heartbeat in seconds");module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");MODULE_ALIAS ("platform:bcm2835-wdt" );MODULE_AUTHOR ("Lubomir Rintel <[email protected]>" );
drivers/watchdog/bcm47xx_wdt.c +3 -2
@@ -21,6 +21,7 @@#include <linux/watchdog.h> #include <linux/timer.h> #include <linux/jiffies.h> +#include <linux/stringify.h> #define DRV_NAME "bcm47xx_wdt"
@@ -33,12 +34,12 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (timeout, int,0 ); MODULE_PARM_DESC(timeout, "Watchdog time in seconds. (default=" - __MODULE_STRING(WDT_DEFAULT_TIME) ")"); + __stringify(WDT_DEFAULT_TIME) ")");module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static inline struct bcm47xx_wdt *bcm47xx_wdt_get (struct watchdog_device *wdd) {
drivers/watchdog/bcm7038_wdt.c +2 -1
@@ -12,6 +12,7 @@#include <linux/platform_device.h> #include <linux/platform_data/bcm7038_wdt.h> #include <linux/pm.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define WDT_START_1 0xff00
@@ -228,7 +229,7 @@ module_platform_driver(bcm7038_wdt_driver);module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Driver for Broadcom 7038 SoCs Watchdog" );MODULE_AUTHOR ("Justin Chen" );
drivers/watchdog/booke_wdt.c +2 -1
@@ -12,6 +12,7 @@#include <linux/module.h> #include <linux/smp.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #include <asm/reg_booke.h>
@@ -43,7 +44,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");#ifdef CONFIG_PPC_E500
drivers/watchdog/cadence_wdt.c +3 -2
@@ -15,6 +15,7 @@#include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define CDNS_WDT_DEFAULT_TIMEOUT 10
@@ -52,12 +53,12 @@ static int nowayout = WATCHDOG_NOWAYOUT;module_param (wdt_timeout, int,0644 );MODULE_PARM_DESC (wdt_timeout, "Watchdog time in seconds. (default=" - __MODULE_STRING(CDNS_WDT_DEFAULT_TIMEOUT) ")"); + __stringify(CDNS_WDT_DEFAULT_TIMEOUT) ")");module_param (nowayout, int,0644 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/** * struct cdns_wdt - Watchdog device structure
drivers/watchdog/cgbc_wdt.c +4 -3
@@ -11,6 +11,7 @@#include <linux/limits.h> #include <linux/module.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #include <linux/mfd/cgbc.h>
@@ -38,19 +39,19 @@ static unsigned int timeout;module_param (timeout, uint,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. (>=0, default=" - __MODULE_STRING(CGBC_WDT_DEFAULT_TIMEOUT) ")"); + __stringify(CGBC_WDT_DEFAULT_TIMEOUT) ")");static unsigned int pretimeout =CGBC_WDT_DEFAULT_PRETIMEOUT ;module_param (pretimeout, uint,0 );MODULE_PARM_DESC (pretimeout, "Watchdog pretimeout in seconds. (>=0, default=" - __MODULE_STRING(CGBC_WDT_DEFAULT_PRETIMEOUT) ")"); + __stringify(CGBC_WDT_DEFAULT_PRETIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct cgbc_wdt_data {struct cgbc_device_data *cgbc;
drivers/watchdog/da9052_wdt.c +3 -2
@@ -17,6 +17,7 @@#include <linux/types.h> #include <linux/kernel.h> #include <linux/jiffies.h> +#include <linux/stringify.h> #include <linux/mfd/da9052/reg.h> #include <linux/mfd/da9052/da9052.h>
@@ -34,13 +35,13 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int timeout;module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. (default = " - __MODULE_STRING(WDT_DEFAULT_TIMEOUT) ")"); + __stringify(WDT_DEFAULT_TIMEOUT) ")"); static const struct { u8 reg_val;
drivers/watchdog/da9055_wdt.c +2 -1
@@ -15,6 +15,7 @@#include <linux/platform_device.h> #include <linux/watchdog.h> #include <linux/delay.h> +#include <linux/stringify.h> #include <linux/mfd/da9055/core.h> #include <linux/mfd/da9055/reg.h>
@@ -23,7 +24,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");#define DA9055_DEF_TIMEOUT 4#define DA9055_TWDMIN 256
drivers/watchdog/davinci_wdt.c +3 -2
@@ -19,6 +19,7 @@#include <linux/device.h> #include <linux/clk.h> #include <linux/err.h> +#include <linux/stringify.h> #define MODULE_NAME "DAVINCI-WDT: "
@@ -250,8 +251,8 @@ MODULE_DESCRIPTION("DaVinci Watchdog Driver");module_param (heartbeat, int,0 );MODULE_PARM_DESC (heartbeat, "Watchdog heartbeat period in seconds from 1 to " - __MODULE_STRING(MAX_HEARTBEAT) ", default " - __MODULE_STRING(DEFAULT_HEARTBEAT )); + __stringify(MAX_HEARTBEAT) ", default " + __stringify(DEFAULT_HEARTBEAT ));MODULE_LICENSE ("GPL" );MODULE_ALIAS ("platform:davinci-wdt" );
drivers/watchdog/db8500_wdt.c +3 -2
@@ -15,6 +15,7 @@#include <linux/uaccess.h> #include <linux/watchdog.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/mfd/db8500-prcmu.h>
@@ -27,13 +28,13 @@ static unsigned int timeout = WATCHDOG_TIMEOUT;module_param (timeout, uint,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) "."); + __stringify(WATCHDOG_TIMEOUT) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int db8500_wdt_start (struct watchdog_device *wdd) {
drivers/watchdog/dw_wdt.c +2 -1
@@ -27,6 +27,7 @@#include <linux/platform_device.h> #include <linux/pm.h> #include <linux/reset.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define WDOG_CONTROL_REG_OFFSET 0x00
@@ -66,7 +67,7 @@ static const u32 dw_wdt_fix_tops[DW_WDT_NUM_TOPS] = {static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " - "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default=" __stringify(WATCHDOG_NOWAYOUT) ")");enum dw_wdt_rmod {DW_WDT_RMOD_RESET =1 ,
drivers/watchdog/ebc-c384_wdt.c +3 -2
@@ -13,6 +13,7 @@#include <linux/module.h> #include <linux/moduleparam.h> #include <linux/types.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define MODULE_NAME "ebc-c384_wdt"
@@ -30,12 +31,12 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static unsigned timeout;module_param (timeout, uint,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + __stringify(WATCHDOG_TIMEOUT) ")");static int ebc_c384_wdt_start (struct watchdog_device *wdev) {
drivers/watchdog/eurotechwdt.c +2 -1
@@ -56,6 +56,7 @@#include <linux/init.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> static unsigned long eurwdt_is_open;
@@ -77,7 +78,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Some symbolic names
drivers/watchdog/exar_wdt.c +3 -2
@@ -14,6 +14,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/slab.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define DRV_NAME "exar_wdt"
@@ -70,13 +71,13 @@ static int timeout = WATCHDOG_TIMEOUT;module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. 1<=timeout<=15300, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) "."); + __stringify(WATCHDOG_TIMEOUT) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int exar_sio_enter (const unsigned short config_port,const unsigned char key)
drivers/watchdog/f71808e_wdt.c +5 -4
@@ -14,6 +14,7 @@#include <linux/ioport.h> #include <linux/module.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define DRVNAME "f71808e_wdt"
@@ -81,20 +82,20 @@ static int timeout = WATCHDOG_TIMEOUT; /* default timeout in seconds */module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. 1<= timeout <=" - __MODULE_STRING(WATCHDOG_MAX_TIMEOUT) " (default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + __stringify(WATCHDOG_MAX_TIMEOUT) " (default=" + __stringify(WATCHDOG_TIMEOUT) ")");static unsigned int pulse_width =WATCHDOG_PULSE_WIDTH ;module_param (pulse_width, uint,0 );MODULE_PARM_DESC (pulse_width, "Watchdog signal pulse width. 0(=level), 1, 25, 30, 125, 150, 5000 or 6000 ms" - " (default=" __MODULE_STRING(WATCHDOG_PULSE_WIDTH) ")"); + " (default=" __stringify(WATCHDOG_PULSE_WIDTH) ")");static unsigned int f71862fg_pin =WATCHDOG_F71862FG_PIN ;module_param (f71862fg_pin, uint,0 );MODULE_PARM_DESC (f71862fg_pin, "Watchdog f71862fg reset output pin configuration. Choose pin 56 or 63" - " (default=" __MODULE_STRING(WATCHDOG_F71862FG_PIN)")"); + " (default=" __stringify(WATCHDOG_F71862FG_PIN)")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0444 );
drivers/watchdog/gef_wdt.c +2 -1
@@ -34,6 +34,7 @@#include <linux/platform_device.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #include <sysdev/fsl_soc.h>
@@ -70,7 +71,7 @@ static DEFINE_SPINLOCK(gef_wdt_spinlock);static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int gef_wdt_toggle_wdc (int enabled_predicate,int field_shift)
drivers/watchdog/geodewdt.c +3 -2
@@ -16,6 +16,7 @@#include <linux/platform_device.h> #include <linux/reboot.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #include <linux/cs5535.h>
@@ -34,13 +35,13 @@ static int timeout = WATCHDOG_TIMEOUT;module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. 1<= timeout <=131, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) "."); + __stringify(WATCHDOG_TIMEOUT) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static struct platform_device *geodewdt_platform_device;static unsigned long wdt_flags;
drivers/watchdog/gpio_wdt.c +2 -1
@@ -11,13 +11,14 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/property.h> +#include <linux/stringify.h> #include <linux/watchdog.h> static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");#define SOFT_TIMEOUT_MIN 1#define SOFT_TIMEOUT_DEF 60
drivers/watchdog/hpwdt.c +2 -1
@@ -20,6 +20,7 @@#include <linux/pci.h> #include <linux/pci_ids.h> #include <linux/types.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #ifdef CONFIG_HPWDT_NMI_DECODING #include <asm/nmi.h>
@@ -432,7 +433,7 @@ MODULE_PARM_DESC(timeout, "Alias of soft_margin");module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");module_param (kdumptimeout, int,0444 );MODULE_PARM_DESC (kdumptimeout,"Timeout applied for crash kernel transition in seconds" );
drivers/watchdog/i6300esb.c +5 -4
@@ -37,6 +37,7 @@#include <linux/ioport.h> #include <linux/uaccess.h> #include <linux/io.h> +#include <linux/stringify.h> /* Module and version information */ #define ESB_MODULE_NAME "i6300ESB timer"
@@ -74,19 +75,19 @@#define ESB_HEARTBEAT_MIN 1#define ESB_HEARTBEAT_MAX 2046#define ESB_HEARTBEAT_DEFAULT 30 -#define ESB_HEARTBEAT_RANGE __MODULE_STRING(ESB_HEARTBEAT_MIN) \ - "<heartbeat<" __MODULE_STRING(ESB_HEARTBEAT_MAX) +#define ESB_HEARTBEAT_RANGE __stringify(ESB_HEARTBEAT_MIN) \ + "<heartbeat<" __stringify(ESB_HEARTBEAT_MAX)static int heartbeat;/* in seconds */ module_param (heartbeat, int,0 );MODULE_PARM_DESC (heartbeat, "Watchdog heartbeat in seconds. (" ESB_HEARTBEAT_RANGE - ", default=" __MODULE_STRING(ESB_HEARTBEAT_DEFAULT) ")"); + ", default=" __stringify(ESB_HEARTBEAT_DEFAULT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* internal variables */ struct esb_dev {
drivers/watchdog/iTCO_wdt.c +3 -2
@@ -60,6 +60,7 @@#include <linux/ioport.h> /* For io-port access */ #include <linux/uaccess.h> /* For copy_to_user/put_user/... */ #include <linux/io.h> /* For inb/outb/... */ +#include <linux/stringify.h> /* For __stringify */ #include <linux/platform_data/itco_wdt.h> #include <linux/mfd/intel_pmc_bxt.h>
@@ -115,13 +116,13 @@ static int heartbeat = WATCHDOG_TIMEOUT; /* in seconds */module_param (heartbeat, int,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog timeout in seconds. " "5..76 (TCO v1) or 3..614 (TCO v2), default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + __stringify(WATCHDOG_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int turn_SMI_watchdog_clear_off =1 ;module_param (turn_SMI_watchdog_clear_off, int,0 );
drivers/watchdog/ib700wdt.c +3 -2
@@ -41,6 +41,7 @@#include <linux/platform_device.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> static struct platform_device *ibwdt_platform_device;
@@ -96,13 +97,13 @@ static int timeout = WATCHDOG_TIMEOUT; /* in seconds */module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. 0<= timeout <=30, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) "."); + __stringify(WATCHDOG_TIMEOUT) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/*
drivers/watchdog/ibmasr.c +2 -1
@@ -21,6 +21,7 @@#include <linux/dmi.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> enum {
@@ -413,7 +414,7 @@ module_exit(ibmasr_exit);module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");MODULE_DESCRIPTION ("IBM Automatic Server Restart driver" );MODULE_AUTHOR ("Andrey Panin" );
drivers/watchdog/ie6xx_wdt.c +3 -2
@@ -17,6 +17,7 @@#include <linux/debugfs.h> #include <linux/uaccess.h> #include <linux/spinlock.h> +#include <linux/stringify.h> #define DRIVER_NAME "ie6xx_wdt"
@@ -49,14 +50,14 @@ static unsigned int timeout = DEFAULT_TIME;module_param (timeout, uint,0 );MODULE_PARM_DESC (timeout, "Default Watchdog timer setting (" - __MODULE_STRING(DEFAULT_TIME) "s)." + __stringify(DEFAULT_TIME) "s).""The range is from 1 to 600" );static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static u8 resetmode =0x10 ;module_param (resetmode, byte,0 );
drivers/watchdog/imgpdc_wdt.c +3 -2
@@ -43,6 +43,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/slab.h> +#include <linux/stringify.h> #include <linux/watchdog.h> /* registers */
@@ -71,12 +72,12 @@static int heartbeat;module_param (heartbeat, int,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds " - "(default=" __MODULE_STRING(PDC_WDT_DEF_TIMEOUT) ")"); + "(default=" __stringify(PDC_WDT_DEF_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " - "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default=" __stringify(WATCHDOG_NOWAYOUT) ")");struct pdc_wdt_dev {struct watchdog_device wdt_dev;
drivers/watchdog/imx2_wdt.c +3 -2
@@ -29,6 +29,7 @@#include <linux/of.h> #include <linux/platform_device.h> #include <linux/regmap.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define DRIVER_NAME "imx2-wdt"
@@ -79,12 +80,12 @@ struct imx2_wdt_device {static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static unsigned timeout;module_param (timeout, uint,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default=" - __MODULE_STRING(IMX2_WDT_DEFAULT_TIME) ")"); + __stringify(IMX2_WDT_DEFAULT_TIME) ")");static const struct watchdog_info imx2_wdt_info = { .identity ="imx2+ watchdog" ,
drivers/watchdog/imx7ulp_wdt.c +2 -1
@@ -11,6 +11,7 @@#include <linux/of.h> #include <linux/platform_device.h> #include <linux/reboot.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define WDOG_CS 0x0
@@ -51,7 +52,7 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0000 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct imx_wdt_hw_feature {bool prescaler_enable;
drivers/watchdog/imx_sc_wdt.c +2 -1
@@ -11,6 +11,7 @@#include <linux/moduleparam.h> #include <linux/of.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define DEFAULT_TIMEOUT 60
@@ -39,7 +40,7 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0000 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct imx_sc_wdt_device {struct watchdog_device wdd;
drivers/watchdog/indydog.c +2 -1
@@ -22,6 +22,7 @@#include <linux/reboot.h> #include <linux/init.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #include <asm/sgi/mc.h> static unsigned long indydog_alive;
@@ -33,7 +34,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static void indydog_start (void ) {
drivers/watchdog/intel_oc_wdt.c +3 -2
@@ -14,6 +14,7 @@#include <linux/module.h> #include <linux/moduleparam.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define INTEL_OC_WDT_TOV GENMASK(9, 0)
@@ -48,12 +49,12 @@ struct intel_oc_wdt {static int heartbeat;module_param (heartbeat, uint,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. (default=" - __MODULE_STRING(WDT_HEARTBEAT) ")"); + __stringify(WDT_HEARTBEAT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int intel_oc_wdt_start (struct watchdog_device *wdd) {
drivers/watchdog/it87_wdt.c +4 -3
@@ -29,6 +29,7 @@#include <linux/module.h> #include <linux/moduleparam.h> #include <linux/printk.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h>
@@ -105,13 +106,13 @@ static bool nowayout = DEFAULT_NOWAYOUT;module_param (timeout, int,0 );MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds, default=" - __MODULE_STRING(DEFAULT_TIMEOUT )); + __stringify(DEFAULT_TIMEOUT ));module_param (testmode, int,0 );MODULE_PARM_DESC (testmode,"Watchdog test mode (1 = no reboot), default=" - __MODULE_STRING(DEFAULT_TESTMODE )); + __stringify(DEFAULT_TESTMODE ));module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started, default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT )); + __stringify(WATCHDOG_NOWAYOUT ));/* Superio Chip */
drivers/watchdog/jz4740_wdt.c +4 -3
@@ -19,6 +19,7 @@#include <linux/err.h> #include <linux/of.h> #include <linux/regmap.h> +#include <linux/stringify.h> #define DEFAULT_HEARTBEAT 5#define MAX_HEARTBEAT 2048
@@ -27,14 +28,14 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static unsigned int heartbeat =DEFAULT_HEARTBEAT ;module_param (heartbeat, uint,0 );MODULE_PARM_DESC (heartbeat, "Watchdog heartbeat period in seconds from 1 to " - __MODULE_STRING(MAX_HEARTBEAT) ", default " - __MODULE_STRING(DEFAULT_HEARTBEAT )); + __stringify(MAX_HEARTBEAT) ", default " + __stringify(DEFAULT_HEARTBEAT ));struct jz4740_wdt_drvdata {struct watchdog_device wdt;
drivers/watchdog/keembay_wdt.c +3 -2
@@ -14,6 +14,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/reboot.h> +#include <linux/stringify.h> #include <linux/watchdog.h> /* Non-secure watchdog register offsets */
@@ -39,12 +40,12 @@static unsigned int timeout =WDT_TIMEOUT ;module_param (timeout, int,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout period in seconds (default = " - __MODULE_STRING(WDT_TIMEOUT) ")"); + __stringify(WDT_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default = " - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct keembay_wdt {struct watchdog_device wdd;
drivers/watchdog/kempld_wdt.c +4 -3
@@ -21,6 +21,7 @@#include <linux/uaccess.h> #include <linux/watchdog.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/mfd/kempld.h> #define KEMPLD_WDT_STAGE_TIMEOUT (x) (0x1b + (x) * 4)
@@ -85,19 +86,19 @@ static unsigned int timeout = DEFAULT_TIMEOUT;module_param (timeout, uint,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. (>=0, default=" - __MODULE_STRING(DEFAULT_TIMEOUT) ")"); + __stringify(DEFAULT_TIMEOUT) ")");static unsigned int pretimeout =DEFAULT_PRETIMEOUT ;module_param (pretimeout, uint,0 );MODULE_PARM_DESC (pretimeout, "Watchdog pretimeout in seconds. (>=0, default=" - __MODULE_STRING(DEFAULT_PRETIMEOUT) ")"); + __stringify(DEFAULT_PRETIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")"); static int kempld_wdt_set_stage_action(struct kempld_wdt_data *wdt_data, struct kempld_wdt_stage *stage,
drivers/watchdog/lenovo_se10_wdt.c +3 -2
@@ -10,6 +10,7 @@#include <linux/moduleparam.h> #include <linux/platform_device.h> #include <linux/string.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h>
@@ -48,13 +49,13 @@ static int timeout; /* in seconds */module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. 1 <= timeout <= 255, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) "."); + __stringify(WATCHDOG_TIMEOUT) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct se10_wdt {struct watchdog_device wdd;
drivers/watchdog/lenovo_se30_wdt.c +3 -2
@@ -13,6 +13,7 @@#include <linux/module.h> #include <linux/moduleparam.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define IOREGION_OFFSET 4/* Use EC port 1 */
@@ -28,13 +29,13 @@ static int timeout; /* in seconds */module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. 1 <= timeout <= 255, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) "."); + __stringify(WATCHDOG_TIMEOUT) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");#define LNV_SE30_NAME "lenovo-se30-wdt"#define LNV_SE30_ID 0x0110
drivers/watchdog/lenovo_se30g2_se60_wdt.c +3 -2
@@ -10,6 +10,7 @@#include <linux/moduleparam.h> #include <linux/platform_device.h> #include <linux/string.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h>
@@ -37,13 +38,13 @@ static int timeout; /* in seconds */module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. 1 <= timeout <= 255, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) "."); + __stringify(WATCHDOG_TIMEOUT) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct se_30g2_60_wdt {struct watchdog_device wdd;
drivers/watchdog/loongson1_wdt.c +3 -2
@@ -9,6 +9,7 @@#include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> /* Loongson Watchdog Register Definitions */
@@ -19,12 +20,12 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static unsigned int heartbeat;module_param (heartbeat, uint,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (default=" - __MODULE_STRING(DEFAULT_HEARTBEAT) ")"); + __stringify(DEFAULT_HEARTBEAT) ")");struct ls1x_wdt_pdata {u32 timer_offset;
drivers/watchdog/lpc18xx_wdt.c +3 -2
@@ -15,6 +15,7 @@#include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> /* Registers */
@@ -41,12 +42,12 @@static int heartbeat;module_param (heartbeat, int,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds (default=" - __MODULE_STRING(LPC18XX_WDT_DEF_TIMEOUT) ")"); + __stringify(LPC18XX_WDT_DEF_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct lpc18xx_wdt_dev {struct watchdog_device wdt_dev;
drivers/watchdog/ma35d1_wdt.c +2 -1
@@ -20,6 +20,7 @@#include <linux/platform_device.h> #include <linux/pm_wakeirq.h> #include <linux/property.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h>
@@ -355,7 +356,7 @@ MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds");module_param (nowayout, bool,0 );MODULE_PARM_DESC ( nowayout, - "Watchdog cannot be stopped once started (default=" __MODULE_STRING( + "Watchdog cannot be stopped once started (default=" __stringify( WATCHDOG_NOWAYOUT) ")");MODULE_AUTHOR ("Zi-Yu Chen <[email protected]>" );
drivers/watchdog/max63xx_wdt.c +4 -3
@@ -23,6 +23,7 @@#include <linux/io.h> #include <linux/slab.h> #include <linux/property.h> +#include <linux/stringify.h> #define DEFAULT_HEARTBEAT 60#define MAX_HEARTBEAT 60
@@ -283,12 +284,12 @@ MODULE_DESCRIPTION("max63xx Watchdog Driver");module_param (heartbeat, int,0 );MODULE_PARM_DESC (heartbeat, "Watchdog heartbeat period in seconds from 1 to " - __MODULE_STRING(MAX_HEARTBEAT) ", default " - __MODULE_STRING(DEFAULT_HEARTBEAT )); + __stringify(MAX_HEARTBEAT) ", default " + __stringify(DEFAULT_HEARTBEAT ));module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");module_param (nodelay, int,0 ); MODULE_PARM_DESC(nodelay,
drivers/watchdog/max77620_wdt.c +2 -1
@@ -18,6 +18,7 @@#include <linux/platform_device.h> #include <linux/regmap.h> #include <linux/slab.h> +#include <linux/stringify.h> #include <linux/watchdog.h> static bool nowayout =WATCHDOG_NOWAYOUT ;
@@ -255,7 +256,7 @@ MODULE_DESCRIPTION("Max77620 watchdog timer driver");module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " - "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default=" __stringify(WATCHDOG_NOWAYOUT) ")");MODULE_AUTHOR ("Laxman Dewangan <[email protected]>" );MODULE_AUTHOR ("Luca Ceresoli <[email protected]>" );
drivers/watchdog/mena21_wdt.c +2 -1
@@ -17,6 +17,7 @@#include <linux/delay.h> #include <linux/bitops.h> #include <linux/of.h> +#include <linux/stringify.h> #define NUM_GPIOS 6
@@ -37,7 +38,7 @@ struct a21_wdt_drv {static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static unsigned int a21_wdt_get_bootstatus (struct a21_wdt_drv *drv) {
drivers/watchdog/menf21bmc_wdt.c +2 -1
@@ -11,6 +11,7 @@#include <linux/watchdog.h> #include <linux/platform_device.h> #include <linux/i2c.h> +#include <linux/stringify.h> #define DEVNAME "menf21bmc_wdt"
@@ -28,7 +29,7 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct menf21bmc_wdt {struct watchdog_device wdt;
drivers/watchdog/menz69_wdt.c +2 -1
@@ -8,6 +8,7 @@#include <linux/kernel.h> #include <linux/mcb.h> #include <linux/module.h> +#include <linux/stringify.h> #include <linux/watchdog.h> struct men_z069_drv {
@@ -29,7 +30,7 @@ struct men_z069_drv {static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int men_z069_wdt_start (struct watchdog_device *wdt) {
drivers/watchdog/meson_gxbb_wdt.c +3 -2
@@ -11,6 +11,7 @@#include <linux/of.h> #include <linux/platform_device.h> #include <linux/slab.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h>
@@ -31,12 +32,12 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static unsigned int timeout;module_param (timeout, uint,0 ); MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds=" - __MODULE_STRING(DEFAULT_TIMEOUT) ")"); + __stringify(DEFAULT_TIMEOUT) ")");struct meson_gxbb_wdt {void __iomem *reg_base;
drivers/watchdog/meson_wdt.c +2 -1
@@ -15,6 +15,7 @@#include <linux/moduleparam.h> #include <linux/platform_device.h> #include <linux/property.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h>
@@ -218,7 +219,7 @@ MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds");module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Carlo Caione <[email protected]>" );
drivers/watchdog/mixcomwd.c +2 -1
@@ -52,6 +52,7 @@#include <linux/timer.h> #include <linux/uaccess.h> #include <linux/io.h> +#include <linux/stringify.h> /* * We have two types of cards that can be probed:
@@ -107,7 +108,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static void mixcomwd_ping (void ) {
drivers/watchdog/mpc8xxx_wdt.c +3 -2
@@ -22,6 +22,7 @@#include <linux/watchdog.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #include <sysdev/fsl_soc.h> #define WATCHDOG_TIMEOUT 10
@@ -57,7 +58,7 @@ static u16 timeout;module_param (timeout, ushort,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. (1<timeout<65535, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + __stringify(WATCHDOG_TIMEOUT) ")");static bool reset =1 ;module_param (reset, bool,0 );
@@ -67,7 +68,7 @@ MODULE_PARM_DESC(reset,static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " - "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default=" __stringify(WATCHDOG_NOWAYOUT) ")");static void mpc8xxx_wdt_keepalive (struct mpc8xxx_wdt_ddata *ddata) {
drivers/watchdog/mt7621_wdt.c +2 -1
@@ -16,6 +16,7 @@#include <linux/platform_device.h> #include <linux/mfd/syscon.h> #include <linux/regmap.h> +#include <linux/stringify.h> #define SYSC_RSTSTAT 0x38#define WDT_RST_CAUSE BIT(1)
@@ -41,7 +42,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static inline void rt_wdt_w32 (void __iomem *base,unsigned int reg,u32 val) {
drivers/watchdog/mtk_wdt.c +2 -1
@@ -31,6 +31,7 @@#include <linux/types.h> #include <linux/watchdog.h> #include <linux/interrupt.h> +#include <linux/stringify.h> #define WDT_MAX_TIMEOUT 31#define WDT_MIN_TIMEOUT 2
@@ -526,7 +527,7 @@ MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds");module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Matthias Brugger <[email protected]>" );
drivers/watchdog/nct6694_wdt.c +2 -1
@@ -11,6 +11,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/slab.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define DEVICE_NAME "nct6694-wdt"
@@ -50,7 +51,7 @@ MODULE_PARM_DESC(pretimeout, "Watchdog pre-timeout in seconds");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");enum {NCT6694_ACTION_NONE =0 ,
drivers/watchdog/ni903x_wdt.c +3 -2
@@ -9,6 +9,7 @@#include <linux/io.h> #include <linux/module.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define NIWD_CONTROL 0x01
@@ -46,13 +47,13 @@ static unsigned int timeout;module_param (timeout, uint,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. (default=" - __MODULE_STRING(NIWD_DEFAULT_TIMEOUT) ")"); + __stringify(NIWD_DEFAULT_TIMEOUT) ")");static int nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, int,S_IRUGO );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static void ni903x_start (struct ni903x_wdt *wdt) {
drivers/watchdog/nic7018_wdt.c +3 -2
@@ -8,6 +8,7 @@#include <linux/io.h> #include <linux/module.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h>
@@ -34,13 +35,13 @@ static unsigned int timeout;module_param (timeout, uint,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. (default=" - __MODULE_STRING(WDT_DEFAULT_TIMEOUT) ")"); + __stringify(WDT_DEFAULT_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started. (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct nic7018_wdt {u16 io_base;
drivers/watchdog/nv_tco.c +3 -2
@@ -32,6 +32,7 @@#include <linux/platform_device.h> #include <linux/uaccess.h> #include <linux/io.h> +#include <linux/stringify.h> #include "nv_tco.h"
@@ -55,12 +56,12 @@ static struct platform_device *nv_tco_platform_device;static int heartbeat =WATCHDOG_HEARTBEAT ;/* in seconds */ module_param (heartbeat, int,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (2<heartbeat<39, " - "default=" __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); + "default=" __stringify(WATCHDOG_HEARTBEAT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started" - " (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + " (default=" __stringify(WATCHDOG_NOWAYOUT) ")");/* * Some TCO specific functions
drivers/watchdog/octeon-wdt-main.c +3 -2
@@ -55,6 +55,7 @@#include <linux/cpu.h> #include <linux/irq.h> #include <linux/irqdomain.h> +#include <linux/stringify.h> #include <asm/mipsregs.h> #include <asm/uasm.h>
@@ -93,13 +94,13 @@ static int heartbeat = WD_TIMO;module_param (heartbeat, int,0444 );MODULE_PARM_DESC (heartbeat, "Watchdog heartbeat in seconds. (0 < heartbeat, default=" - __MODULE_STRING(WD_TIMO) ")"); + __stringify(WD_TIMO) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0444 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int disable;module_param (disable, int,0444 );
drivers/watchdog/omap_wdt.c +2 -1
@@ -38,6 +38,7 @@#include <linux/io.h> #include <linux/slab.h> #include <linux/pm_runtime.h> +#include <linux/stringify.h> #include <linux/platform_data/omap-wd-timer.h> #include "omap_wdt.h"
@@ -45,7 +46,7 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " - "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default=" __stringify(WATCHDOG_NOWAYOUT) ")");static unsigned timer_margin;module_param (timer_margin, uint,0 );
drivers/watchdog/orion_wdt.c +2 -1
@@ -22,6 +22,7 @@#include <linux/err.h> #include <linux/of.h> #include <linux/of_device.h> +#include <linux/stringify.h> /* RSTOUT mask register physical address for Orion5x, Kirkwood and Dove */ #define ORION_RSTOUT_MASK_OFFSET 0x20108
@@ -687,7 +688,7 @@ MODULE_PARM_DESC(heartbeat, "Initial watchdog heartbeat in seconds");module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");MODULE_LICENSE ("GPL v2" );MODULE_ALIAS ("platform:orion_wdt" );
drivers/watchdog/pc87413_wdt.c +4 -3
@@ -30,6 +30,7 @@#include <linux/moduleparam.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> /* #define DEBUG 1 */
@@ -577,15 +578,15 @@ MODULE_LICENSE("GPL");module_param_hw (io, int, ioport,0 ); MODULE_PARM_DESC(io, MODNAME " I/O port (default: " - __MODULE_STRING(IO_DEFAULT) ")."); + __stringify(IO_DEFAULT) ").");module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in minutes (default=" - __MODULE_STRING(DEFAULT_TIMEOUT) ")."); + __stringify(DEFAULT_TIMEOUT) ").");module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");
drivers/watchdog/pcwd.c +3 -2
@@ -72,6 +72,7 @@#include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */ #include <linux/uaccess.h> /* For copy_to_user/put_user/... */ #include <linux/io.h> /* For inb/outb/... */ +#include <linux/stringify.h> /* For __stringify */ /* Module and version information */ #define WATCHDOG_VERSION "1.20"
@@ -203,13 +204,13 @@ static int heartbeat = WATCHDOG_HEARTBEAT;module_param (heartbeat, int,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. " "(2 <= heartbeat <= 7200 or 0=delay-time from dip-switches, default=" - __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); + __stringify(WATCHDOG_HEARTBEAT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Internal functions
drivers/watchdog/pcwd_pci.c +3 -2
@@ -47,6 +47,7 @@#include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */ #include <linux/uaccess.h> /* For copy_to_user/put_user/... */ #include <linux/io.h> /* For inb/outb/... */ +#include <linux/stringify.h> /* For __stringify */ /* Module and version information */ #define WATCHDOG_VERSION "1.03"
@@ -140,12 +141,12 @@ static int heartbeat = WATCHDOG_HEARTBEAT;module_param (heartbeat, int,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. " "(0<heartbeat<65536 or 0=delay-time from dip-switches, default=" - __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); + __stringify(WATCHDOG_HEARTBEAT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Internal functions
drivers/watchdog/pcwd_usb.c +3 -2
@@ -39,6 +39,7 @@#include <linux/mutex.h> /* For mutex locking */ #include <linux/hid.h> /* For HID_REQ_SET_REPORT & HID_DT_REPORT */ #include <linux/uaccess.h> /* For copy_to_user/put_user/... */ +#include <linux/stringify.h> /* For __stringify */ /* Module and Version Information */
@@ -57,12 +58,12 @@ static int heartbeat = WATCHDOG_HEARTBEAT;module_param (heartbeat, int,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. " "(0<heartbeat<65536 or 0=delay-time from dip-switches, default=" - __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); + __stringify(WATCHDOG_HEARTBEAT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* The vendor and product id's for the USB-PC Watchdog card */ #define USB_PCWD_VENDOR_ID 0x0c98
drivers/watchdog/pika_wdt.c +3 -2
@@ -25,6 +25,7 @@#include <linux/io.h> #include <linux/of.h> #include <linux/of_address.h> +#include <linux/stringify.h> #define DRV_NAME "PIKA-WDT"
@@ -39,12 +40,12 @@static int heartbeat =WDT_HEARTBEAT ;module_param (heartbeat, int,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. " - "(default = " __MODULE_STRING(WDT_HEARTBEAT) ")"); + "(default = " __stringify(WDT_HEARTBEAT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " - "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default=" __stringify(WATCHDOG_NOWAYOUT) ")"); static struct { void __iomem *fpga;
drivers/watchdog/pnx4008_wdt.c +3 -2
@@ -30,6 +30,7 @@#include <linux/of.h> #include <linux/delay.h> #include <linux/reboot.h> +#include <linux/stringify.h> /* WatchDog Timer - Chapter 23 Page 207 */
@@ -237,8 +238,8 @@ MODULE_DESCRIPTION("PNX4008 Watchdog Driver");module_param (heartbeat, uint,0 );MODULE_PARM_DESC (heartbeat, "Watchdog heartbeat period in seconds from 1 to " - __MODULE_STRING(MAX_HEARTBEAT) ", default " - __MODULE_STRING(DEFAULT_HEARTBEAT )); + __stringify(MAX_HEARTBEAT) ", default " + __stringify(DEFAULT_HEARTBEAT ));module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout,
drivers/watchdog/pseries-wdt.c +4 -3
@@ -10,6 +10,7 @@#include <linux/module.h> #include <linux/moduleparam.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/time64.h> #include <linux/watchdog.h> #include <asm/papr-watchdog.h>
@@ -26,18 +27,18 @@ static const unsigned long pseries_wdt_action[] = {static unsigned int action =WATCHDOG_ACTION ;module_param (action, uint,0444 ); MODULE_PARM_DESC(action, "Action taken when watchdog expires (default=" - __MODULE_STRING(WATCHDOG_ACTION) ")"); + __stringify(WATCHDOG_ACTION) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0444 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");#define WATCHDOG_TIMEOUT 60static unsigned int timeout =WATCHDOG_TIMEOUT ;module_param (timeout, uint,0444 ); MODULE_PARM_DESC(timeout, "Initial watchdog timeout in seconds (default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + __stringify(WATCHDOG_TIMEOUT) ")");struct pseries_wdt {struct watchdog_device wd;
drivers/watchdog/rc32434_wdt.c +3 -2
@@ -27,6 +27,7 @@#include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */ #include <linux/uaccess.h> /* For copy_to_user/put_user/... */ #include <linux/io.h> /* For devm_ioremap */ +#include <linux/stringify.h> /* For __stringify */ #include <asm/mach-rc32434/integ.h> /* For the Watchdog registers */
@@ -57,12 +58,12 @@ extern unsigned int idt_cpu_freq;static int timeout =WATCHDOG_TIMEOUT ;module_param (timeout, int,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout value, in seconds (default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + __stringify(WATCHDOG_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* apply or and nand masks to data read from addr and write back */ #define SET_BITS (addr, or, nand) \
drivers/watchdog/renesas_wdt.c +2 -1
@@ -16,6 +16,7 @@#include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/smp.h> +#include <linux/stringify.h> #include <linux/sys_soc.h> #include <linux/watchdog.h>
@@ -44,7 +45,7 @@ static const unsigned int clk_divs[] = { 1, 4, 16, 32, 64, 128, 1024, 4096 };static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct rwdt_priv {void __iomem *base;
drivers/watchdog/rn5t618_wdt.c +2 -1
@@ -9,6 +9,7 @@#include <linux/mfd/rn5t618.h> #include <linux/module.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define DRIVER_NAME "rn5t618-wdt"
@@ -21,7 +22,7 @@ MODULE_PARM_DESC(timeout, "Initial watchdog timeout in seconds");module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct rn5t618_wdt {struct watchdog_device wdt_dev;
drivers/watchdog/rt2880_wdt.c +2 -1
@@ -15,6 +15,7 @@#include <linux/watchdog.h> #include <linux/moduleparam.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <asm/mach-ralink/ralink_regs.h>
@@ -51,7 +52,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static inline void rt_wdt_w32 (void __iomem *base,unsigned int reg,u32 val) {
drivers/watchdog/rti_wdt.c +3 -2
@@ -17,6 +17,7 @@#include <linux/of_reserved_mem.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h>
@@ -414,8 +415,8 @@ MODULE_DESCRIPTION("K3 RTI Watchdog Driver");module_param (heartbeat, int,0 );MODULE_PARM_DESC (heartbeat, "Watchdog heartbeat period in seconds from 1 to " - __MODULE_STRING(MAX_HEARTBEAT) ", default " - __MODULE_STRING(DEFAULT_HEARTBEAT )); + __stringify(MAX_HEARTBEAT) ", default " + __stringify(DEFAULT_HEARTBEAT ));MODULE_LICENSE ("GPL" );MODULE_ALIAS ("platform:rti-wdt" );
drivers/watchdog/rzg2l_wdt.c +2 -1
@@ -14,6 +14,7 @@#include <linux/platform_device.h> #include <linux/pm_domain.h> #include <linux/pm_runtime.h> +#include <linux/stringify.h> #include <linux/reset.h> #include <linux/units.h> #include <linux/watchdog.h>
@@ -41,7 +42,7 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");enum rz_wdt_type {WDT_RZG2L ,
drivers/watchdog/rzv2h_wdt.c +2 -1
@@ -13,6 +13,7 @@#include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/reset.h> +#include <linux/stringify.h> #include <linux/units.h> #include <linux/watchdog.h>
@@ -48,7 +49,7 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");enum rzv2h_wdt_count_source {COUNT_SOURCE_LOCO ,
drivers/watchdog/s32g_wdt.c +3 -2
@@ -13,6 +13,7 @@#include <linux/moduleparam.h> #include <linux/of.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define DRIVER_NAME "s32g-swt"
@@ -42,12 +43,12 @@ struct s32g_wdt_device {static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static unsigned int timeout_param =S32G_WDT_DEFAULT_TIMEOUT ;module_param (timeout_param, uint,0 ); MODULE_PARM_DESC(timeout_param, "Watchdog timeout in seconds (default=" - __MODULE_STRING(S32G_WDT_DEFAULT_TIMEOUT) ")"); + __stringify(S32G_WDT_DEFAULT_TIMEOUT) ")");static bool early_enable;module_param (early_enable, bool,0 );
drivers/watchdog/s3c2410_wdt.c +4 -3
@@ -28,6 +28,7 @@#include <linux/regmap.h> #include <linux/delay.h> #include <linux/math64.h> +#include <linux/stringify.h> #define S3C2410_WTCON 0x00#define S3C2410_WTDAT 0x04
@@ -154,12 +155,12 @@ module_param(nowayout, bool, 0);module_param (soft_noboot, int,0 ); MODULE_PARM_DESC(tmr_margin, "Watchdog tmr_margin in seconds. (default=" - __MODULE_STRING(S3C2410_WATCHDOG_DEFAULT_TIME) ")"); + __stringify(S3C2410_WATCHDOG_DEFAULT_TIME) ")");MODULE_PARM_DESC (tmr_atboot,"Watchdog is started at boot time if set to 1, default=" - __MODULE_STRING(S3C2410_WATCHDOG_ATBOOT )); + __stringify(S3C2410_WATCHDOG_ATBOOT )); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");MODULE_PARM_DESC (soft_noboot,"Watchdog action, set to 1 to ignore reboots, 0 to reboot (default 0)" );/**
drivers/watchdog/sama5d4_wdt.c +3 -2
@@ -14,6 +14,7 @@#include <linux/of_irq.h> #include <linux/platform_device.h> #include <linux/reboot.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #include "at91sam9_wdt.h"
@@ -42,12 +43,12 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (wdt_timeout, int,0 );MODULE_PARM_DESC (wdt_timeout, "Watchdog timeout in seconds. (default = " - __MODULE_STRING(WDT_DEFAULT_TIMEOUT) ")"); + __stringify(WDT_DEFAULT_TIMEOUT) ")");module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static inline bool wdt_enabled (struct sama5d4_wdt *wdt) {
drivers/watchdog/sbc60xxwdt.c +3 -2
@@ -58,6 +58,7 @@#include <linux/init.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #define OUR_NAME "sbc60xxwdt"
@@ -98,13 +99,13 @@ static int timeout = WATCHDOG_TIMEOUT; /* in seconds, multiplied by HZ tomodule_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. (1<=timeout<=3600, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + __stringify(WATCHDOG_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static void wdt_timer_ping (struct timer_list *); static DEFINE_TIMER(timer, wdt_timer_ping);
drivers/watchdog/sbc7240_wdt.c +3 -2
@@ -23,6 +23,7 @@#include <linux/io.h> #include <linux/uaccess.h> #include <linux/atomic.h> +#include <linux/stringify.h> #define SBC7240_ENABLE_PORT 0x443#define SBC7240_DISABLE_PORT 0x043
@@ -34,8 +35,8 @@static int timeout =SBC7240_TIMEOUT ;/* in seconds */ module_param (timeout, int,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds. (1<=timeout<=" - __MODULE_STRING(SBC7240_MAX_TIMEOUT) ", default=" - __MODULE_STRING(SBC7240_TIMEOUT) ")"); + __stringify(SBC7240_MAX_TIMEOUT) ", default=" + __stringify(SBC7240_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );
drivers/watchdog/sbc8360.c +2 -1
@@ -48,6 +48,7 @@#include <linux/moduleparam.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> static unsigned long sbc8360_is_open;
@@ -199,7 +200,7 @@ MODULE_PARM_DESC(timeout, "Index into timeout table (0-63) (default=27 (60s))");module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Kernel methods.
drivers/watchdog/sbc_epx_c3.c +2 -1
@@ -25,6 +25,7 @@#include <linux/ioport.h> #include <linux/uaccess.h> #include <linux/io.h> +#include <linux/stringify.h> static int epx_c3_alive;
@@ -33,7 +34,7 @@ static int epx_c3_alive;static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");#define EPXC3_WATCHDOG_CTL_REG 0x1ee/* write 1 to enable, 0 to disable */ #define EPXC3_WATCHDOG_PET_REG 0x1ef/* write anything to pet once enabled */
drivers/watchdog/sbsa_gwdt.c +3 -2
@@ -46,6 +46,7 @@#include <linux/module.h> #include <linux/moduleparam.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/uaccess.h> #include <linux/watchdog.h> #include <asm/arch_timer.h>
@@ -103,7 +104,7 @@ static unsigned int timeout;module_param (timeout, uint,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. (>=0, default=" - __MODULE_STRING(DEFAULT_TIMEOUT) ")"); + __stringify(DEFAULT_TIMEOUT) ")");/* * action refers to action taken when watchdog gets WS0
@@ -120,7 +121,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,S_IRUGO );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Arm Base System Architecture 1.0 introduces watchdog v1 which
drivers/watchdog/sc1200wdt.c +2 -1
@@ -42,6 +42,7 @@#include <linux/semaphore.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #define SC1200_MODULE_VER "build 20020303"#define SC1200_MODULE_NAME "sc1200wdt"
@@ -92,7 +93,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");
drivers/watchdog/sch311x_wdt.c +3 -2
@@ -31,6 +31,7 @@#include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */ #include <linux/uaccess.h> /* For copy_to_user/put_user/... */ #include <linux/io.h> /* For inb/outb/... */ +#include <linux/stringify.h> /* For __stringify */ /* Module and version information */ #define DRV_NAME "sch311x_wdt"
@@ -68,13 +69,13 @@ static int timeout = WATCHDOG_TIMEOUT; /* in seconds */module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. 1<= timeout <=15300, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) "."); + __stringify(WATCHDOG_TIMEOUT) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Super-IO functions
drivers/watchdog/shwdt.c +4 -3
@@ -30,6 +30,7 @@#include <linux/io.h> #include <linux/clk.h> #include <linux/err.h> +#include <linux/stringify.h> #include <asm/watchdog.h> #define DRV_NAME "sh-wdt"
@@ -329,14 +330,14 @@ MODULE_ALIAS("platform:" DRV_NAME);module_param (clock_division_ratio, int,0 );MODULE_PARM_DESC (clock_division_ratio, "Clock division ratio. Valid ranges are from 0x5 (1.31ms) " - "to 0x7 (5.25ms). (default=" __MODULE_STRING(WTCSR_CKS_4096) ")"); + "to 0x7 (5.25ms). (default=" __stringify(WTCSR_CKS_4096) ")");module_param (heartbeat, int,0 );MODULE_PARM_DESC (heartbeat, "Watchdog heartbeat in seconds. (1 <= heartbeat <= 3600, default=" - __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); + __stringify(WATCHDOG_HEARTBEAT) ")");module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");
drivers/watchdog/simatic-ipc-wdt.c +2 -1
@@ -22,6 +22,7 @@#include <linux/sizes.h> #include <linux/util_macros.h> #include <linux/watchdog.h> +#include <linux/stringify.h> #define WD_ENABLE_IOADR 0x62#define WD_TRIGGER_IOADR 0x66
@@ -42,7 +43,7 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0000 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static struct resource gp_status_reg_227e_res =DEFINE_RES_IO_NAMED (GP_STATUS_REG_227E ,SZ_1 ,KBUILD_MODNAME );
drivers/watchdog/sl28cpld_wdt.c +2 -1
@@ -10,6 +10,7 @@#include <linux/platform_device.h> #include <linux/property.h> #include <linux/regmap.h> +#include <linux/stringify.h> #include <linux/watchdog.h> /*
@@ -30,7 +31,7 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int timeout;module_param (timeout, int,0 );
drivers/watchdog/smsc37b787_wdt.c +2 -1
@@ -55,6 +55,7 @@#include <linux/spinlock.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> /* enable support for minutes as units? */
@@ -611,4 +612,4 @@ MODULE_PARM_DESC(timeout, "range is 1-255 units, default is 60");module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");
drivers/watchdog/softdog.c +3 -2
@@ -24,6 +24,7 @@#include <linux/module.h> #include <linux/moduleparam.h> #include <linux/reboot.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h> #include <linux/workqueue.h>
@@ -33,13 +34,13 @@ static unsigned int soft_margin = TIMER_MARGIN; /* in seconds */module_param (soft_margin, uint,0 );MODULE_PARM_DESC (soft_margin, "Watchdog soft_margin in seconds. (0 < soft_margin < 65536, default=" - __MODULE_STRING(TIMER_MARGIN) ")"); + __stringify(TIMER_MARGIN) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int soft_noboot;module_param (soft_noboot, int,0 );
drivers/watchdog/sp5100_tco.c +4 -3
@@ -39,6 +39,7 @@#include <linux/moduleparam.h> #include <linux/pci.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/watchdog.h>
@@ -69,18 +70,18 @@ static struct pci_dev *sp5100_tco_pci;static bool action =WATCHDOG_ACTION ;module_param (action, bool,0 ); MODULE_PARM_DESC(action, "Action taken when watchdog expires, 0 to reset, 1 to poweroff (default=" - __MODULE_STRING(WATCHDOG_ACTION) ")"); + __stringify(WATCHDOG_ACTION) ")");#define WATCHDOG_HEARTBEAT 60/* 60 sec default heartbeat. */ static int heartbeat =WATCHDOG_HEARTBEAT ;/* in seconds */ module_param (heartbeat, int,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (default=" - __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); + __stringify(WATCHDOG_HEARTBEAT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started." - " (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + " (default=" __stringify(WATCHDOG_NOWAYOUT) ")");/* * Some TCO specific functions
drivers/watchdog/starfive-wdt.c +4 -3
@@ -12,6 +12,7 @@#include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/reset.h> +#include <linux/stringify.h> #include <linux/watchdog.h> /* JH7100 Watchdog register define */
@@ -72,12 +73,12 @@ module_param(early_enable, bool, 0);module_param (nowayout, bool,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (default=" - __MODULE_STRING(STARFIVE_WDT_DEFAULT_TIME) ")"); + __stringify(STARFIVE_WDT_DEFAULT_TIME) ")");MODULE_PARM_DESC (early_enable,"Watchdog is started at boot time if set to 1, default=" - __MODULE_STRING(STARFIVE_WDT_EARLY_ENA )); + __stringify(STARFIVE_WDT_EARLY_ENA )); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct starfive_wdt_variant {unsigned int control;/* Watchdog Control Register for reset enable */
drivers/watchdog/stmp3xxx_rtc_wdt.c +3 -2
@@ -13,6 +13,7 @@#include <linux/stmp3xxx_rtc_wdt.h> #include <linux/notifier.h> #include <linux/reboot.h> +#include <linux/stringify.h> #define WDOG_TICK_RATE 1000/* 1 kHz clock */ #define STMP3XXX_DEFAULT_TIMEOUT 19
@@ -21,8 +22,8 @@static int heartbeat =STMP3XXX_DEFAULT_TIMEOUT ;module_param (heartbeat, uint,0 ); MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat period in seconds from 1 to " - __MODULE_STRING(STMP3XXX_MAX_TIMEOUT) ", default " - __MODULE_STRING(STMP3XXX_DEFAULT_TIMEOUT )); + __stringify(STMP3XXX_MAX_TIMEOUT) ", default " + __stringify(STMP3XXX_DEFAULT_TIMEOUT ));static int wdt_start (struct watchdog_device *wdd) {
drivers/watchdog/stpmic1_wdt.c +2 -1
@@ -9,6 +9,7 @@#include <linux/of.h> #include <linux/regmap.h> #include <linux/slab.h> +#include <linux/stringify.h> #include <linux/watchdog.h> /* WATCHDOG CONTROL REGISTER bit */
@@ -25,7 +26,7 @@static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct stpmic1_wdt {struct stpmic1 *pmic;
drivers/watchdog/sun4v_wdt.c +3 -2
@@ -15,6 +15,7 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/moduleparam.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #include <asm/hypervisor.h> #include <asm/mdesc.h>
@@ -27,12 +28,12 @@static unsigned int timeout;module_param (timeout, uint,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default=" - __MODULE_STRING(WDT_TIMEOUT) ")"); + __stringify(WDT_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,S_IRUGO ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int sun4v_wdt_stop (struct watchdog_device *wdd) {
drivers/watchdog/sunplus_wdt.c +2 -1
@@ -11,6 +11,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/reset.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define WDT_CTRL 0x00
@@ -38,7 +39,7 @@ MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct sp_wdt_priv {struct watchdog_device wdev;
drivers/watchdog/sunxi_wdt.c +2 -1
@@ -20,6 +20,7 @@#include <linux/of.h> #include <linux/platform_device.h> #include <linux/types.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define WDT_MAX_TIMEOUT 16
@@ -357,7 +358,7 @@ MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds");module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " - "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default=" __stringify(WATCHDOG_NOWAYOUT) ")");MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Carlo Caione <[email protected]>" );
drivers/watchdog/tegra_wdt.c +3 -2
@@ -9,6 +9,7 @@#include <linux/io.h> #include <linux/of.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> /* minimum and maximum watchdog trigger timeout, in seconds */
@@ -67,13 +68,13 @@ static int heartbeat = WDT_HEARTBEAT;module_param (heartbeat, int,0 );MODULE_PARM_DESC (heartbeat, "Watchdog heartbeats in seconds. (default = " - __MODULE_STRING(WDT_HEARTBEAT) ")"); + __stringify(WDT_HEARTBEAT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int tegra_wdt_start (struct watchdog_device *wdd) {
drivers/watchdog/tqmx86_wdt.c +2 -1
@@ -14,6 +14,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/timer.h> +#include <linux/stringify.h> #include <linux/watchdog.h> /* default timeout (secs) */
@@ -23,7 +24,7 @@ static unsigned int timeout;module_param (timeout, uint,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. (1<=timeout<=4096, default=" - __MODULE_STRING(WDT_TIMEOUT) ")"); + __stringify(WDT_TIMEOUT) ")");struct tqmx86_wdt {struct watchdog_device wdd;void __iomem *io_base;
drivers/watchdog/ts4800_wdt.c +2 -1
@@ -12,13 +12,14 @@#include <linux/of.h> #include <linux/platform_device.h> #include <linux/regmap.h> +#include <linux/stringify.h> #include <linux/watchdog.h> static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* possible feed values */ #define TS4800_WDT_FEED_2S 0x1
drivers/watchdog/twl4030_wdt.c +2 -1
@@ -12,13 +12,14 @@#include <linux/watchdog.h> #include <linux/platform_device.h> #include <linux/mfd/twl.h> +#include <linux/stringify.h> #define TWL4030_WATCHDOG_CFG_REG_OFFS 0x3static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " - "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default=" __stringify(WATCHDOG_NOWAYOUT) ")");static int twl4030_wdt_write (unsigned char val) {
drivers/watchdog/txx9wdt.c +4 -3
@@ -16,6 +16,7 @@#include <linux/clk.h> #include <linux/err.h> #include <linux/io.h> +#include <linux/stringify.h> #include <asm/txx9tmr.h> #define WD_TIMER_CCD 7/* 1/256 */
@@ -27,14 +28,14 @@ static unsigned int timeout = TIMER_MARGIN; /* in seconds */module_param (timeout, uint,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. " - "(0<timeout<((2^" __MODULE_STRING(TXX9_TIMER_BITS) ")/(IMCLK/256)), " - "default=" __MODULE_STRING(TIMER_MARGIN) ")"); + "(0<timeout<((2^" __stringify(TXX9_TIMER_BITS) ")/(IMCLK/256)), " + "default=" __stringify(TIMER_MARGIN) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started " - "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default=" __stringify(WATCHDOG_NOWAYOUT) ")");static struct txx9_tmr_reg __iomem *txx9wdt_reg;static struct clk *txx9_imclk;
drivers/watchdog/uniphier_wdt.c +3 -2
@@ -13,6 +13,7 @@#include <linux/of.h> #include <linux/platform_device.h> #include <linux/regmap.h> +#include <linux/stringify.h> #include <linux/watchdog.h> /* WDT timer setting register */
@@ -245,12 +246,12 @@ module_platform_driver(uniphier_wdt_driver);module_param (timeout, uint,0000 );MODULE_PARM_DESC (timeout, "Watchdog timeout seconds in power of 2. (0 < timeout < 128, default=" - __MODULE_STRING(WDT_DEFAULT_TIMEOUT) ")"); + __stringify(WDT_DEFAULT_TIMEOUT) ")");module_param (nowayout, bool,0000 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");MODULE_AUTHOR ("Keiji Hayashibara <[email protected]>" );MODULE_DESCRIPTION ("UniPhier Watchdog Device Driver" );
drivers/watchdog/via_wdt.c +3 -2
@@ -18,6 +18,7 @@#include <linux/jiffies.h> #include <linux/module.h> #include <linux/pci.h> +#include <linux/stringify.h> #include <linux/timer.h> #include <linux/watchdog.h>
@@ -56,12 +57,12 @@static int timeout =WDT_TIMEOUT ;module_param (timeout, int,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds, between 1 and 1023 " - "(default = " __MODULE_STRING(WDT_TIMEOUT) ")"); + "(default = " __stringify(WDT_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " - "(default = " __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default = " __stringify(WATCHDOG_NOWAYOUT) ")");static struct watchdog_device wdt_dev;static struct resource wdt_res;
drivers/watchdog/visconti_wdt.c +2 -1
@@ -11,6 +11,7 @@#include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define WDT_CNT 0x00
@@ -29,7 +30,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC ( nowayout, - "Watchdog cannot be stopped once started (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT)")"); + "Watchdog cannot be stopped once started (default=" __stringify(WATCHDOG_NOWAYOUT)")");struct visconti_wdt_priv {struct watchdog_device wdev;
drivers/watchdog/w83627hf_wdt.c +3 -2
@@ -35,6 +35,7 @@#include <linux/init.h> #include <linux/io.h> #include <linux/dmi.h> +#include <linux/stringify.h> #define WATCHDOG_NAME "w83627hf/thf/hg/dhg WDT"#define WATCHDOG_TIMEOUT 60/* 60 sec default timeout */
@@ -55,13 +56,13 @@ static int timeout; /* in seconds */module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. 1 <= timeout <= 255, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) "."); + __stringify(WATCHDOG_TIMEOUT) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int early_disable;module_param (early_disable, int,0 );
drivers/watchdog/w83877f_wdt.c +3 -2
@@ -54,6 +54,7 @@#include <linux/init.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #define OUR_NAME "w83877f_wdt"
@@ -84,14 +85,14 @@ static int timeout = WATCHDOG_TIMEOUT;module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. (1<=timeout<=3600, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + __stringify(WATCHDOG_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static void wdt_timer_ping (struct timer_list *); static DEFINE_TIMER(timer, wdt_timer_ping);
drivers/watchdog/w83977f_wdt.c +3 -2
@@ -25,6 +25,7 @@#include <linux/reboot.h> #include <linux/uaccess.h> #include <linux/io.h> +#include <linux/stringify.h> #define WATCHDOG_VERSION "1.00"
@@ -49,7 +50,7 @@ static DEFINE_SPINLOCK(spinlock);module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds (15..7635), default=" - __MODULE_STRING(DEFAULT_TIMEOUT) ")"); + __stringify(DEFAULT_TIMEOUT) ")");module_param (testmode, int,0 );MODULE_PARM_DESC (testmode,"Watchdog testmode (1 = no reboot), default=0" );
@@ -57,7 +58,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Start the watchdog
drivers/watchdog/wafer5823wdt.c +3 -2
@@ -36,6 +36,7 @@#include <linux/spinlock.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #define WATCHDOG_NAME "Wafer 5823 WDT"#define PFX WATCHDOG_NAME ": "
@@ -61,13 +62,13 @@ static int timeout = WD_TIMO; /* in seconds */module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in seconds. 1 <= timeout <= 255, default=" - __MODULE_STRING(WD_TIMO) "."); + __stringify(WD_TIMO) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static void wafwdt_ping (void ) {
drivers/watchdog/watchdog_dev.c +3 -2
@@ -44,6 +44,7 @@#include <linux/types.h> /* For standard types (like size_t) */ #include <linux/watchdog.h> /* For watchdog specific items */ #include <linux/uaccess.h> /* For copy_to_user/put_user/... */ +#include <linux/stringify.h> /* For __stringify */ #include "watchdog_core.h" #include "watchdog_pretimeout.h"
@@ -1314,9 +1315,9 @@ int watchdog_dev_resume(struct watchdog_device *wdd)module_param (handle_boot_enabled, bool,0444 );MODULE_PARM_DESC (handle_boot_enabled, "Watchdog core auto-updates boot enabled watchdogs before userspace takes over (default=" - __MODULE_STRING(IS_ENABLED(CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED)) ")"); + __stringify(IS_ENABLED(CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED)) ")");module_param (open_timeout, uint,0644 );MODULE_PARM_DESC (open_timeout, "Maximum time (in seconds, 0 means infinity) for userspace to take over a running watchdog (default=" - __MODULE_STRING(CONFIG_WATCHDOG_OPEN_TIMEOUT) ")"); + __stringify(CONFIG_WATCHDOG_OPEN_TIMEOUT) ")");
drivers/watchdog/wdat_wdt.c +3 -2
@@ -13,6 +13,7 @@#include <linux/module.h> #include <linux/platform_device.h> #include <linux/pm.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #define MAX_WDAT_ACTIONS ACPI_WDAT_ACTION_RESERVED
@@ -54,14 +55,14 @@ struct wdat_wdt {static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");#define WDAT_DEFAULT_TIMEOUT 30static int timeout =WDAT_DEFAULT_TIMEOUT ;module_param (timeout, int,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default=" - __MODULE_STRING(WDAT_DEFAULT_TIMEOUT) ")"); + __stringify(WDAT_DEFAULT_TIMEOUT) ")");static int wdat_wdt_read (struct wdat_wdt *wdat,const struct wdat_instruction *instr,u32 *value)
drivers/watchdog/wdt.c +3 -2
@@ -43,6 +43,7 @@#include <linux/init.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #include "wd501p.h"
@@ -60,13 +61,13 @@ static int wd_heartbeat;module_param (heartbeat, int,0 );MODULE_PARM_DESC (heartbeat, "Watchdog heartbeat in seconds. (0 < heartbeat < 65536, default=" - __MODULE_STRING(WD_TIMO) ")"); + __stringify(WD_TIMO) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* You must set these - there is no sane way to probe for this board. */ static int io =0x240 ;
drivers/watchdog/wdt977.c +3 -2
@@ -34,6 +34,7 @@#include <linux/reboot.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #include <asm/mach-types.h>
@@ -59,7 +60,7 @@ static DEFINE_SPINLOCK(spinlock);module_param (timeout, int,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (60..15300, default=" - __MODULE_STRING(DEFAULT_TIMEOUT) ")"); + __stringify(DEFAULT_TIMEOUT) ")");module_param (testmode, int,0 );MODULE_PARM_DESC (testmode,"Watchdog testmode (1 = no reboot), default=0" );
@@ -67,7 +68,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Start the watchdog
drivers/watchdog/wdt_pci.c +3 -2
@@ -49,6 +49,7 @@#include <linux/pci.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #define WDT_IS_PCI
@@ -72,13 +73,13 @@ static int wd_heartbeat;module_param (heartbeat, int,0 );MODULE_PARM_DESC (heartbeat, "Watchdog heartbeat in seconds. (0<heartbeat<65536, default=" - __MODULE_STRING(WD_TIMO) ")"); + __stringify(WD_TIMO) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* Support for the Fan Tachometer on the PCI-WDT501 */ static int tachometer;
drivers/watchdog/wm831x_wdt.c +2 -1
@@ -13,6 +13,7 @@#include <linux/platform_device.h> #include <linux/watchdog.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #include <linux/mfd/wm831x/core.h> #include <linux/mfd/wm831x/pdata.h>
@@ -22,7 +23,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");struct wm831x_wdt_drvdata {struct watchdog_device wdt;
drivers/watchdog/wm8350_wdt.c +2 -1
@@ -14,13 +14,14 @@#include <linux/platform_device.h> #include <linux/watchdog.h> #include <linux/uaccess.h> +#include <linux/stringify.h> #include <linux/mfd/wm8350/core.h> static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static DEFINE_MUTEX (wdt_mutex);
drivers/watchdog/xen_wdt.c +3 -2
@@ -17,6 +17,7 @@#include <linux/module.h> #include <linux/moduleparam.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #include <xen/xen.h> #include <asm/xen/hypercall.h>
@@ -30,12 +31,12 @@ static time64_t wdt_expires;static unsigned int timeout;module_param (timeout, uint,S_IRUGO ); MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds " - "(default=" __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + "(default=" __stringify(WATCHDOG_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,S_IRUGO ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " - "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + "(default=" __stringify(WATCHDOG_NOWAYOUT) ")");static inline time64_t set_timeout (struct watchdog_device *wdd) {
drivers/watchdog/xilinx_wwdt.c +3 -2
@@ -12,6 +12,7 @@#include <linux/math64.h> #include <linux/module.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/watchdog.h> /* Max timeout is calculated at 100MHz source clock */
@@ -47,11 +48,11 @@ static int closed_window_percent;module_param (wwdt_timeout, int,0 );MODULE_PARM_DESC (wwdt_timeout, "Watchdog time in seconds. (default=" - __MODULE_STRING(XWWDT_DEFAULT_TIMEOUT) ")"); + __stringify(XWWDT_DEFAULT_TIMEOUT) ")");module_param (closed_window_percent, int,0 );MODULE_PARM_DESC (closed_window_percent, "Watchdog closed window percentage. (default=" - __MODULE_STRING(XWWDT_CLOSE_WINDOW_PERCENT) ")"); + __stringify(XWWDT_CLOSE_WINDOW_PERCENT) ")");/** * struct xwwdt_device - Watchdog device structure * @base: base io address of WDT device
drivers/watchdog/ziirave_wdt.c +2 -1
@@ -18,6 +18,7 @@#include <linux/slab.h> #include <linux/sysfs.h> #include <linux/types.h> +#include <linux/stringify.h> #include <linux/watchdog.h> #include <linux/unaligned.h>
@@ -94,7 +95,7 @@ MODULE_PARM_DESC(reset_duration,static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int ziirave_wdt_revision (struct i2c_client *client,struct ziirave_wdt_rev *rev,u8 command)
Signature · 1 line
2.55.0
Petr Pavlu
maintainerPATCH 2/3 drivers: Replace __MODULE_STRING() with __stringify()
In reply to Petr Pavlu__MODULE_STRING() has been an alias for __stringify() since "[PATCH] MODULE_PARM support for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end of linux/module.h
Replace the remaining uses of __MODULE_STRING() with __stringify() in preparation for its removal.
--- drivers/comedi/comedi_fops.c | 5 +++-- drivers/gpu/drm/drm_fb_helper.c | 3 ++- drivers/hwmon/fschmd.c | 3 ++- drivers/hwmon/nct7904.c | 5 +++-- drivers/hwmon/sch56xx-common.c | 3 ++- drivers/hwmon/w83793.c | 5 +++-- drivers/i2c/busses/i2c-kempld.c | 3 ++- drivers/net/ethernet/atheros/atl1e/atl1e_param.c | 9 +++++---- drivers/net/ethernet/atheros/atlx/atl1.c | 3 ++- drivers/net/ethernet/atheros/atlx/atl2.c | 11 ++++++----- drivers/net/ethernet/intel/e1000/e1000_param.c | 15 ++++++++------- drivers/net/ethernet/intel/e1000e/param.c | 16 ++++++---------- drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c | 7 ++++--- drivers/platform/cznic/turris-omnia-mcu-watchdog.c | 3 ++- drivers/rtc/rtc-ds1374.c | 3 ++- drivers/thunderbolt/tb.c | 3 ++- drivers/thunderbolt/tunnel.c | 5 +++-- drivers/tty/serial/8250/8250_platform.c | 3 ++- drivers/usb/atm/speedtch.c | 15 ++++++++------- drivers/usb/atm/usbatm.c | 17 +++++++++-------- 20 files changed, 76 insertions(+), 61 deletions(-)
drivers/comedi/comedi_fops.c +3 -2
@@ -29,6 +29,7 @@#include <linux/io.h> #include <linux/uaccess.h> #include <linux/compat.h> +#include <linux/stringify.h> #include "comedi_internal.h"
@@ -82,14 +83,14 @@ unsigned int comedi_default_buf_size_kb = CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB;module_param (comedi_default_buf_size_kb, uint,0644 );MODULE_PARM_DESC (comedi_default_buf_size_kb, "default asynchronous buffer size in KiB (default " - __MODULE_STRING(CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB) ")"); + __stringify(CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB) ")");unsigned int comedi_default_buf_maxsize_kb =CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB ;module_param (comedi_default_buf_maxsize_kb, uint,0644 );MODULE_PARM_DESC (comedi_default_buf_maxsize_kb, "default maximum size of asynchronous buffer in KiB (default " - __MODULE_STRING(CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB) ")"); + __stringify(CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB) ")");static DEFINE_MUTEX (comedi_board_minor_table_lock); static struct comedi_device
drivers/gpu/drm/drm_fb_helper.c +2 -1
@@ -31,6 +31,7 @@#include <linux/console.h> #include <linux/export.h> +#include <linux/stringify.h> #include <drm/drm_atomic.h> #include <drm/drm_drv.h>
@@ -54,7 +55,7 @@ static int drm_fbdev_overalloc = CONFIG_DRM_FBDEV_OVERALLOC;module_param (drm_fbdev_overalloc, int,0444 );MODULE_PARM_DESC (drm_fbdev_overalloc, "Overallocation of the fbdev buffer (%) [default=" - __MODULE_STRING(CONFIG_DRM_FBDEV_OVERALLOC) "]"); + __stringify(CONFIG_DRM_FBDEV_OVERALLOC) "]");/* * In order to keep user-space compatibility, we want in certain use-cases
drivers/hwmon/fschmd.c +2 -1
@@ -35,6 +35,7 @@#include <linux/miscdevice.h> #include <linux/uaccess.h> #include <linux/kref.h> +#include <linux/stringify.h> /* Addresses to scan */ static const unsigned short normal_i2c[] = {0x73 ,I2C_CLIENT_END };
@@ -43,7 +44,7 @@ static const unsigned short normal_i2c[] = { 0x73, I2C_CLIENT_END };static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");enum chips { fscpos, fscher, fscscy, fschrc, fschmd, fschds, fscsyl };
drivers/hwmon/nct7904.c +3 -2
@@ -23,6 +23,7 @@#include <linux/i2c.h> #include <linux/hwmon.h> #include <linux/watchdog.h> +#include <linux/stringify.h> #define VENDOR_ID_REG 0x7A/* Any bank */ #define NUVOTON_ID 0x50
@@ -113,12 +114,12 @@static int timeout;module_param (timeout, int,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout in minutes. 1 <= timeout <= 255, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) "."); + __stringify(WATCHDOG_TIMEOUT) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static const unsigned short normal_i2c[] = {0x2d ,0x2e ,I2C_CLIENT_END
drivers/hwmon/sch56xx-common.c +2 -1
@@ -18,13 +18,14 @@#include <linux/watchdog.h> #include <linux/uaccess.h> #include <linux/slab.h> +#include <linux/stringify.h> #include "sch56xx-common.h" /* Insmod parameters */ static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");#define SIO_SCH56XX_LD_EM 0x0C/* Embedded uController Logical Dev */ #define SIO_UNLOCK_KEY 0x55/* Key to enable Super-I/O */
drivers/hwmon/w83793.c +3 -2
@@ -34,6 +34,7 @@#include <linux/notifier.h> #include <linux/reboot.h> #include <linux/jiffies.h> +#include <linux/stringify.h> /* Default values */ #define WATCHDOG_TIMEOUT 2/* 2 minute default timeout */
@@ -57,13 +58,13 @@ static int timeout = WATCHDOG_TIMEOUT; /* default timeout in minutes */module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in minutes. 2<= timeout <=255 (default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + __stringify(WATCHDOG_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Address 0x00, 0x0d, 0x0e, 0x0f in all three banks are reserved
drivers/i2c/busses/i2c-kempld.c +2 -1
@@ -13,6 +13,7 @@#include <linux/i2c.h> #include <linux/delay.h> #include <linux/mfd/kempld.h> +#include <linux/stringify.h> #define KEMPLD_I2C_PRELOW 0x0b#define KEMPLD_I2C_PREHIGH 0x0c
@@ -66,7 +67,7 @@ struct kempld_i2c_data {static unsigned int bus_frequency =KEMPLD_I2C_FREQ_STD ;module_param (bus_frequency, uint,0 ); MODULE_PARM_DESC(bus_frequency, "Set I2C bus frequency in kHz (default=" - __MODULE_STRING(KEMPLD_I2C_FREQ_STD)")"); + __stringify(KEMPLD_I2C_FREQ_STD)")");static int i2c_bus =-1 ;module_param (i2c_bus, int,0 );
drivers/net/ethernet/atheros/atl1e/atl1e_param.c +5 -4
@@ -7,6 +7,7 @@*/ #include <linux/netdevice.h> +#include <linux/stringify.h> #include "atl1e.h"
@@ -181,7 +182,7 @@ void atl1e_check_options(struct atl1e_adapter *adapter) .type = range_option, .name = "Transmit Ddescription Count", .err ="using default of " - __MODULE_STRING(ATL1E_DEFAULT_TX_DESC_CNT), + __stringify(ATL1E_DEFAULT_TX_DESC_CNT), .def = ATL1E_DEFAULT_TX_DESC_CNT, .arg = { .r = { .min = ATL1E_MIN_TX_DESC_CNT, .max = ATL1E_MAX_TX_DESC_CNT} }
@@ -200,7 +201,7 @@ void atl1e_check_options(struct atl1e_adapter *adapter) .type = range_option, .name = "Memory size of rx buffer(KB)", .err ="using default of " - __MODULE_STRING(ATL1E_DEFAULT_RX_MEM_SIZE), + __stringify(ATL1E_DEFAULT_RX_MEM_SIZE), .def = ATL1E_DEFAULT_RX_MEM_SIZE, .arg = { .r = { .min = ATL1E_MIN_RX_MEM_SIZE, .max = ATL1E_MAX_RX_MEM_SIZE} }
@@ -220,7 +221,7 @@ void atl1e_check_options(struct atl1e_adapter *adapter) .type = range_option, .name = "Interrupt Moderate Timer", .err ="using default of " - __MODULE_STRING(INT_MOD_DEFAULT_CNT), + __stringify(INT_MOD_DEFAULT_CNT), .def = INT_MOD_DEFAULT_CNT, .arg = { .r = { .min = INT_MOD_MIN_CNT, .max = INT_MOD_MAX_CNT} }
@@ -239,7 +240,7 @@ void atl1e_check_options(struct atl1e_adapter *adapter) .type = range_option, .name = "Speed/Duplex Selection", .err ="using default of " - __MODULE_STRING(MEDIA_TYPE_AUTO_SENSOR), + __stringify(MEDIA_TYPE_AUTO_SENSOR), .def = MEDIA_TYPE_AUTO_SENSOR, .arg = { .r = { .min = MEDIA_TYPE_AUTO_SENSOR, .max = MEDIA_TYPE_10M_HALF} }
drivers/net/ethernet/atheros/atlx/atl1.c +2 -1
@@ -56,6 +56,7 @@#include <linux/slab.h> #include <linux/spinlock.h> #include <linux/string.h> +#include <linux/stringify.h> #include <linux/tcp.h> #include <linux/timer.h> #include <linux/types.h>
@@ -198,7 +199,7 @@ static void atl1_check_options(struct atl1_adapter *adapter) .type = range_option, .name = "Interrupt Moderator Timer", .err ="using default of " - __MODULE_STRING(DEFAULT_INT_MOD_CNT), + __stringify(DEFAULT_INT_MOD_CNT), .def = DEFAULT_INT_MOD_CNT, .arg = {.r = {.min = MIN_INT_MOD_CNT, .max = MAX_INT_MOD_CNT} }
drivers/net/ethernet/atheros/atlx/atl2.c +6 -5
@@ -29,6 +29,7 @@#include <linux/slab.h> #include <linux/spinlock.h> #include <linux/string.h> +#include <linux/stringify.h> #include <linux/tcp.h> #include <linux/timer.h> #include <linux/types.h>
@@ -2921,7 +2922,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)/* Bytes of Transmit Memory */ opt.type = range_option; opt.name ="Bytes of Transmit Memory" ; - opt.err ="using default of " __MODULE_STRING(ATL2_DEFAULT_TX_MEMSIZE ); + opt.err ="using default of " __stringify(ATL2_DEFAULT_TX_MEMSIZE ); opt.def =ATL2_DEFAULT_TX_MEMSIZE ; opt.arg.r.min =ATL2_MIN_TX_MEMSIZE ; opt.arg.r.max =ATL2_MAX_TX_MEMSIZE ;
@@ -2939,7 +2940,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)/* Receive Memory Block Count */ opt.type = range_option; opt.name ="Number of receive memory block" ; - opt.err ="using default of " __MODULE_STRING(ATL2_DEFAULT_RXD_COUNT ); + opt.err ="using default of " __stringify(ATL2_DEFAULT_RXD_COUNT ); opt.def =ATL2_DEFAULT_RXD_COUNT ; opt.arg.r.min =ATL2_MIN_RXD_COUNT ; opt.arg.r.max =ATL2_MAX_RXD_COUNT ;
@@ -2960,7 +2961,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)/* Interrupt Moderate Timer */ opt.type = range_option; opt.name ="Interrupt Moderate Timer" ; - opt.err ="using default of " __MODULE_STRING(INT_MOD_DEFAULT_CNT ); + opt.err ="using default of " __stringify(INT_MOD_DEFAULT_CNT ); opt.def =INT_MOD_DEFAULT_CNT ; opt.arg.r.min =INT_MOD_MIN_CNT ; opt.arg.r.max =INT_MOD_MAX_CNT ;
@@ -2973,7 +2974,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)/* Flash Vendor */ opt.type = range_option; opt.name ="SPI Flash Vendor" ; - opt.err ="using default of " __MODULE_STRING(FLASH_VENDOR_DEFAULT ); + opt.err ="using default of " __stringify(FLASH_VENDOR_DEFAULT ); opt.def =FLASH_VENDOR_DEFAULT ; opt.arg.r.min =FLASH_VENDOR_MIN ; opt.arg.r.max =FLASH_VENDOR_MAX ;
@@ -2986,7 +2987,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)/* MediaType */ opt.type = range_option; opt.name ="Speed/Duplex Selection" ; - opt.err ="using default of " __MODULE_STRING(MEDIA_TYPE_AUTO_SENSOR ); + opt.err ="using default of " __stringify(MEDIA_TYPE_AUTO_SENSOR ); opt.def =MEDIA_TYPE_AUTO_SENSOR ; opt.arg.r.min =MEDIA_TYPE_AUTO_SENSOR ; opt.arg.r.max =MEDIA_TYPE_10M_HALF ;
drivers/net/ethernet/intel/e1000/e1000_param.c +8 -7
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 1999 - 2006 Intel Corporation. */ +#include <linux/stringify.h> #include "e1000.h" /* This is the only thing that needs to be changed to adjust the
@@ -259,7 +260,7 @@ void e1000_check_options(struct e1000_adapter *adapter) .type = range_option, .name = "Transmit Descriptors", .err ="using default of " - __MODULE_STRING(E1000_DEFAULT_TXD), + __stringify(E1000_DEFAULT_TXD), .def = E1000_DEFAULT_TXD, .arg = { .r = { .min = E1000_MIN_TXD,
@@ -287,7 +288,7 @@ void e1000_check_options(struct e1000_adapter *adapter) .type = range_option, .name = "Receive Descriptors", .err ="using default of " - __MODULE_STRING(E1000_DEFAULT_RXD), + __stringify(E1000_DEFAULT_RXD), .def = E1000_DEFAULT_RXD, .arg = { .r = { .min = E1000_MIN_RXD,
@@ -354,7 +355,7 @@ void e1000_check_options(struct e1000_adapter *adapter) opt = (struct e1000_option ) { .type = range_option, .name ="Transmit Interrupt Delay" , - .err ="using default of " __MODULE_STRING(DEFAULT_TIDV ), + .err ="using default of " __stringify(DEFAULT_TIDV ), .def =DEFAULT_TIDV , .arg = { .r = { .min =MIN_TXDELAY , .max =MAX_TXDELAY }}
@@ -372,7 +373,7 @@ void e1000_check_options(struct e1000_adapter *adapter) opt = (struct e1000_option ) { .type = range_option, .name ="Transmit Absolute Interrupt Delay" , - .err ="using default of " __MODULE_STRING(DEFAULT_TADV ), + .err ="using default of " __stringify(DEFAULT_TADV ), .def =DEFAULT_TADV , .arg = { .r = { .min =MIN_TXABSDELAY , .max =MAX_TXABSDELAY }}
@@ -390,7 +391,7 @@ void e1000_check_options(struct e1000_adapter *adapter) opt = (struct e1000_option ) { .type = range_option, .name ="Receive Interrupt Delay" , - .err ="using default of " __MODULE_STRING(DEFAULT_RDTR ), + .err ="using default of " __stringify(DEFAULT_RDTR ), .def =DEFAULT_RDTR , .arg = { .r = { .min =MIN_RXDELAY , .max =MAX_RXDELAY }}
@@ -408,7 +409,7 @@ void e1000_check_options(struct e1000_adapter *adapter) opt = (struct e1000_option ) { .type = range_option, .name ="Receive Absolute Interrupt Delay" , - .err ="using default of " __MODULE_STRING(DEFAULT_RADV ), + .err ="using default of " __stringify(DEFAULT_RADV ), .def =DEFAULT_RADV , .arg = { .r = { .min =MIN_RXABSDELAY , .max =MAX_RXABSDELAY }}
@@ -426,7 +427,7 @@ void e1000_check_options(struct e1000_adapter *adapter) opt = (struct e1000_option ) { .type = range_option, .name ="Interrupt Throttling Rate (ints/sec)" , - .err ="using default of " __MODULE_STRING(DEFAULT_ITR ), + .err ="using default of " __stringify(DEFAULT_ITR ), .def =DEFAULT_ITR , .arg = { .r = { .min =MIN_ITR , .max =MAX_ITR }}
drivers/net/ethernet/intel/e1000e/param.c +6 -10
@@ -4,6 +4,7 @@#include <linux/netdevice.h> #include <linux/module.h> #include <linux/pci.h> +#include <linux/stringify.h> #include "e1000.h"
@@ -238,8 +239,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)static const struct e1000_option opt = { .type = range_option, .name ="Transmit Interrupt Delay" , - .err ="using default of " - __MODULE_STRING(DEFAULT_TIDV ), + .err ="using default of " __stringify(DEFAULT_TIDV ), .def =DEFAULT_TIDV , .arg = { .r = { .min =MIN_TXDELAY , .max =MAX_TXDELAY } }
@@ -258,8 +258,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)static const struct e1000_option opt = { .type = range_option, .name ="Transmit Absolute Interrupt Delay" , - .err ="using default of " - __MODULE_STRING(DEFAULT_TADV ), + .err ="using default of " __stringify(DEFAULT_TADV ), .def =DEFAULT_TADV , .arg = { .r = { .min =MIN_TXABSDELAY , .max =MAX_TXABSDELAY } }
@@ -278,8 +277,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)static struct e1000_option opt = { .type = range_option, .name ="Receive Interrupt Delay" , - .err ="using default of " - __MODULE_STRING(DEFAULT_RDTR ), + .err ="using default of " __stringify(DEFAULT_RDTR ), .def =DEFAULT_RDTR , .arg = { .r = { .min =MIN_RXDELAY , .max =MAX_RXDELAY } }
@@ -301,8 +299,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)static struct e1000_option opt = { .type = range_option, .name ="Receive Absolute Interrupt Delay" , - .err ="using default of " - __MODULE_STRING(DEFAULT_RADV ), + .err ="using default of " __stringify(DEFAULT_RADV ), .def =DEFAULT_RADV , .arg = { .r = { .min =MIN_RXABSDELAY , .max =MAX_RXABSDELAY } }
@@ -324,8 +321,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)static const struct e1000_option opt = { .type = range_option, .name ="Interrupt Throttling Rate (ints/sec)" , - .err ="using default of " - __MODULE_STRING(DEFAULT_ITR ), + .err ="using default of " __stringify(DEFAULT_ITR ), .def =DEFAULT_ITR , .arg = { .r = { .min =MIN_ITR , .max =MAX_ITR } }
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c +4 -3
@@ -7,7 +7,8 @@*/ #include "pch_gbe.h" -#include <linux/module.h> /* for __MODULE_STRING */ +#include <linux/module.h> +#include <linux/stringify.h> #define OPTION_UNSET -1#define OPTION_DISABLED 0
@@ -440,7 +441,7 @@ void pch_gbe_check_options(struct pch_gbe_adapter *adapter) .type = range_option, .name = "Transmit Descriptors", .err ="using default of " - __MODULE_STRING(PCH_GBE_DEFAULT_TXD), + __stringify(PCH_GBE_DEFAULT_TXD), .def = PCH_GBE_DEFAULT_TXD, .arg = { .r = { .min = PCH_GBE_MIN_TXD, .max = PCH_GBE_MAX_TXD } }
@@ -456,7 +457,7 @@ void pch_gbe_check_options(struct pch_gbe_adapter *adapter) .type = range_option, .name = "Receive Descriptors", .err ="using default of " - __MODULE_STRING(PCH_GBE_DEFAULT_RXD), + __stringify(PCH_GBE_DEFAULT_RXD), .def = PCH_GBE_DEFAULT_RXD, .arg = { .r = { .min = PCH_GBE_MIN_RXD, .max = PCH_GBE_MAX_RXD } }
drivers/platform/cznic/turris-omnia-mcu-watchdog.c +2 -1
@@ -9,6 +9,7 @@#include <linux/device.h> #include <linux/i2c.h> #include <linux/moduleparam.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/units.h> #include <linux/watchdog.h>
@@ -25,7 +26,7 @@ MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int omnia_wdt_start (struct watchdog_device *wdt) {
drivers/rtc/rtc-ds1374.c +2 -1
@@ -26,6 +26,7 @@#include <linux/workqueue.h> #include <linux/slab.h> #include <linux/pm.h> +#include <linux/stringify.h> #ifdef CONFIG_RTC_DRV_DS1374_WDT #include <linux/fs.h> #include <linux/ioctl.h>
@@ -381,7 +382,7 @@ MODULE_PARM_DESC(wdt_margin, "Watchdog timeout in seconds (default 32s)");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default =" - __MODULE_STRING(WATCHDOG_NOWAYOUT)")"); + __stringify(WATCHDOG_NOWAYOUT)")");static const struct watchdog_info ds1374_wdt_info = { .identity ="DS1374 Watchdog" ,
drivers/thunderbolt/tb.c +2 -1
@@ -11,6 +11,7 @@#include <linux/delay.h> #include <linux/pm_runtime.h> #include <linux/platform_data/x86/apple.h> +#include <linux/stringify.h> #include "tb.h" #include "tb_regs.h"
@@ -47,7 +48,7 @@ static unsigned int asym_threshold = TB_ASYM_THRESHOLD;module_param_named (asym_threshold, asym_threshold, uint,0444 );MODULE_PARM_DESC (asym_threshold, "threshold (Mb/s) when to Gen 4 switch link symmetry. 0 disables. (default: " - __MODULE_STRING(TB_ASYM_THRESHOLD) ")"); + __stringify(TB_ASYM_THRESHOLD) ")");/** * struct tb_cm - Simple Thunderbolt connection manager
drivers/thunderbolt/tunnel.c +3 -2
@@ -11,6 +11,7 @@#include <linux/list.h> #include <linux/ktime.h> #include <linux/string_helpers.h> +#include <linux/stringify.h> #include "tunnel.h" #include "tb.h"
@@ -89,12 +90,12 @@ static int dprx_timeout = TB_DPRX_TIMEOUT;module_param (dprx_timeout, int,0444 );MODULE_PARM_DESC (dprx_timeout, "DPRX capability read timeout in ms, -1 waits forever (default: " - __MODULE_STRING(TB_DPRX_TIMEOUT) ")"); + __stringify(TB_DPRX_TIMEOUT) ")");static unsigned int dma_credits =TB_DMA_CREDITS ;module_param (dma_credits, uint,0444 ); MODULE_PARM_DESC(dma_credits, "specify custom credits for DMA tunnels (default: " - __MODULE_STRING(TB_DMA_CREDITS) ")"); + __stringify(TB_DMA_CREDITS) ")");static bool bw_alloc_mode = true;module_param (bw_alloc_mode, bool,0444 );
drivers/tty/serial/8250/8250_platform.c +2 -1
@@ -16,6 +16,7 @@#include <linux/moduleparam.h> #include <linux/once.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/serial_8250.h>
@@ -382,6 +383,6 @@ module_param_hw(share_irqs, bool, other, 0644);MODULE_PARM_DESC (share_irqs,"Share IRQs with other non-8250/16x50 devices (unsafe)" );module_param (nr_uarts, uint,0644 ); -MODULE_PARM_DESC(nr_uarts, "Maximum number of UARTs supported. (1-" __MODULE_STRING(CONFIG_SERIAL_8250_NR_UARTS) ")"); +MODULE_PARM_DESC(nr_uarts, "Maximum number of UARTs supported. (1-" __stringify(CONFIG_SERIAL_8250_NR_UARTS) ")");MODULE_ALIAS_CHARDEV_MAJOR (TTY_MAJOR );
drivers/usb/atm/speedtch.c +8 -7
@@ -19,6 +19,7 @@#include <linux/moduleparam.h> #include <linux/slab.h> #include <linux/stat.h> +#include <linux/stringify.h> #include <linux/timer.h> #include <linux/types.h> #include <linux/usb/ch9.h>
@@ -77,31 +78,31 @@ static unsigned int num_ModemOption;module_param (altsetting, uint,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (altsetting, "Alternative setting for data interface (bulk_default: " - __MODULE_STRING(DEFAULT_BULK_ALTSETTING) "; isoc_default: " - __MODULE_STRING(DEFAULT_ISOC_ALTSETTING) ")"); + __stringify(DEFAULT_BULK_ALTSETTING) "; isoc_default: " + __stringify(DEFAULT_ISOC_ALTSETTING) ")");module_param (dl_512_first, bool,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (dl_512_first, "Read 512 bytes before sending firmware (default: " - __MODULE_STRING(DEFAULT_DL_512_FIRST) ")"); + __stringify(DEFAULT_DL_512_FIRST) ")");module_param (enable_isoc, bool,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (enable_isoc, "Use isochronous transfers if available (default: " - __MODULE_STRING(DEFAULT_ENABLE_ISOC) ")"); + __stringify(DEFAULT_ENABLE_ISOC) ")");module_param (sw_buffering, bool,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (sw_buffering, "Enable software buffering (default: " - __MODULE_STRING(DEFAULT_SW_BUFFERING) ")"); + __stringify(DEFAULT_SW_BUFFERING) ")");module_param (BMaxDSL, uint,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (BMaxDSL, -"default: " __MODULE_STRING(DEFAULT_B_MAX_DSL )); +"default: " __stringify(DEFAULT_B_MAX_DSL ));module_param (ModemMode, byte,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (ModemMode, -"default: " __MODULE_STRING(DEFAULT_MODEM_MODE )); +"default: " __stringify(DEFAULT_MODEM_MODE ));module_param_array (ModemOption, byte, &num_ModemOption,S_IRUGO );MODULE_PARM_DESC (ModemOption,"default: 0x10,0x00,0x00,0x00,0x20" );
drivers/usb/atm/usbatm.c +9 -8
@@ -64,6 +64,7 @@#include <linux/signal.h> #include <linux/slab.h> #include <linux/stat.h> +#include <linux/stringify.h> #include <linux/timer.h> #include <linux/wait.h> #include <linux/kthread.h>
@@ -103,26 +104,26 @@ static unsigned int snd_buf_bytes = UDSL_DEFAULT_SND_BUF_SIZE;module_param (num_rcv_urbs, uint,S_IRUGO );MODULE_PARM_DESC (num_rcv_urbs, "Number of urbs used for reception (range: 0-" - __MODULE_STRING(UDSL_MAX_RCV_URBS) ", default: " - __MODULE_STRING(UDSL_DEFAULT_RCV_URBS) ")"); + __stringify(UDSL_MAX_RCV_URBS) ", default: " + __stringify(UDSL_DEFAULT_RCV_URBS) ")");module_param (num_snd_urbs, uint,S_IRUGO );MODULE_PARM_DESC (num_snd_urbs, "Number of urbs used for transmission (range: 0-" - __MODULE_STRING(UDSL_MAX_SND_URBS) ", default: " - __MODULE_STRING(UDSL_DEFAULT_SND_URBS) ")"); + __stringify(UDSL_MAX_SND_URBS) ", default: " + __stringify(UDSL_DEFAULT_SND_URBS) ")");module_param (rcv_buf_bytes, uint,S_IRUGO );MODULE_PARM_DESC (rcv_buf_bytes, "Size of the buffers used for reception, in bytes (range: 1-" - __MODULE_STRING(UDSL_MAX_BUF_SIZE) ", default: " - __MODULE_STRING(UDSL_DEFAULT_RCV_BUF_SIZE) ")"); + __stringify(UDSL_MAX_BUF_SIZE) ", default: " + __stringify(UDSL_DEFAULT_RCV_BUF_SIZE) ")");module_param (snd_buf_bytes, uint,S_IRUGO );MODULE_PARM_DESC (snd_buf_bytes, "Size of the buffers used for transmission, in bytes (range: 1-" - __MODULE_STRING(UDSL_MAX_BUF_SIZE) ", default: " - __MODULE_STRING(UDSL_DEFAULT_SND_BUF_SIZE) ")"); + __stringify(UDSL_MAX_BUF_SIZE) ", default: " + __stringify(UDSL_DEFAULT_SND_BUF_SIZE) ")");/* receive */
Signature · 1 line
2.55.0
Petr Pavlu
maintainerPATCH 3/3 module: Remove obsolete __MODULE_STRING()
In reply to Petr Pavlu__MODULE_STRING() has been an alias for __stringify() since "[PATCH] MODULE_PARM support for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end of linux/module.h
Remove __MODULE_STRING() now that all remaining uses have been replaced directly with __stringify().
--- include/linux/module.h | 4 ---- 1 file changed, 4 deletions(-)
include/linux/module.h +0 -4
@@ -886,10 +886,6 @@ extern const struct kobj_type module_ktype;#define symbol_request (x) try_then_request_module(symbol_get(x), "symbol:" #x) -/* BELOW HERE ALL THESE ARE OBSOLETE AND WILL VANISH */ - -#define __MODULE_STRING (x) __stringify(x) -#ifdef CONFIG_GENERIC_BUG void module_bug_finalize (const Elf_Ehdr *,const Elf_Shdr *,struct module *);
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH 3/3] module: Remove obsolete __MODULE_STRING()
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 9 lines
__MODULE_STRING()has been an alias for__stringify()since "[PATCH]MODULE_PARMsupport for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end oflinux/module.hRemove
__MODULE_STRING()now that all remaining uses have been replaced directly with__stringify().Signed-off-by Petr Pavlu <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
[email protected]
AI reviewRe: [PATCH 1/3] watchdog: Replace __MODULE_STRING() with __stringify()
In reply to Petr PavluSashiko has reviewed this patch and found no issues. It looks great!
Quoted 9 lines
__MODULE_STRING()has been an alias for__stringify()since "[PATCH]MODULE_PARMsupport for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end oflinux/module.hReplace the remaining uses of
__MODULE_STRING()with__stringify()in preparation for its removal.Signed-off-by Petr Pavlu <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
[email protected]
AI reviewRe: [PATCH 2/3] drivers: Replace __MODULE_STRING() with __stringify()
In reply to Petr PavluSashiko has reviewed this patch and found no issues. It looks great!
Quoted 9 lines
__MODULE_STRING()has been an alias for__stringify()since "[PATCH]MODULE_PARMsupport for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end oflinux/module.hReplace the remaining uses of
__MODULE_STRING()with__stringify()in preparation for its removal.Signed-off-by Petr Pavlu <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Re: [PATCH 1/3] watchdog: Replace __MODULE_STRING() with __stringify()
In reply to Petr PavluQuoted 9 lines · Petr Pavlu
__MODULE_STRING()has been an alias for__stringify()since "[PATCH]MODULE_PARMsupport for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end oflinux/module.hReplace the remaining uses of
__MODULE_STRING()with__stringify()in preparation for its removal.Signed-off-by Petr Pavlu <[email protected]>
I didn't look at all but at some of the drivers (Renesas ones, da905x, STMP and a few others). Those looked good. I guess you generated the changeset anyhow:
Re: [PATCH 1/3] watchdog: Replace __MODULE_STRING() with __stringify()
In reply to Petr PavluQuoted 10 lines · Petr Pavlu
__MODULE_STRING()has been an alias for__stringify()since "[PATCH]MODULE_PARMsupport for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end oflinux/module.hReplace the remaining uses of
__MODULE_STRING()with__stringify()in preparation for its removal.Signed-off-by Petr Pavlu <[email protected]>Reviewed-by Wolfram Sang <[email protected]>
Applied to watchdog-next.
Thanks,
Guenter
Guenter Roeck
maintainerRe: [PATCH 2/3] drivers: Replace __MODULE_STRING() with __stringify()
In reply to Petr PavluQuoted 9 lines · Petr Pavlu
__MODULE_STRING()has been an alias for__stringify()since "[PATCH]MODULE_PARMsupport for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end oflinux/module.hReplace the remaining uses of
__MODULE_STRING()with__stringify()in preparation for its removal.Signed-off-by Petr Pavlu <[email protected]>
Quoted 7 lines
--- drivers/comedi/comedi_fops.c | 5 +++-- drivers/gpu/drm/drm_fb_helper.c | 3 ++- drivers/hwmon/fschmd.c | 3 ++- drivers/hwmon/nct7904.c | 5 +++-- drivers/hwmon/sch56xx-common.c | 3 ++- drivers/hwmon/w83793.c | 5 +++--
I don't know how other subsystem maintainers want to handle it, but please send the hwmon patches separately; I'll want to apply it through the hwmon tree to avoid the potential of merge conflicts.
Thanks,
Guenter
Re: [PATCH 3/3] module: Remove obsolete __MODULE_STRING()
In reply to Petr PavluQuoted 31 lines · Petr Pavlu
__MODULE_STRING()has been an alias for__stringify()since "[PATCH]MODULE_PARMsupport for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end oflinux/module.hRemove
__MODULE_STRING()now that all remaining uses have been replaced directly with__stringify().Signed-off-by Petr Pavlu <[email protected]>--- include/linux/module.h | 4 ---- 1 file changed, 4 deletions(-)include/linux/module.h +0
-4@@ -886,10 +886,6 @@ extern const struct kobj_type module_ktype;#define symbol_request (x) try_then_request_module(symbol_get(x), "symbol:" #x) -/* BELOW HERE ALL THESE ARE OBSOLETE AND WILL VANISH */ - -#define __MODULE_STRING (x) __stringify(x) -#ifdef CONFIG_GENERIC_BUG void module_bug_finalize (const Elf_Ehdr *,const Elf_Shdr *,struct module *);Signature · 2 lines
-- 2.55.0
Signature · 1 line
Aaron Tomlin
Re: [PATCH 2/3] drivers: Replace __MODULE_STRING() with __stringify()
In reply to Petr PavluQuoted 9 lines · Petr Pavlu
__MODULE_STRING()has been an alias for__stringify()since "[PATCH]MODULE_PARMsupport for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end oflinux/module.hReplace the remaining uses of
__MODULE_STRING()with__stringify()in preparation for its removal.Signed-off-by Petr Pavlu <[email protected]>
Petr Pavlu
maintainerRe: [PATCH 2/3] drivers: Replace __MODULE_STRING() with __stringify()
In reply to Guenter RoeckQuoted 18 lines · Guenter Roeck
Quoted 9 lines · Petr Pavlu
__MODULE_STRING()has been an alias for__stringify()since "[PATCH]MODULE_PARMsupport for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end oflinux/module.hReplace the remaining uses of
__MODULE_STRING()with__stringify()in preparation for its removal.Signed-off-by Petr Pavlu <[email protected]>Quoted 7 lines
--- drivers/comedi/comedi_fops.c | 5 +++-- drivers/gpu/drm/drm_fb_helper.c | 3 ++- drivers/hwmon/fschmd.c | 3 ++- drivers/hwmon/nct7904.c | 5 +++-- drivers/hwmon/sch56xx-common.c | 3 ++- drivers/hwmon/w83793.c | 5 +++--
Quoted 3 lines
I don't know how other subsystem maintainers want to handle it, but please send the hwmon patches separately; I'll want to apply it through the hwmon tree to avoid the potential of merge conflicts.
Sure, I'll do it in v2.
If other maintainers would also like changes affecting their drivers to be split into separate patches, please let me know.
Signature · 2 lines
Thanks, Petr
Re: [PATCH 2/3] drivers: Replace __MODULE_STRING() with __stringify()
In reply to Petr PavluHi Petr,
Quoted 9 lines · Petr Pavlu
__MODULE_STRING()has been an alias for__stringify()since "[PATCH]MODULE_PARMsupport for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end oflinux/module.hReplace the remaining uses of
__MODULE_STRING()with__stringify()in preparation for its removal.Signed-off-by Petr Pavlu <[email protected]>
Thanks,
Andi
Re: [PATCH 2/3] drivers: Replace __MODULE_STRING() with __stringify()
In reply to Petr PavluQuoted 9 lines · Petr Pavlu
__MODULE_STRING()has been an alias for__stringify()since "[PATCH]MODULE_PARMsupport for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end oflinux/module.hReplace the remaining uses of
__MODULE_STRING()with__stringify()in preparation for its removal.Signed-off-by Petr Pavlu <[email protected]>
Signature · 4 lines
-=( Ian Abbott <[email protected]> || MEV Ltd. is a company )=- -=( registered in England & Wales. Regd. number: 02862268. )=- -=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=- -=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-
Re: [PATCH 2/3] drivers: Replace __MODULE_STRING() with __stringify()
In reply to Petr PavluQuoted 9 lines · Petr Pavlu
__MODULE_STRING()has been an alias for__stringify()since "[PATCH]MODULE_PARMsupport for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end oflinux/module.hReplace the remaining uses of
__MODULE_STRING()with__stringify()in preparation for its removal.Signed-off-by Petr Pavlu <[email protected]>
Quoted 697 lines
--- drivers/comedi/comedi_fops.c | 5 +++-- drivers/gpu/drm/drm_fb_helper.c | 3 ++- drivers/hwmon/fschmd.c | 3 ++- drivers/hwmon/nct7904.c | 5 +++-- drivers/hwmon/sch56xx-common.c | 3 ++- drivers/hwmon/w83793.c | 5 +++-- drivers/i2c/busses/i2c-kempld.c | 3 ++- drivers/net/ethernet/atheros/atl1e/atl1e_param.c | 9 +++++---- drivers/net/ethernet/atheros/atlx/atl1.c | 3 ++- drivers/net/ethernet/atheros/atlx/atl2.c | 11 ++++++----- drivers/net/ethernet/intel/e1000/e1000_param.c | 15 ++++++++------- drivers/net/ethernet/intel/e1000e/param.c | 16 ++++++---------- drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c | 7 ++++--- drivers/platform/cznic/turris-omnia-mcu-watchdog.c | 3 ++- drivers/rtc/rtc-ds1374.c | 3 ++- drivers/thunderbolt/tb.c | 3 ++- drivers/thunderbolt/tunnel.c | 5 +++-- drivers/tty/serial/8250/8250_platform.c | 3 ++- drivers/usb/atm/speedtch.c | 15 ++++++++------- drivers/usb/atm/usbatm.c | 17 +++++++++-------- 20 files changed, 76 insertions(+), 61 deletions(-)drivers/comedi/comedi_fops.c +3
-2@@ -29,6 +29,7 @@#include <linux/io.h> #include <linux/uaccess.h> #include <linux/compat.h> +#include <linux/stringify.h> #include "comedi_internal.h" @@ -82,14 +83,14 @@ unsigned int comedi_default_buf_size_kb = CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB;module_param (comedi_default_buf_size_kb, uint,0644 );MODULE_PARM_DESC (comedi_default_buf_size_kb, "default asynchronous buffer size in KiB (default " - __MODULE_STRING(CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB) ")"); + __stringify(CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB) ")");unsigned int comedi_default_buf_maxsize_kb =CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB ;module_param (comedi_default_buf_maxsize_kb, uint,0644 );MODULE_PARM_DESC (comedi_default_buf_maxsize_kb, "default maximum size of asynchronous buffer in KiB (default " - __MODULE_STRING(CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB) ")"); + __stringify(CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB) ")");static DEFINE_MUTEX (comedi_board_minor_table_lock); static struct comedi_devicedrivers/gpu/drm/drm_fb_helper.c +2
-1@@ -31,6 +31,7 @@#include <linux/console.h> #include <linux/export.h> +#include <linux/stringify.h> #include <drm/drm_atomic.h> #include <drm/drm_drv.h> @@ -54,7 +55,7 @@ static int drm_fbdev_overalloc = CONFIG_DRM_FBDEV_OVERALLOC;module_param (drm_fbdev_overalloc, int,0444 );MODULE_PARM_DESC (drm_fbdev_overalloc, "Overallocation of the fbdev buffer (%) [default=" - __MODULE_STRING(CONFIG_DRM_FBDEV_OVERALLOC) "]"); + __stringify(CONFIG_DRM_FBDEV_OVERALLOC) "]");/* * In order to keep user-space compatibility, we want in certain use-cases drivers/hwmon/fschmd.c +2
-1@@ -35,6 +35,7 @@#include <linux/miscdevice.h> #include <linux/uaccess.h> #include <linux/kref.h> +#include <linux/stringify.h> /* Addresses to scan */ static const unsigned short normal_i2c[] = {0x73 ,I2C_CLIENT_END };@@ -43,7 +44,7 @@ static const unsigned short normal_i2c[] = { 0x73, I2C_CLIENT_END };static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");enum chips { fscpos, fscher, fscscy, fschrc, fschmd, fschds, fscsyl };drivers/hwmon/nct7904.c +3
-2@@ -23,6 +23,7 @@#include <linux/i2c.h> #include <linux/hwmon.h> #include <linux/watchdog.h> +#include <linux/stringify.h> #define VENDOR_ID_REG 0x7A/* Any bank */ #define NUVOTON_ID 0x50@@ -113,12 +114,12 @@static int timeout;module_param (timeout, int,0 ); MODULE_PARM_DESC(timeout, "Watchdog timeout in minutes. 1 <= timeout <= 255, default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) "."); + __stringify(WATCHDOG_TIMEOUT) ".");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static const unsigned short normal_i2c[] = {0x2d ,0x2e ,I2C_CLIENT_END drivers/hwmon/sch56xx-common.c +2
-1@@ -18,13 +18,14 @@#include <linux/watchdog.h> #include <linux/uaccess.h> #include <linux/slab.h> +#include <linux/stringify.h> #include "sch56xx-common.h" /* Insmod parameters */ static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");#define SIO_SCH56XX_LD_EM 0x0C/* Embedded uController Logical Dev */ #define SIO_UNLOCK_KEY 0x55/* Key to enable Super-I/O */ drivers/hwmon/w83793.c +3
-2@@ -34,6 +34,7 @@#include <linux/notifier.h> #include <linux/reboot.h> #include <linux/jiffies.h> +#include <linux/stringify.h> /* Default values */ #define WATCHDOG_TIMEOUT 2/* 2 minute default timeout */ @@ -57,13 +58,13 @@ static int timeout = WATCHDOG_TIMEOUT; /* default timeout in minutes */module_param (timeout, int,0 );MODULE_PARM_DESC (timeout, "Watchdog timeout in minutes. 2<= timeout <=255 (default=" - __MODULE_STRING(WATCHDOG_TIMEOUT) ")"); + __stringify(WATCHDOG_TIMEOUT) ")");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 );MODULE_PARM_DESC (nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");/* * Address 0x00, 0x0d, 0x0e, 0x0f in all three banks are reserved drivers/i2c/busses/i2c-kempld.c +2
-1@@ -13,6 +13,7 @@#include <linux/i2c.h> #include <linux/delay.h> #include <linux/mfd/kempld.h> +#include <linux/stringify.h> #define KEMPLD_I2C_PRELOW 0x0b#define KEMPLD_I2C_PREHIGH 0x0c@@ -66,7 +67,7 @@ struct kempld_i2c_data {static unsigned int bus_frequency =KEMPLD_I2C_FREQ_STD ;module_param (bus_frequency, uint,0 ); MODULE_PARM_DESC(bus_frequency, "Set I2C bus frequency in kHz (default=" - __MODULE_STRING(KEMPLD_I2C_FREQ_STD)")"); + __stringify(KEMPLD_I2C_FREQ_STD)")");static int i2c_bus =-1 ;module_param (i2c_bus, int,0 );drivers/net/ethernet/atheros/atl1e/atl1e_param.c +5
-4@@ -7,6 +7,7 @@*/ #include <linux/netdevice.h> +#include <linux/stringify.h> #include "atl1e.h" @@ -181,7 +182,7 @@ void atl1e_check_options(struct atl1e_adapter *adapter) .type = range_option, .name = "Transmit Ddescription Count", .err ="using default of " - __MODULE_STRING(ATL1E_DEFAULT_TX_DESC_CNT), + __stringify(ATL1E_DEFAULT_TX_DESC_CNT), .def = ATL1E_DEFAULT_TX_DESC_CNT, .arg = { .r = { .min = ATL1E_MIN_TX_DESC_CNT, .max = ATL1E_MAX_TX_DESC_CNT} }@@ -200,7 +201,7 @@ void atl1e_check_options(struct atl1e_adapter *adapter) .type = range_option, .name = "Memory size of rx buffer(KB)", .err ="using default of " - __MODULE_STRING(ATL1E_DEFAULT_RX_MEM_SIZE), + __stringify(ATL1E_DEFAULT_RX_MEM_SIZE), .def = ATL1E_DEFAULT_RX_MEM_SIZE, .arg = { .r = { .min = ATL1E_MIN_RX_MEM_SIZE, .max = ATL1E_MAX_RX_MEM_SIZE} }@@ -220,7 +221,7 @@ void atl1e_check_options(struct atl1e_adapter *adapter) .type = range_option, .name = "Interrupt Moderate Timer", .err ="using default of " - __MODULE_STRING(INT_MOD_DEFAULT_CNT), + __stringify(INT_MOD_DEFAULT_CNT), .def = INT_MOD_DEFAULT_CNT, .arg = { .r = { .min = INT_MOD_MIN_CNT, .max = INT_MOD_MAX_CNT} }@@ -239,7 +240,7 @@ void atl1e_check_options(struct atl1e_adapter *adapter) .type = range_option, .name = "Speed/Duplex Selection", .err ="using default of " - __MODULE_STRING(MEDIA_TYPE_AUTO_SENSOR), + __stringify(MEDIA_TYPE_AUTO_SENSOR), .def = MEDIA_TYPE_AUTO_SENSOR, .arg = { .r = { .min = MEDIA_TYPE_AUTO_SENSOR, .max = MEDIA_TYPE_10M_HALF} }drivers/net/ethernet/atheros/atlx/atl1.c +2
-1@@ -56,6 +56,7 @@#include <linux/slab.h> #include <linux/spinlock.h> #include <linux/string.h> +#include <linux/stringify.h> #include <linux/tcp.h> #include <linux/timer.h> #include <linux/types.h> @@ -198,7 +199,7 @@ static void atl1_check_options(struct atl1_adapter *adapter) .type = range_option, .name = "Interrupt Moderator Timer", .err ="using default of " - __MODULE_STRING(DEFAULT_INT_MOD_CNT), + __stringify(DEFAULT_INT_MOD_CNT), .def = DEFAULT_INT_MOD_CNT, .arg = {.r = {.min = MIN_INT_MOD_CNT, .max = MAX_INT_MOD_CNT} }drivers/net/ethernet/atheros/atlx/atl2.c +6
-5@@ -29,6 +29,7 @@#include <linux/slab.h> #include <linux/spinlock.h> #include <linux/string.h> +#include <linux/stringify.h> #include <linux/tcp.h> #include <linux/timer.h> #include <linux/types.h> @@ -2921,7 +2922,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)/* Bytes of Transmit Memory */ opt.type = range_option; opt.name ="Bytes of Transmit Memory" ; - opt.err ="using default of " __MODULE_STRING(ATL2_DEFAULT_TX_MEMSIZE ); + opt.err ="using default of " __stringify(ATL2_DEFAULT_TX_MEMSIZE ); opt.def =ATL2_DEFAULT_TX_MEMSIZE ; opt.arg.r.min =ATL2_MIN_TX_MEMSIZE ; opt.arg.r.max =ATL2_MAX_TX_MEMSIZE ;@@ -2939,7 +2940,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)/* Receive Memory Block Count */ opt.type = range_option; opt.name ="Number of receive memory block" ; - opt.err ="using default of " __MODULE_STRING(ATL2_DEFAULT_RXD_COUNT ); + opt.err ="using default of " __stringify(ATL2_DEFAULT_RXD_COUNT ); opt.def =ATL2_DEFAULT_RXD_COUNT ; opt.arg.r.min =ATL2_MIN_RXD_COUNT ; opt.arg.r.max =ATL2_MAX_RXD_COUNT ;@@ -2960,7 +2961,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)/* Interrupt Moderate Timer */ opt.type = range_option; opt.name ="Interrupt Moderate Timer" ; - opt.err ="using default of " __MODULE_STRING(INT_MOD_DEFAULT_CNT ); + opt.err ="using default of " __stringify(INT_MOD_DEFAULT_CNT ); opt.def =INT_MOD_DEFAULT_CNT ; opt.arg.r.min =INT_MOD_MIN_CNT ; opt.arg.r.max =INT_MOD_MAX_CNT ;@@ -2973,7 +2974,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)/* Flash Vendor */ opt.type = range_option; opt.name ="SPI Flash Vendor" ; - opt.err ="using default of " __MODULE_STRING(FLASH_VENDOR_DEFAULT ); + opt.err ="using default of " __stringify(FLASH_VENDOR_DEFAULT ); opt.def =FLASH_VENDOR_DEFAULT ; opt.arg.r.min =FLASH_VENDOR_MIN ; opt.arg.r.max =FLASH_VENDOR_MAX ;@@ -2986,7 +2987,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)/* MediaType */ opt.type = range_option; opt.name ="Speed/Duplex Selection" ; - opt.err ="using default of " __MODULE_STRING(MEDIA_TYPE_AUTO_SENSOR ); + opt.err ="using default of " __stringify(MEDIA_TYPE_AUTO_SENSOR ); opt.def =MEDIA_TYPE_AUTO_SENSOR ; opt.arg.r.min =MEDIA_TYPE_AUTO_SENSOR ; opt.arg.r.max =MEDIA_TYPE_10M_HALF ;drivers/net/ethernet/intel/e1000/e1000_param.c +8
-7@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 1999 - 2006 Intel Corporation. */ +#include <linux/stringify.h> #include "e1000.h" /* This is the only thing that needs to be changed to adjust the @@ -259,7 +260,7 @@ void e1000_check_options(struct e1000_adapter *adapter) .type = range_option, .name = "Transmit Descriptors", .err ="using default of " - __MODULE_STRING(E1000_DEFAULT_TXD), + __stringify(E1000_DEFAULT_TXD), .def = E1000_DEFAULT_TXD, .arg = { .r = { .min = E1000_MIN_TXD,@@ -287,7 +288,7 @@ void e1000_check_options(struct e1000_adapter *adapter) .type = range_option, .name = "Receive Descriptors", .err ="using default of " - __MODULE_STRING(E1000_DEFAULT_RXD), + __stringify(E1000_DEFAULT_RXD), .def = E1000_DEFAULT_RXD, .arg = { .r = { .min = E1000_MIN_RXD,@@ -354,7 +355,7 @@ void e1000_check_options(struct e1000_adapter *adapter) opt = (struct e1000_option ) { .type = range_option, .name ="Transmit Interrupt Delay" , - .err ="using default of " __MODULE_STRING(DEFAULT_TIDV ), + .err ="using default of " __stringify(DEFAULT_TIDV ), .def =DEFAULT_TIDV , .arg = { .r = { .min =MIN_TXDELAY , .max =MAX_TXDELAY }}@@ -372,7 +373,7 @@ void e1000_check_options(struct e1000_adapter *adapter) opt = (struct e1000_option ) { .type = range_option, .name ="Transmit Absolute Interrupt Delay" , - .err ="using default of " __MODULE_STRING(DEFAULT_TADV ), + .err ="using default of " __stringify(DEFAULT_TADV ), .def =DEFAULT_TADV , .arg = { .r = { .min =MIN_TXABSDELAY , .max =MAX_TXABSDELAY }}@@ -390,7 +391,7 @@ void e1000_check_options(struct e1000_adapter *adapter) opt = (struct e1000_option ) { .type = range_option, .name ="Receive Interrupt Delay" , - .err ="using default of " __MODULE_STRING(DEFAULT_RDTR ), + .err ="using default of " __stringify(DEFAULT_RDTR ), .def =DEFAULT_RDTR , .arg = { .r = { .min =MIN_RXDELAY , .max =MAX_RXDELAY }}@@ -408,7 +409,7 @@ void e1000_check_options(struct e1000_adapter *adapter) opt = (struct e1000_option ) { .type = range_option, .name ="Receive Absolute Interrupt Delay" , - .err ="using default of " __MODULE_STRING(DEFAULT_RADV ), + .err ="using default of " __stringify(DEFAULT_RADV ), .def =DEFAULT_RADV , .arg = { .r = { .min =MIN_RXABSDELAY , .max =MAX_RXABSDELAY }}@@ -426,7 +427,7 @@ void e1000_check_options(struct e1000_adapter *adapter) opt = (struct e1000_option ) { .type = range_option, .name ="Interrupt Throttling Rate (ints/sec)" , - .err ="using default of " __MODULE_STRING(DEFAULT_ITR ), + .err ="using default of " __stringify(DEFAULT_ITR ), .def =DEFAULT_ITR , .arg = { .r = { .min =MIN_ITR , .max =MAX_ITR }}drivers/net/ethernet/intel/e1000e/param.c +6
-10@@ -4,6 +4,7 @@#include <linux/netdevice.h> #include <linux/module.h> #include <linux/pci.h> +#include <linux/stringify.h> #include "e1000.h" @@ -238,8 +239,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)static const struct e1000_option opt = { .type = range_option, .name ="Transmit Interrupt Delay" , - .err ="using default of " - __MODULE_STRING(DEFAULT_TIDV ), + .err ="using default of " __stringify(DEFAULT_TIDV ), .def =DEFAULT_TIDV , .arg = { .r = { .min =MIN_TXDELAY , .max =MAX_TXDELAY } }@@ -258,8 +258,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)static const struct e1000_option opt = { .type = range_option, .name ="Transmit Absolute Interrupt Delay" , - .err ="using default of " - __MODULE_STRING(DEFAULT_TADV ), + .err ="using default of " __stringify(DEFAULT_TADV ), .def =DEFAULT_TADV , .arg = { .r = { .min =MIN_TXABSDELAY , .max =MAX_TXABSDELAY } }@@ -278,8 +277,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)static struct e1000_option opt = { .type = range_option, .name ="Receive Interrupt Delay" , - .err ="using default of " - __MODULE_STRING(DEFAULT_RDTR ), + .err ="using default of " __stringify(DEFAULT_RDTR ), .def =DEFAULT_RDTR , .arg = { .r = { .min =MIN_RXDELAY , .max =MAX_RXDELAY } }@@ -301,8 +299,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)static struct e1000_option opt = { .type = range_option, .name ="Receive Absolute Interrupt Delay" , - .err ="using default of " - __MODULE_STRING(DEFAULT_RADV ), + .err ="using default of " __stringify(DEFAULT_RADV ), .def =DEFAULT_RADV , .arg = { .r = { .min =MIN_RXABSDELAY , .max =MAX_RXABSDELAY } }@@ -324,8 +321,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)static const struct e1000_option opt = { .type = range_option, .name ="Interrupt Throttling Rate (ints/sec)" , - .err ="using default of " - __MODULE_STRING(DEFAULT_ITR ), + .err ="using default of " __stringify(DEFAULT_ITR ), .def =DEFAULT_ITR , .arg = { .r = { .min =MIN_ITR , .max =MAX_ITR } }drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c +4
-3@@ -7,7 +7,8 @@*/ #include "pch_gbe.h" -#include <linux/module.h> /* for __MODULE_STRING */ +#include <linux/module.h> +#include <linux/stringify.h> #define OPTION_UNSET -1#define OPTION_DISABLED 0@@ -440,7 +441,7 @@ void pch_gbe_check_options(struct pch_gbe_adapter *adapter) .type = range_option, .name = "Transmit Descriptors", .err ="using default of " - __MODULE_STRING(PCH_GBE_DEFAULT_TXD), + __stringify(PCH_GBE_DEFAULT_TXD), .def = PCH_GBE_DEFAULT_TXD, .arg = { .r = { .min = PCH_GBE_MIN_TXD, .max = PCH_GBE_MAX_TXD } }@@ -456,7 +457,7 @@ void pch_gbe_check_options(struct pch_gbe_adapter *adapter) .type = range_option, .name = "Receive Descriptors", .err ="using default of " - __MODULE_STRING(PCH_GBE_DEFAULT_RXD), + __stringify(PCH_GBE_DEFAULT_RXD), .def = PCH_GBE_DEFAULT_RXD, .arg = { .r = { .min = PCH_GBE_MIN_RXD, .max = PCH_GBE_MAX_RXD } }drivers/platform/cznic/turris-omnia-mcu-watchdog.c +2
-1@@ -9,6 +9,7 @@#include <linux/device.h> #include <linux/i2c.h> #include <linux/moduleparam.h> +#include <linux/stringify.h> #include <linux/types.h> #include <linux/units.h> #include <linux/watchdog.h> @@ -25,7 +26,7 @@ MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" - __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + __stringify(WATCHDOG_NOWAYOUT) ")");static int omnia_wdt_start (struct watchdog_device *wdt) {drivers/rtc/rtc-ds1374.c +2
-1@@ -26,6 +26,7 @@#include <linux/workqueue.h> #include <linux/slab.h> #include <linux/pm.h> +#include <linux/stringify.h> #ifdef CONFIG_RTC_DRV_DS1374_WDT #include <linux/fs.h> #include <linux/ioctl.h> @@ -381,7 +382,7 @@ MODULE_PARM_DESC(wdt_margin, "Watchdog timeout in seconds (default 32s)");static bool nowayout =WATCHDOG_NOWAYOUT ;module_param (nowayout, bool,0 ); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default =" - __MODULE_STRING(WATCHDOG_NOWAYOUT)")"); + __stringify(WATCHDOG_NOWAYOUT)")");static const struct watchdog_info ds1374_wdt_info = { .identity ="DS1374 Watchdog" ,drivers/thunderbolt/tb.c +2
-1@@ -11,6 +11,7 @@#include <linux/delay.h> #include <linux/pm_runtime.h> #include <linux/platform_data/x86/apple.h> +#include <linux/stringify.h> #include "tb.h" #include "tb_regs.h" @@ -47,7 +48,7 @@ static unsigned int asym_threshold = TB_ASYM_THRESHOLD;module_param_named (asym_threshold, asym_threshold, uint,0444 );MODULE_PARM_DESC (asym_threshold, "threshold (Mb/s) when to Gen 4 switch link symmetry. 0 disables. (default: " - __MODULE_STRING(TB_ASYM_THRESHOLD) ")"); + __stringify(TB_ASYM_THRESHOLD) ")");/** * struct tb_cm - Simple Thunderbolt connection manager drivers/thunderbolt/tunnel.c +3
-2@@ -11,6 +11,7 @@#include <linux/list.h> #include <linux/ktime.h> #include <linux/string_helpers.h> +#include <linux/stringify.h> #include "tunnel.h" #include "tb.h" @@ -89,12 +90,12 @@ static int dprx_timeout = TB_DPRX_TIMEOUT;module_param (dprx_timeout, int,0444 );MODULE_PARM_DESC (dprx_timeout, "DPRX capability read timeout in ms, -1 waits forever (default: " - __MODULE_STRING(TB_DPRX_TIMEOUT) ")"); + __stringify(TB_DPRX_TIMEOUT) ")");static unsigned int dma_credits =TB_DMA_CREDITS ;module_param (dma_credits, uint,0444 ); MODULE_PARM_DESC(dma_credits, "specify custom credits for DMA tunnels (default: " - __MODULE_STRING(TB_DMA_CREDITS) ")"); + __stringify(TB_DMA_CREDITS) ")");static bool bw_alloc_mode = true;module_param (bw_alloc_mode, bool,0444 );drivers/tty/serial/8250/8250_platform.c +2
-1@@ -16,6 +16,7 @@#include <linux/moduleparam.h> #include <linux/once.h> #include <linux/platform_device.h> +#include <linux/stringify.h> #include <linux/serial_8250.h> @@ -382,6 +383,6 @@ module_param_hw(share_irqs, bool, other, 0644);MODULE_PARM_DESC (share_irqs,"Share IRQs with other non-8250/16x50 devices (unsafe)" );module_param (nr_uarts, uint,0644 ); -MODULE_PARM_DESC(nr_uarts, "Maximum number of UARTs supported. (1-" __MODULE_STRING(CONFIG_SERIAL_8250_NR_UARTS) ")"); +MODULE_PARM_DESC(nr_uarts, "Maximum number of UARTs supported. (1-" __stringify(CONFIG_SERIAL_8250_NR_UARTS) ")");MODULE_ALIAS_CHARDEV_MAJOR (TTY_MAJOR );drivers/usb/atm/speedtch.c +8
-7@@ -19,6 +19,7 @@#include <linux/moduleparam.h> #include <linux/slab.h> #include <linux/stat.h> +#include <linux/stringify.h> #include <linux/timer.h> #include <linux/types.h> #include <linux/usb/ch9.h> @@ -77,31 +78,31 @@ static unsigned int num_ModemOption;module_param (altsetting, uint,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (altsetting, "Alternative setting for data interface (bulk_default: " - __MODULE_STRING(DEFAULT_BULK_ALTSETTING) "; isoc_default: " - __MODULE_STRING(DEFAULT_ISOC_ALTSETTING) ")"); + __stringify(DEFAULT_BULK_ALTSETTING) "; isoc_default: " + __stringify(DEFAULT_ISOC_ALTSETTING) ")");module_param (dl_512_first, bool,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (dl_512_first, "Read 512 bytes before sending firmware (default: " - __MODULE_STRING(DEFAULT_DL_512_FIRST) ")"); + __stringify(DEFAULT_DL_512_FIRST) ")");module_param (enable_isoc, bool,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (enable_isoc, "Use isochronous transfers if available (default: " - __MODULE_STRING(DEFAULT_ENABLE_ISOC) ")"); + __stringify(DEFAULT_ENABLE_ISOC) ")");module_param (sw_buffering, bool,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (sw_buffering, "Enable software buffering (default: " - __MODULE_STRING(DEFAULT_SW_BUFFERING) ")"); + __stringify(DEFAULT_SW_BUFFERING) ")");module_param (BMaxDSL, uint,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (BMaxDSL, -"default: " __MODULE_STRING(DEFAULT_B_MAX_DSL )); +"default: " __stringify(DEFAULT_B_MAX_DSL ));module_param (ModemMode, byte,S_IRUGO |S_IWUSR );MODULE_PARM_DESC (ModemMode, -"default: " __MODULE_STRING(DEFAULT_MODEM_MODE )); +"default: " __stringify(DEFAULT_MODEM_MODE ));module_param_array (ModemOption, byte, &num_ModemOption,S_IRUGO );MODULE_PARM_DESC (ModemOption,"default: 0x10,0x00,0x00,0x00,0x20" );drivers/usb/atm/usbatm.c +9
-8@@ -64,6 +64,7 @@#include <linux/signal.h> #include <linux/slab.h> #include <linux/stat.h> +#include <linux/stringify.h> #include <linux/timer.h> #include <linux/wait.h> #include <linux/kthread.h> @@ -103,26 +104,26 @@ static unsigned int snd_buf_bytes = UDSL_DEFAULT_SND_BUF_SIZE;module_param (num_rcv_urbs, uint,S_IRUGO );MODULE_PARM_DESC (num_rcv_urbs, "Number of urbs used for reception (range: 0-" - __MODULE_STRING(UDSL_MAX_RCV_URBS) ", default: " - __MODULE_STRING(UDSL_DEFAULT_RCV_URBS) ")"); + __stringify(UDSL_MAX_RCV_URBS) ", default: " + __stringify(UDSL_DEFAULT_RCV_URBS) ")");module_param (num_snd_urbs, uint,S_IRUGO );MODULE_PARM_DESC (num_snd_urbs, "Number of urbs used for transmission (range: 0-" - __MODULE_STRING(UDSL_MAX_SND_URBS) ", default: " - __MODULE_STRING(UDSL_DEFAULT_SND_URBS) ")"); + __stringify(UDSL_MAX_SND_URBS) ", default: " + __stringify(UDSL_DEFAULT_SND_URBS) ")");module_param (rcv_buf_bytes, uint,S_IRUGO );MODULE_PARM_DESC (rcv_buf_bytes, "Size of the buffers used for reception, in bytes (range: 1-" - __MODULE_STRING(UDSL_MAX_BUF_SIZE) ", default: " - __MODULE_STRING(UDSL_DEFAULT_RCV_BUF_SIZE) ")"); + __stringify(UDSL_MAX_BUF_SIZE) ", default: " + __stringify(UDSL_DEFAULT_RCV_BUF_SIZE) ")");module_param (snd_buf_bytes, uint,S_IRUGO );MODULE_PARM_DESC (snd_buf_bytes, "Size of the buffers used for transmission, in bytes (range: 1-" - __MODULE_STRING(UDSL_MAX_BUF_SIZE) ", default: " - __MODULE_STRING(UDSL_DEFAULT_SND_BUF_SIZE) ")"); + __stringify(UDSL_MAX_BUF_SIZE) ", default: " + __stringify(UDSL_DEFAULT_SND_BUF_SIZE) ")");/* receive */ Signature · 2 lines
-- 2.55.0
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com