booke_wdt: Fix build (unconstify watchdog_info)
PATCH 1/1 booke_wdt: Fix build (unconstify watchdog_info)
commit 42747d712de56cf2087b702d2ad90af114c53138 ("[WATCHDOG] watchdog_info constify") introduced the following build failure:
CC booke_wdt.o
booke_wdt.c: In function 'booke_wdt_init':
booke_wdt.c:220: error: assignment of read-only variable 'ident'
Fix this by removing 'const' qualifier from watchdog_info struct.
--- drivers/watchdog/booke_wdt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/watchdog/booke_wdt.c +1 -1
@@ -121,7 +121,7 @@ static ssize_t booke_wdt_write(struct file *file, const char __user *buf,return count; } -static const struct watchdog_info ident = { +static struct watchdog_info ident = { .options =WDIOF_SETTIMEOUT |WDIOF_KEEPALIVEPING , .identity ="PowerPC Book-E Watchdog" , };
Signature · 1 line
1.7.0.5
Quoted 8 lines · Anton Vorontsov
commit
42747d712de56cf2087b702d2ad90af114c53138("[WATCHDOG]watchdog_infoconstify") introduced the following build failure:CC booke_wdt.o
booke_wdt.c: In function 'booke_wdt_init':
booke_wdt.c:220: error: assignment of read-only variable 'ident'Fix this by removing 'const' qualifier from
watchdog_infostruct.
Should this go via powerpc.git ? If yes, I'll send to Linus asap.
Cheers,
Ben.
Quoted 18 lines
Signed-off-by Anton Vorontsov <[email protected]>--- drivers/watchdog/booke_wdt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-drivers/watchdog/booke_wdt.c +1
-1@@ -121,7 +121,7 @@ static ssize_t booke_wdt_write(struct file *file, const char __user *buf,return count; } -static const struct watchdog_info ident = { +static struct watchdog_info ident = { .options =WDIOF_SETTIMEOUT |WDIOF_KEEPALIVEPING , .identity ="PowerPC Book-E Watchdog" , };
Hi Ben,
Quoted 10 lines
Quoted 8 lines
commit
42747d712de56cf2087b702d2ad90af114c53138("[WATCHDOG]watchdog_infoconstify") introduced the following build failure:CC booke_wdt.o
booke_wdt.c: In function 'booke_wdt_init':
booke_wdt.c:220: error: assignment of read-only variable 'ident'Fix this by removing 'const' qualifier from
watchdog_infostruct.Should this go via powerpc.git ? If yes, I'll send to Linus asap.
I'm sending watchdog related patches to Linus today. This one will be included.
Kind regards,
Wim.
Quoted 9 lines · Wim Van Sebroeck
Hi Ben,
Quoted 7 lines
Quoted 7 lines
commit
42747d712de56cf2087b702d2ad90af114c53138("[WATCHDOG]watchdog_infoconstify") introduced the following build failure:CC booke_wdt.o
booke_wdt.c: In function 'booke_wdt_init':
booke_wdt.c:220: error: assignment of read-only variable 'ident'
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Fix this by removing 'const' qualifier from
watchdog_infostruct.Should this go via powerpc.git ? If yes, I'll send to Linus asap.
I'm sending watchdog related patches to Linus today. This one will be included.
Thanks !
Cheers,
Ben.