[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 Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
:::::: CC: Wolfram Sang <w.sang@xxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]