ipmi/watchdog: Constify ident
PATCH 1/1 ipmi/watchdog: Constify ident
ident is not modified and can be made const to allow the compiler to put it in read-only memory.
Signed-off-by Rikard Falkeborn <[email protected]>
--- drivers/char/ipmi/ipmi_watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/ipmi/ipmi_watchdog.c +1 -1
@@ -668,7 +668,7 @@ static int ipmi_heartbeat(void)return rv; } -static struct watchdog_info ident = { +static const struct watchdog_info ident = { .options =0 ,/* WDIOF_SETTIMEOUT, */ .firmware_version =1 , .identity ="IPMI"
Signature · 1 line
2.34.1
Quoted 2 lines · Rikard Falkeborn
ident is not modified and can be made const to allow the compiler to put it in read-only memory.
In my queue for next release. Thanks.
-corey
Quoted 22 lines
Signed-off-by Rikard Falkeborn <[email protected]>--- drivers/char/ipmi/ipmi_watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/char/ipmi/ipmi_watchdog.c +1
-1@@ -668,7 +668,7 @@ static int ipmi_heartbeat(void)return rv; } -static struct watchdog_info ident = { +static const struct watchdog_info ident = { .options =0 ,/* WDIOF_SETTIMEOUT, */ .firmware_version =1 , .identity ="IPMI" Signature · 1 line
2.34.1