From: Guenter Roeck <linux@roeck-us.net>
To: Bhumika Goyal <bhumirks@gmail.com>,
julia.lawall@lip6.fr, wim@iguana.be,
linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: keescook@chromium.org
Subject: Re: [PATCH] drivers: watchdog: pika_wdt: add __ro_after_init to ident
Date: Mon, 26 Dec 2016 02:39:35 -0800 [thread overview]
Message-ID: <182d4c22-53d1-5b93-5eb5-2763005a94be@roeck-us.net> (raw)
In-Reply-To: <1482652824-8648-1-git-send-email-bhumirks@gmail.com>
On 12/25/2016 12:00 AM, Bhumika Goyal wrote:
> 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>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
> drivers/watchdog/pika_wdt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/watchdog/pika_wdt.c b/drivers/watchdog/pika_wdt.c
> index 0cdfee2..e35cf5e 100644
> --- a/drivers/watchdog/pika_wdt.c
> +++ b/drivers/watchdog/pika_wdt.c
> @@ -54,7 +54,7 @@
> 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 |
>
prev parent reply other threads:[~2016-12-26 10:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-25 8:00 Bhumika Goyal
2016-12-26 10:39 ` Guenter Roeck [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=182d4c22-53d1-5b93-5eb5-2763005a94be@roeck-us.net \
--to=linux@roeck-us.net \
--cc=bhumirks@gmail.com \
--cc=julia.lawall@lip6.fr \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=wim@iguana.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®