Re: [PATCH v6] Input: psxpad-spi - Add PlayStation 1/2 joypads via SPI interface Driver

From: kbuild test robot
Date: Sun Apr 30 2017 - 00:23:24 EST


Hi Tomohiro,

[auto build test ERROR on input/next]
[also build test ERROR on v4.11-rc8 next-20170428]
[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/Tomohiro-Yoshidomi/Input-psxpad-spi-Add-PlayStation-1-2-joypads-via-SPI-interface-Driver/20170430-114033
base: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
config: blackfin-allmodconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=blackfin

All error/warnings (new ones prefixed by >>):

In file included from include/linux/device.h:25:0,
from drivers/input/joystick/psxpad-spi.c:23:
>> drivers/input/joystick/psxpad-spi.c:412:61: error: 'psxpad_spi_resume' undeclared here (not in a function)
static SIMPLE_DEV_PM_OPS(psxpad_spi_pm, psxpad_spi_suspend, psxpad_spi_resume);
^
include/linux/pm.h:319:12: note: in definition of macro 'SET_SYSTEM_SLEEP_PM_OPS'
.resume = resume_fn, \
^~~~~~~~~
>> drivers/input/joystick/psxpad-spi.c:412:8: note: in expansion of macro 'SIMPLE_DEV_PM_OPS'
static SIMPLE_DEV_PM_OPS(psxpad_spi_pm, psxpad_spi_suspend, psxpad_spi_resume);
^~~~~~~~~~~~~~~~~

vim +/psxpad_spi_resume +412 drivers/input/joystick/psxpad-spi.c

406
407 psxpad_set_motor_level(pad, 0, 0);
408
409 return 0;
410 }
411
> 412 static SIMPLE_DEV_PM_OPS(psxpad_spi_pm, psxpad_spi_suspend, psxpad_spi_resume);
413
414 static const struct spi_device_id psxpad_spi_id[] = {
415 { "psxpad-spi", 0 },

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

Attachment: .config.gz
Description: application/gzip