From: Alexander Shiyan <shc_work@mail.ru>
To: barebox@lists.infradead.org
Subject: [PATCH 7/8] drivers/i2c/i2c.c: Fix sparse warnings
Date: Sun, 16 Feb 2014 11:24:36 +0400 [thread overview]
Message-ID: <1392535477-21275-7-git-send-email-shc_work@mail.ru> (raw)
In-Reply-To: <1392535477-21275-1-git-send-email-shc_work@mail.ru>
drivers/i2c/i2c.c:246:19: warning: symbol 'i2c_new_device' was not declared. Should it be static?
drivers/i2c/i2c.c:274:6: warning: symbol 'of_i2c_register_devices' was not declared. Should it be static?
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
drivers/i2c/i2c.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/i2c/i2c.c b/drivers/i2c/i2c.c
index 3b9f601..f8785cb 100644
--- a/drivers/i2c/i2c.c
+++ b/drivers/i2c/i2c.c
@@ -243,8 +243,8 @@ EXPORT_SYMBOL(i2c_write_reg);
*
* Returns the new device, or NULL.
*/
-struct i2c_client *i2c_new_device(struct i2c_adapter *adapter,
- struct i2c_board_info *chip)
+static struct i2c_client *i2c_new_device(struct i2c_adapter *adapter,
+ struct i2c_board_info *chip)
{
struct i2c_client *client;
int status;
@@ -269,9 +269,8 @@ struct i2c_client *i2c_new_device(struct i2c_adapter *adapter,
return client;
}
-EXPORT_SYMBOL(i2c_new_device);
-void of_i2c_register_devices(struct i2c_adapter *adap)
+static void of_i2c_register_devices(struct i2c_adapter *adap)
{
struct device_node *n;
--
1.8.3.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2014-02-16 7:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-16 7:24 [PATCH 1/8] common/kallsyms.c: Fix sparse warning Alexander Shiyan
2014-02-16 7:24 ` [PATCH 2/8] drivers/clk/clk-fixed.c: " Alexander Shiyan
2014-02-16 7:24 ` [PATCH 3/8] drivers/clk/clk-fixed-factor.c: " Alexander Shiyan
2014-02-16 7:24 ` [PATCH 4/8] drivers/clk/clk-mux.c: " Alexander Shiyan
2014-02-16 7:24 ` [PATCH 5/8] drivers/clk/clk-gate.c: " Alexander Shiyan
2014-02-16 7:24 ` [PATCH 6/8] drivers/clk/clk-divider-table.c: " Alexander Shiyan
2014-02-16 7:24 ` Alexander Shiyan [this message]
2014-02-16 7:24 ` [PATCH 8/8] drivers/of/base.c: Fix sparse warnings Alexander Shiyan
2014-02-17 7:25 ` [PATCH 1/8] common/kallsyms.c: Fix sparse warning Sascha Hauer
2014-02-17 7:30 ` Alexander Shiyan
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=1392535477-21275-7-git-send-email-shc_work@mail.ru \
--to=shc_work@mail.ru \
--cc=barebox@lists.infradead.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: 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