From: kbuild test robot <lkp@intel.com>
To: Rishi Gupta <gupt21@gmail.com>
Cc: kbuild-all@lists.01.org, gregkh@linuxfoundation.org,
robh+dt@kernel.org, jslaby@suse.com,
linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
Rishi Gupta <gupt21@gmail.com>
Subject: Re: [PATCH v1 2/3] tty/serial: ttvys: add null modem driver emulating serial port
Date: Tue, 7 Jan 2020 05:20:24 +0800 [thread overview]
Message-ID: <202001070523.lfpip38e%lkp@intel.com> (raw)
In-Reply-To: <9fcb02fafd5fc9b31f3fe358b8e62b8a40ae132a.1578235515.git.gupt21@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3025 bytes --]
Hi Rishi,
I love your patch! Yet something to improve:
[auto build test ERROR on tty/tty-testing]
[also build test ERROR on robh/for-next usb/usb-testing linus/master v5.5-rc5 next-20200106]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Rishi-Gupta/Add-virtual-serial-null-modem-emulation-driver/20200106-155424
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers//tty/ttyvs.c: In function 'vs_get_serinfo':
>> drivers//tty/ttyvs.c:1012:8: error: implicit declaration of function 'copy_to_user'; did you mean 'cpu_to_mem'? [-Werror=implicit-function-declaration]
ret = copy_to_user((void __user *)arg, &info,
^~~~~~~~~~~~
cpu_to_mem
drivers//tty/ttyvs.c: In function 'vs_card_write':
>> drivers//tty/ttyvs.c:1996:7: error: implicit declaration of function 'copy_from_user'; did you mean 'copy_creds'? [-Werror=implicit-function-declaration]
if (copy_from_user(data, buf, length) != 0)
^~~~~~~~~~~~~~
copy_creds
cc1: some warnings being treated as errors
vim +1012 drivers//tty/ttyvs.c
985
986 /* Provides information as a repsonse to TIOCGSERIAL IOCTL */
987 static int vs_get_serinfo(struct tty_struct *tty, unsigned long arg)
988 {
989 int ret;
990 struct serial_struct info;
991 struct vs_dev *local_vsdev = db[tty->index].vsdev;
992 struct serial_struct serial = local_vsdev->serial;
993
994 if (!arg)
995 return -EFAULT;
996
997 memset(&info, 0, sizeof(info));
998
999 info.type = PORT_UNKNOWN;
1000 info.line = serial.line;
1001 info.port = tty->index;
1002 info.irq = 0;
1003 info.flags = tty->port->flags;
1004 info.xmit_fifo_size = 0;
1005 info.baud_base = 0;
1006 info.close_delay = tty->port->close_delay;
1007 info.closing_wait = tty->port->closing_wait;
1008 info.custom_divisor = 0;
1009 info.hub6 = 0;
1010 info.io_type = SERIAL_IO_MEM;
1011
> 1012 ret = copy_to_user((void __user *)arg, &info,
1013 sizeof(struct serial_struct));
1014
1015 return ret ? -EFAULT : 0;
1016 }
1017
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 55745 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v1 2/3] tty/serial: ttvys: add null modem driver emulating serial port
Date: Tue, 07 Jan 2020 05:20:24 +0800 [thread overview]
Message-ID: <202001070523.lfpip38e%lkp@intel.com> (raw)
In-Reply-To: <9fcb02fafd5fc9b31f3fe358b8e62b8a40ae132a.1578235515.git.gupt21@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3103 bytes --]
Hi Rishi,
I love your patch! Yet something to improve:
[auto build test ERROR on tty/tty-testing]
[also build test ERROR on robh/for-next usb/usb-testing linus/master v5.5-rc5 next-20200106]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Rishi-Gupta/Add-virtual-serial-null-modem-emulation-driver/20200106-155424
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers//tty/ttyvs.c: In function 'vs_get_serinfo':
>> drivers//tty/ttyvs.c:1012:8: error: implicit declaration of function 'copy_to_user'; did you mean 'cpu_to_mem'? [-Werror=implicit-function-declaration]
ret = copy_to_user((void __user *)arg, &info,
^~~~~~~~~~~~
cpu_to_mem
drivers//tty/ttyvs.c: In function 'vs_card_write':
>> drivers//tty/ttyvs.c:1996:7: error: implicit declaration of function 'copy_from_user'; did you mean 'copy_creds'? [-Werror=implicit-function-declaration]
if (copy_from_user(data, buf, length) != 0)
^~~~~~~~~~~~~~
copy_creds
cc1: some warnings being treated as errors
vim +1012 drivers//tty/ttyvs.c
985
986 /* Provides information as a repsonse to TIOCGSERIAL IOCTL */
987 static int vs_get_serinfo(struct tty_struct *tty, unsigned long arg)
988 {
989 int ret;
990 struct serial_struct info;
991 struct vs_dev *local_vsdev = db[tty->index].vsdev;
992 struct serial_struct serial = local_vsdev->serial;
993
994 if (!arg)
995 return -EFAULT;
996
997 memset(&info, 0, sizeof(info));
998
999 info.type = PORT_UNKNOWN;
1000 info.line = serial.line;
1001 info.port = tty->index;
1002 info.irq = 0;
1003 info.flags = tty->port->flags;
1004 info.xmit_fifo_size = 0;
1005 info.baud_base = 0;
1006 info.close_delay = tty->port->close_delay;
1007 info.closing_wait = tty->port->closing_wait;
1008 info.custom_divisor = 0;
1009 info.hub6 = 0;
1010 info.io_type = SERIAL_IO_MEM;
1011
> 1012 ret = copy_to_user((void __user *)arg, &info,
1013 sizeof(struct serial_struct));
1014
1015 return ret ? -EFAULT : 0;
1016 }
1017
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 55745 bytes --]
next prev parent reply other threads:[~2020-01-06 21:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-06 7:21 [PATCH v1 0/3] Add virtual serial null modem emulation driver Rishi Gupta
2020-01-06 7:21 ` [PATCH v1 1/3] dt-bindings: ttyvs: document serial null modem driver dt bindings Rishi Gupta
2020-01-06 7:21 ` [PATCH v1 2/3] tty/serial: ttvys: add null modem driver emulating serial port Rishi Gupta
2020-01-06 19:35 ` Greg KH
2020-01-09 9:29 ` rishi gupta
2020-01-10 7:20 ` Greg KH
2020-01-10 7:38 ` rishi gupta
2020-01-10 7:42 ` Greg KH
2020-02-10 15:14 ` rishi gupta
2020-02-12 20:02 ` Greg KH
2020-01-06 21:20 ` kbuild test robot [this message]
2020-01-06 21:20 ` kbuild test robot
2020-01-06 7:21 ` [PATCH v1 3/3] tty: documentation: abi: add ttyvs null modem driver sysfs nodes Rishi Gupta
2020-01-06 19:29 ` Greg KH
2020-01-09 9:22 ` rishi gupta
2020-01-06 19:28 ` [PATCH v1 0/3] Add virtual serial null modem emulation driver Greg KH
2020-01-09 9:22 ` rishi gupta
2020-01-06 20:23 ` H. Peter Anvin
2020-01-06 22:06 ` Grant Edwards
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=202001070523.lfpip38e%lkp@intel.com \
--to=lkp@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=gupt21@gmail.com \
--cc=jslaby@suse.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=robh+dt@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.