diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2016-12-25 09:00:24 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2017-02-24 23:00:23 +0100 |
commit | cb5f9d406d50fc01c6564956ed9317614e665208 (patch) | |
tree | d11aec91001aa2fa5a0a43befe5fe6d4599fb7ca /drivers/watchdog/pika_wdt.c | |
parent | watchdog: booke_wdt: add __ro_after_init to booke_wdt_info (diff) | |
download | linux-cb5f9d406d50fc01c6564956ed9317614e665208.tar.xz linux-cb5f9d406d50fc01c6564956ed9317614e665208.zip |
watchdog: pika_wdt: add __ro_after_init to ident
The object ident of type watchdog_info structure is not
modified after getting initialized by pikawdt_init. Apart from getting
referenced in init it is also passed as an argument to the function
copy_to_user but this argument is of type const void *. Therefore add
__ro_after_init to its declaration.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/watchdog/pika_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/pika_wdt.c b/drivers/watchdog/pika_wdt.c index 0cdfee266690..e35cf5e87907 100644 --- a/drivers/watchdog/pika_wdt.c +++ b/drivers/watchdog/pika_wdt.c @@ -54,7 +54,7 @@ static struct { struct timer_list timer; /* The timer that pings the watchdog */ } pikawdt_private; -static struct watchdog_info ident = { +static struct watchdog_info ident __ro_after_init = { .identity = DRV_NAME, .options = WDIOF_CARDRESET | WDIOF_SETTIMEOUT | |