From: kbuild test robot <fengguang.wu@intel.com>
Cc: kbuild-all@01.org, "Willy Tarreau" <w@1wt.eu>,
"Joe Perches" <joe@perches.com>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Linux Memory Management List" <linux-mm@kvack.org>,
"Philip Müller" <philm@manjaro.org>
Subject: [linux-stable-rc:linux-3.10.y 4/144] drivers/i2c/busses/i2c-cbus-gpio.c:278:34: warning: 'i2c_cbus_dt_ids' defined but not used
Date: Mon, 20 Jun 2016 19:10:17 +0800 [thread overview]
Message-ID: <201606201915.elsV86Rn%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4424 bytes --]
Hi,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-3.10.y
head: ca1199fccf14540e86f6da955333e31d6fec5f3e
commit: a4a4f1cd733fe5b345db4e8cc19bb8868d562a8a [4/144] compiler-gcc: integrate the various compiler-gcc[345].h files
config: i386-randconfig-s1-201625 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
git checkout a4a4f1cd733fe5b345db4e8cc19bb8868d562a8a
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
>> drivers/i2c/busses/i2c-cbus-gpio.c:278:34: warning: 'i2c_cbus_dt_ids' defined but not used [-Wunused-const-variable=]
static const struct of_device_id i2c_cbus_dt_ids[] = {
^~~~~~~~~~~~~~~
--
drivers/mfd/twl-core.c: In function 'add_children':
>> drivers/mfd/twl-core.c:753:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else
^~~~
drivers/mfd/twl-core.c:757:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
if (IS_ERR(child))
^~
--
>> net/core/rtnetlink.c:1140:32: warning: 'ifla_vf_policy' defined but not used [-Wunused-const-variable=]
static const struct nla_policy ifla_vf_policy[IFLA_VF_MAX+1] = {
^~~~~~~~~~~~~~
>> net/core/rtnetlink.c:1136:32: warning: 'ifla_vfinfo_policy' defined but not used [-Wunused-const-variable=]
static const struct nla_policy ifla_vfinfo_policy[IFLA_VF_INFO_MAX+1] = {
^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/key.h:19:0,
from include/linux/cred.h:17,
from net/vmw_vsock/af_vsock.c:80:
net/vmw_vsock/af_vsock.c: In function 'vsock_for_each_connected_socket':
include/linux/list.h:446:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (pos = list_entry((head)->next, typeof(*pos), member); \
^
>> net/vmw_vsock/af_vsock.c:337:3: note: in expansion of macro 'list_for_each_entry'
list_for_each_entry(vsk, &vsock_connected_table[i],
^~~~~~~~~~~~~~~~~~~
net/vmw_vsock/af_vsock.c:339:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
fn(sk_vsock(vsk));
^~
vim +/i2c_cbus_dt_ids +278 drivers/i2c/busses/i2c-cbus-gpio.c
0857ba3c Aaro Koskinen 2012-11-18 262 "CBUS data");
0857ba3c Aaro Koskinen 2012-11-18 263 if (ret)
0857ba3c Aaro Koskinen 2012-11-18 264 return ret;
0857ba3c Aaro Koskinen 2012-11-18 265
0857ba3c Aaro Koskinen 2012-11-18 266 ret = devm_gpio_request_one(&pdev->dev, chost->sel_gpio,
0857ba3c Aaro Koskinen 2012-11-18 267 GPIOF_OUT_INIT_HIGH, "CBUS sel");
0857ba3c Aaro Koskinen 2012-11-18 268 if (ret)
0857ba3c Aaro Koskinen 2012-11-18 269 return ret;
0857ba3c Aaro Koskinen 2012-11-18 270
0857ba3c Aaro Koskinen 2012-11-18 271 i2c_set_adapdata(adapter, chost);
0857ba3c Aaro Koskinen 2012-11-18 272 platform_set_drvdata(pdev, adapter);
0857ba3c Aaro Koskinen 2012-11-18 273
0857ba3c Aaro Koskinen 2012-11-18 274 return i2c_add_numbered_adapter(adapter);
0857ba3c Aaro Koskinen 2012-11-18 275 }
0857ba3c Aaro Koskinen 2012-11-18 276
0857ba3c Aaro Koskinen 2012-11-18 277 #if defined(CONFIG_OF)
0857ba3c Aaro Koskinen 2012-11-18 @278 static const struct of_device_id i2c_cbus_dt_ids[] = {
0857ba3c Aaro Koskinen 2012-11-18 279 { .compatible = "i2c-cbus-gpio", },
0857ba3c Aaro Koskinen 2012-11-18 280 { }
0857ba3c Aaro Koskinen 2012-11-18 281 };
0857ba3c Aaro Koskinen 2012-11-18 282 MODULE_DEVICE_TABLE(of, i2c_cbus_dt_ids);
0857ba3c Aaro Koskinen 2012-11-18 283 #endif
0857ba3c Aaro Koskinen 2012-11-18 284
0857ba3c Aaro Koskinen 2012-11-18 285 static struct platform_driver cbus_i2c_driver = {
0857ba3c Aaro Koskinen 2012-11-18 286 .probe = cbus_i2c_probe,
:::::: The code at line 278 was first introduced by commit
:::::: 0857ba3c24c308f42a242fe8a1894772750230ce i2c: i2c-cbus-gpio: introduce driver
:::::: TO: Aaro Koskinen <aaro.koskinen@iki.fi>
:::::: CC: Wolfram Sang <w.sang@pengutronix.de>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 22123 bytes --]
reply other threads:[~2016-06-20 11:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201606201915.elsV86Rn%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=joe@perches.com \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=philm@manjaro.org \
--cc=w@1wt.eu \
/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