From: Colin King <colin.king@canonical.com> To: Chen-Yu Tsai <wens@csie.org>, Hans de Goede <hdegoede@redhat.com>, Quentin Schulz <quentin.schulz@free-electrons.com>, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel-janitors@vger.kernel.org Subject: [PATCH][next] input: axp20x-pek: make dev_attr_startup and dev_attr_shutdown static Date: Thu, 17 Aug 2017 10:17:10 +0100 [thread overview] Message-ID: <20170817091710.15095-1-colin.king@canonical.com> (raw) From: Colin Ian King <colin.king@canonical.com> The functions dev_attr_startup and dev_attr_shutdown are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'dev_attr_startup' was not declared. Should it be static? symbol 'dev_attr_shutdown' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> --- drivers/input/misc/axp20x-pek.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c index 4f7d208071d4..1fa8cd1b2dbf 100644 --- a/drivers/input/misc/axp20x-pek.c +++ b/drivers/input/misc/axp20x-pek.c @@ -191,9 +191,10 @@ static ssize_t axp20x_store_attr_shutdown(struct device *dev, axp20x_pek->info->shutdown_mask, buf, count); } -DEVICE_ATTR(startup, 0644, axp20x_show_attr_startup, axp20x_store_attr_startup); -DEVICE_ATTR(shutdown, 0644, axp20x_show_attr_shutdown, - axp20x_store_attr_shutdown); +static DEVICE_ATTR(startup, 0644, axp20x_show_attr_startup, + axp20x_store_attr_startup); +static DEVICE_ATTR(shutdown, 0644, axp20x_show_attr_shutdown, + axp20x_store_attr_shutdown); static struct attribute *axp20x_attributes[] = { &dev_attr_startup.attr, -- 2.11.0
WARNING: multiple messages have this Message-ID (diff)
From: Colin King <colin.king@canonical.com> To: Chen-Yu Tsai <wens@csie.org>, Hans de Goede <hdegoede@redhat.com>, Quentin Schulz <quentin.schulz@free-electrons.com>, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel-janitors@vger.kernel.org Subject: [PATCH][next] input: axp20x-pek: make dev_attr_startup and dev_attr_shutdown static Date: Thu, 17 Aug 2017 09:17:10 +0000 [thread overview] Message-ID: <20170817091710.15095-1-colin.king@canonical.com> (raw) From: Colin Ian King <colin.king@canonical.com> The functions dev_attr_startup and dev_attr_shutdown are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'dev_attr_startup' was not declared. Should it be static? symbol 'dev_attr_shutdown' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> --- drivers/input/misc/axp20x-pek.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c index 4f7d208071d4..1fa8cd1b2dbf 100644 --- a/drivers/input/misc/axp20x-pek.c +++ b/drivers/input/misc/axp20x-pek.c @@ -191,9 +191,10 @@ static ssize_t axp20x_store_attr_shutdown(struct device *dev, axp20x_pek->info->shutdown_mask, buf, count); } -DEVICE_ATTR(startup, 0644, axp20x_show_attr_startup, axp20x_store_attr_startup); -DEVICE_ATTR(shutdown, 0644, axp20x_show_attr_shutdown, - axp20x_store_attr_shutdown); +static DEVICE_ATTR(startup, 0644, axp20x_show_attr_startup, + axp20x_store_attr_startup); +static DEVICE_ATTR(shutdown, 0644, axp20x_show_attr_shutdown, + axp20x_store_attr_shutdown); static struct attribute *axp20x_attributes[] = { &dev_attr_startup.attr, -- 2.11.0
next reply other threads:[~2017-08-17 9:17 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-08-17 9:17 Colin King [this message] 2017-08-17 9:17 ` [PATCH][next] input: axp20x-pek: make dev_attr_startup and dev_attr_shutdown static Colin King
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=20170817091710.15095-1-colin.king@canonical.com \ --to=colin.king@canonical.com \ --cc=hdegoede@redhat.com \ --cc=kernel-janitors@vger.kernel.org \ --cc=linux-input@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=quentin.schulz@free-electrons.com \ --cc=wens@csie.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.