[linux-stable-rc:linux-3.14.y 4656/4754] drivers/acpi/dock.c:54:36: warning: 'dock_device_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.14.y
head:   96f343e0621a0d5afa9c2a34e2aee69f33b6eb5c
commit: 3711edaf01a01818f2aed9f21efe29b9818134b9 [4656/4754] compiler-gcc: integrate the various compiler-gcc[345].h files
config: i386-defconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 3711edaf01a01818f2aed9f21efe29b9818134b9
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

>> drivers/acpi/dock.c:54:36: warning: 'dock_device_ids' defined but not used [-Wunused-const-variable=]
    static const struct acpi_device_id dock_device_ids[] = {
                                       ^~~~~~~~~~~~~~~
--
>> net/ipv4/arp.c:152:31: warning: 'arp_broken_ops' defined but not used [-Wunused-const-variable=]
    static const struct neigh_ops arp_broken_ops = {
                                  ^~~~~~~~~~~~~~
--
   net/netfilter/nfnetlink.c: In function 'nfnetlink_rcv':
>> net/netfilter/nfnetlink.c:364:14: warning: unused variable 'net' [-Wunused-variable]
     struct net *net = sock_net(skb->sk);
                 ^~~

vim +/dock_device_ids +54 drivers/acpi/dock.c

a192a958 Len Brown               2009-07-28  38  #define PREFIX "ACPI: "
a192a958 Len Brown               2009-07-28  39  
7cda93e0 Len Brown               2007-02-12  40  #define ACPI_DOCK_DRIVER_DESCRIPTION "ACPI Dock Station Driver"
c8f7a62c Len Brown               2006-07-09  41  
f52fd66d Len Brown               2007-02-12  42  ACPI_MODULE_NAME("dock");
c8f7a62c Len Brown               2006-07-09  43  MODULE_AUTHOR("Kristen Carlson Accardi");
7cda93e0 Len Brown               2007-02-12  44  MODULE_DESCRIPTION(ACPI_DOCK_DRIVER_DESCRIPTION);
c8f7a62c Len Brown               2006-07-09  45  MODULE_LICENSE("GPL");
c8f7a62c Len Brown               2006-07-09  46  
90ab5ee9 Rusty Russell           2012-01-13  47  static bool immediate_undock = 1;
a0cd35fd Kristen Carlson Accardi 2007-05-09  48  module_param(immediate_undock, bool, 0644);
a0cd35fd Kristen Carlson Accardi 2007-05-09  49  MODULE_PARM_DESC(immediate_undock, "1 (default) will cause the driver to "
a0cd35fd Kristen Carlson Accardi 2007-05-09  50  	"undock immediately when the undock button is pressed, 0 will cause"
a0cd35fd Kristen Carlson Accardi 2007-05-09  51  	" the driver to wait for userspace to write the undock sysfs file "
a0cd35fd Kristen Carlson Accardi 2007-05-09  52  	" before undocking");
a0cd35fd Kristen Carlson Accardi 2007-05-09  53  
a340af14 Frank Seidel            2007-12-07 @54  static const struct acpi_device_id dock_device_ids[] = {
a340af14 Frank Seidel            2007-12-07  55  	{"LNXDOCK", 0},
a340af14 Frank Seidel            2007-12-07  56  	{"", 0},
a340af14 Frank Seidel            2007-12-07  57  };
a340af14 Frank Seidel            2007-12-07  58  MODULE_DEVICE_TABLE(acpi, dock_device_ids);
a340af14 Frank Seidel            2007-12-07  59  
c8f7a62c Len Brown               2006-07-09  60  struct dock_station {
c8f7a62c Len Brown               2006-07-09  61  	acpi_handle handle;
c8f7a62c Len Brown               2006-07-09  62  	unsigned long last_dock_time;

:::::: The code at line 54 was first introduced by commit
:::::: a340af14b4c08a53c5f7d821d8bd910e17403384 ACPI: Add autoload info to dock driver

:::::: TO: Frank Seidel <fseidel@xxxxxxx>
:::::: CC: Len Brown <len.brown@xxxxxxxxx>

---
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]