ident is not modified and can be made const to allow the compiler to put it in read-only memory.
Before: text data bss dec hex filename 14067 3188 64 17319 43a7 drivers/char/ipmi/ipmi_watchdog.o After: text data bss dec hex filename 14115 3148 64 17327 43af drivers/char/ipmi/ipmi_watchdog.o Signed-off-by: Rikard Falkeborn <rikard.falkeb...@gmail.com> --- drivers/char/ipmi/ipmi_watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/ipmi/ipmi_watchdog.c b/drivers/char/ipmi/ipmi_watchdog.c index 55986e10a124..3df13c3da5f9 100644 --- a/drivers/char/ipmi/ipmi_watchdog.c +++ b/drivers/char/ipmi/ipmi_watchdog.c @@ -654,7 +654,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" -- 2.27.0