From: kbuild test robot <fengguang.wu@intel.com>
Cc: kbuild-all@01.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Joe Perches <joe@perches.com>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>,
Sasha Levin <sasha.levin@oracle.com>
Subject: [linux-stable-rc:linux-3.14.y 4656/4754] drivers/acpi/dock.c:54:36: warning: 'dock_device_ids' defined but not used
Date: Mon, 20 Jun 2016 19:02:39 +0800 [thread overview]
Message-ID: <201606201934.8GLWfDIe%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3661 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.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@suse.de>
:::::: CC: Len Brown <len.brown@intel.com>
---
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: 21893 bytes --]
reply other threads:[~2016-06-20 11:03 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=201606201934.8GLWfDIe%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=gregkh@linuxfoundation.org \
--cc=joe@perches.com \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=sasha.levin@oracle.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: 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;
as well as URLs for NNTP newsgroup(s).