Re: [PATCH 7/7] mfd: intel_vuport: Add Intel virtual USB port MFD Driver

From: kbuild test robot
Date: Thu Mar 03 2016 - 06:37:08 EST


Hi Lu,

[auto build test WARNING on usb/usb-testing]
[also build test WARNING on v4.5-rc6 next-20160303]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Lu-Baolu/usb-add-support-for-Intel-dual-role-port-mux/20160303-144241
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: openrisc-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=openrisc

All warnings (new ones prefixed by >>):

drivers/mfd/intel-vuport.c: In function 'vuport_probe':
>> drivers/mfd/intel-vuport.c:39:17: warning: unused variable 'dev'
drivers/mfd/intel-vuport.c: At top level:
drivers/mfd/intel-vuport.c:59:30: warning: 'vuport_acpi_match' defined but not used

vim +/dev +39 drivers/mfd/intel-vuport.c

23 { "vbus_en-gpios", &vbus_gpio, 1 },
24 { "usb_mux-gpios", &mux_gpio, 1 },
25 { },
26 };
27
28 static const struct mfd_cell intel_vuport_mfd_cells[] = {
29 {
30 .name = "extcon-usb-gpio",
31 },
32 {
33 .name = "intel-mux-gpio",
34 },
35 };
36
37 static int vuport_probe(struct platform_device *pdev)
38 {
> 39 struct device *dev = &pdev->dev;
40 int ret;
41
42 ret = acpi_dev_add_driver_gpios(ACPI_COMPANION(dev), acpi_usb_gpios);
43 if (ret)
44 return ret;
45
46 return mfd_add_devices(&pdev->dev, 0, intel_vuport_mfd_cells,
47 ARRAY_SIZE(intel_vuport_mfd_cells), NULL, 0,

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

Attachment: .config.gz
Description: Binary data