From: kbuild test robot <lkp@intel.com>
To: Arvind Yadav <arvind.yadav.cs@gmail.com>
Cc: kbuild-all@01.org, malattia@linux.it, dvhart@infradead.org,
andy@infradead.org, platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sony-laptop: constify sony_laptop_input_* and spic_attribute_group
Date: Sat, 24 Jun 2017 22:57:16 +0800 [thread overview]
Message-ID: <201706242248.kIYTHHba%fengguang.wu@intel.com> (raw)
In-Reply-To: <9c35451ff9a31757b76d708733bbe5736c0d2dc6.1498208007.git.arvind.yadav.cs@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4264 bytes --]
Hi Arvind,
[auto build test WARNING on platform-drivers-x86/for-next]
[also build test WARNING on v4.12-rc6 next-20170623]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Arvind-Yadav/sony-laptop-constify-sony_laptop_input_-and-spic_attribute_group/20170624-221228
base: git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git for-next
config: x86_64-randconfig-x007-201725 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers/platform/x86/sony-laptop.c: In function 'sony_laptop_setup_input':
>> drivers/platform/x86/sony-laptop.c:494:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
key_dev->keycode = &sony_laptop_input_keycode_map;
^
vim +/const +494 drivers/platform/x86/sony-laptop.c
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 478 if (!key_dev) {
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 479 error = -ENOMEM;
9593bd07 drivers/platform/x86/sony-laptop.c Dmitry Torokhov 2009-12-24 480 goto err_free_kfifo;
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 481 }
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 482
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 483 key_dev->name = "Sony Vaio Keys";
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 484 key_dev->id.bustype = BUS_ISA;
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 485 key_dev->id.vendor = PCI_VENDOR_ID_SONY;
2e4d242c drivers/misc/sony-laptop.c Dmitry Torokhov 2007-11-21 486 key_dev->dev.parent = &acpi_device->dev;
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 487
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 488 /* Initialize the Input Drivers: special keys */
c45bc9d6 drivers/platform/x86/sony-laptop.c Dmitry Torokhov 2009-12-24 489 input_set_capability(key_dev, EV_MSC, MSC_SCAN);
c45bc9d6 drivers/platform/x86/sony-laptop.c Dmitry Torokhov 2009-12-24 490
c45bc9d6 drivers/platform/x86/sony-laptop.c Dmitry Torokhov 2009-12-24 491 __set_bit(EV_KEY, key_dev->evbit);
bc57f865 drivers/misc/sony-laptop.c Mattia Dongili 2007-07-20 492 key_dev->keycodesize = sizeof(sony_laptop_input_keycode_map[0]);
bc57f865 drivers/misc/sony-laptop.c Mattia Dongili 2007-07-20 493 key_dev->keycodemax = ARRAY_SIZE(sony_laptop_input_keycode_map);
bc57f865 drivers/misc/sony-laptop.c Mattia Dongili 2007-07-20 @494 key_dev->keycode = &sony_laptop_input_keycode_map;
c45bc9d6 drivers/platform/x86/sony-laptop.c Dmitry Torokhov 2009-12-24 495 for (i = 0; i < ARRAY_SIZE(sony_laptop_input_keycode_map); i++)
c45bc9d6 drivers/platform/x86/sony-laptop.c Dmitry Torokhov 2009-12-24 496 __set_bit(sony_laptop_input_keycode_map[i], key_dev->keybit);
c45bc9d6 drivers/platform/x86/sony-laptop.c Dmitry Torokhov 2009-12-24 497 __clear_bit(KEY_RESERVED, key_dev->keybit);
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 498
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 499 error = input_register_device(key_dev);
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 500 if (error)
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 501 goto err_free_keydev;
1549ee6f drivers/misc/sony-laptop.c malattia@linux.it 2007-04-09 502
:::::: The code at line 494 was first introduced by commit
:::::: bc57f865fa2282ad2b7efe02da0a752e602e982e sony-laptop: Make the driver use MSC_SCAN and a setkeycode and getkeycode key table.
:::::: TO: Mattia Dongili <malattia@linux.it>
:::::: 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/gzip, Size: 29885 bytes --]
prev parent reply other threads:[~2017-06-24 14:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-23 8:56 Arvind Yadav
2017-06-24 14:57 ` kbuild test robot [this message]
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=201706242248.kIYTHHba%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=andy@infradead.org \
--cc=arvind.yadav.cs@gmail.com \
--cc=dvhart@infradead.org \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=malattia@linux.it \
--cc=platform-driver-x86@vger.kernel.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
all inboxes | Powered by JetHome®