From: Wei Yongjun <weiyongjun1@huawei.com> To: Marek Vasut <marek.vasut+renesas@gmail.com>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Geert Uytterhoeven <geert+renesas@glider.be> Cc: Wei Yongjun <weiyongjun1@huawei.com>, <linux-kernel@vger.kernel.org>, <linux-renesas-soc@vger.kernel.org>, <kernel-janitors@vger.kernel.org> Subject: [PATCH -next] regulator: bd9571mwv: Make symbol 'dev_attr_backup_mode' static Date: Tue, 24 Jul 2018 06:32:59 +0000 [thread overview] Message-ID: <1532413979-187684-1-git-send-email-weiyongjun1@huawei.com> (raw) Fixes the following sparse warning: drivers/regulator/bd9571mwv-regulator.c:220:1: warning: symbol 'dev_attr_backup_mode' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> --- drivers/regulator/bd9571mwv-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/bd9571mwv-regulator.c b/drivers/regulator/bd9571mwv-regulator.c index c44613b..274c5ed 100644 --- a/drivers/regulator/bd9571mwv-regulator.c +++ b/drivers/regulator/bd9571mwv-regulator.c @@ -217,7 +217,7 @@ static ssize_t backup_mode_store(struct device *dev, return count; } -DEVICE_ATTR_RW(backup_mode); +static DEVICE_ATTR_RW(backup_mode); static int bd9571mwv_suspend(struct device *dev) {
WARNING: multiple messages have this Message-ID (diff)
From: Wei Yongjun <weiyongjun1@huawei.com> To: Marek Vasut <marek.vasut+renesas@gmail.com>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Geert Uytterhoeven <geert+renesas@glider.be> Cc: Wei Yongjun <weiyongjun1@huawei.com>, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH -next] regulator: bd9571mwv: Make symbol 'dev_attr_backup_mode' static Date: Tue, 24 Jul 2018 06:32:59 +0000 [thread overview] Message-ID: <1532413979-187684-1-git-send-email-weiyongjun1@huawei.com> (raw) Fixes the following sparse warning: drivers/regulator/bd9571mwv-regulator.c:220:1: warning: symbol 'dev_attr_backup_mode' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> --- drivers/regulator/bd9571mwv-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/bd9571mwv-regulator.c b/drivers/regulator/bd9571mwv-regulator.c index c44613b..274c5ed 100644 --- a/drivers/regulator/bd9571mwv-regulator.c +++ b/drivers/regulator/bd9571mwv-regulator.c @@ -217,7 +217,7 @@ static ssize_t backup_mode_store(struct device *dev, return count; } -DEVICE_ATTR_RW(backup_mode); +static DEVICE_ATTR_RW(backup_mode); static int bd9571mwv_suspend(struct device *dev) {
next reply other threads:[~2018-07-24 6:24 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-07-24 6:32 Wei Yongjun [this message] 2018-07-24 6:32 ` [PATCH -next] regulator: bd9571mwv: Make symbol 'dev_attr_backup_mode' static Wei Yongjun 2018-07-24 6:42 ` Geert Uytterhoeven 2018-07-24 6:42 ` Geert Uytterhoeven
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=1532413979-187684-1-git-send-email-weiyongjun1@huawei.com \ --to=weiyongjun1@huawei.com \ --cc=broonie@kernel.org \ --cc=geert+renesas@glider.be \ --cc=kernel-janitors@vger.kernel.org \ --cc=lgirdwood@gmail.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-renesas-soc@vger.kernel.org \ --cc=marek.vasut+renesas@gmail.com \ /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.