Re: [PATCH V8 1/1] usb:serial: Add Fintek F81532/534 driver

From: kbuild test robot
Date: Thu Jan 28 2016 - 05:19:00 EST


Hi Peter,

[auto build test ERROR on usb/usb-testing]
[also build test ERROR on v4.5-rc1 next-20160128]
[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/Peter-Hung/usb-serial-Add-Fintek-F81532-534-driver/20160128-153805
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: parisc-allmodconfig (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=parisc

All errors (new ones prefixed by >>):

drivers/usb/serial/f81534.c: In function 'f81534_get_serial_info':
>> drivers/usb/serial/f81534.c:1559:2: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration]
if (copy_to_user(retinfo, &tmp, sizeof(*retinfo)))
^
cc1: some warnings being treated as errors

vim +/copy_to_user +1559 drivers/usb/serial/f81534.c

1553
1554 tmp.type = PORT_16550A;
1555 tmp.port = port->port_number;
1556 tmp.line = port->minor;
1557 tmp.baud_base = port_priv->current_baud_base;
1558
> 1559 if (copy_to_user(retinfo, &tmp, sizeof(*retinfo)))
1560 return -EFAULT;
1561
1562 return 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