tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: ccf63100a2114b19c81d53db1e7cc76de85d9839
commit: 8ee1d6933417ddd5cbd186b9186406a155d1b209 [77/101] make use of uart_get_byte_size
config: powerpc-randconfig-r036-20210219 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
c9439ca36342fb6013187d0a69aef92736951476)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git/commi...
git remote add jirislaby
https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
git fetch --no-tags jirislaby devel
git checkout 8ee1d6933417ddd5cbd186b9186406a155d1b209
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/usb/class/cdc-acm.c:1056:22: error: implicit declaration
of function 'uart_get_byte_size' [-Werror,-Wimplicit-function-declaration]
newline.bDataBits = uart_get_byte_size(termios->c_cflag, false, false,
^
> drivers/usb/class/cdc-acm.c:1057:10: error: expected ';'
after expression
false)
^
;
2 errors generated.
--
> drivers/usb/serial/belkin_sa.c:359:35: error: implicit
declaration of function 'uart_get_byte_size'
[-Werror,-Wimplicit-function-declaration]
urb_value =
BELKIN_SA_DATA_BITS(uart_get_byte_size(cflag,
^
1 error generated.
--
> drivers/usb/serial/cypress_m8.c:890:14: error: implicit
declaration of function 'uart_get_byte_size'
[-Werror,-Wimplicit-function-declaration]
data_bits =
uart_get_byte_size(cflag, false, false, false) - 5;
^
1 error generated.
--
> drivers/usb/serial/pl2303.c:682:11: error: implicit declaration
of function 'uart_get_byte_size' [-Werror,-Wimplicit-function-declaration]
buf[6] = uart_get_byte_size(C_CSIZE(tty), false, false, false);
^
1 error generated.
--
> drivers/usb/serial/whiteheat.c:641:23: error: implicit
declaration of function 'uart_get_byte_size'
[-Werror,-Wimplicit-function-declaration]
port_settings.bits =
uart_get_byte_size(cflag, false, false, false);
^
1 error generated.
vim +/uart_get_byte_size +1056 drivers/usb/class/cdc-acm.c
1042
1043 static void acm_tty_set_termios(struct tty_struct *tty,
1044 struct ktermios *termios_old)
1045 {
1046 struct acm *acm = tty->driver_data;
1047 struct ktermios *termios = &tty->termios;
1048 struct usb_cdc_line_coding newline;
1049 int newctrl = acm->ctrlout;
1050
1051 newline.dwDTERate = cpu_to_le32(tty_get_baud_rate(tty));
1052 newline.bCharFormat = termios->c_cflag & CSTOPB ? 2 : 0;
1053 newline.bParityType = termios->c_cflag & PARENB ?
1054 (termios->c_cflag & PARODD ? 1 : 2) +
1055 (termios->c_cflag & CMSPAR ? 2 : 0) : 0;
1056 newline.bDataBits = uart_get_byte_size(termios->c_cflag,
false, false,
1057 false)
1058
1059 /* FIXME: Needs to clear unsupported bits in the termios */
1060 acm->clocal = ((termios->c_cflag & CLOCAL) != 0);
1061
1062 if (C_BAUD(tty) == B0) {
1063 newline.dwDTERate = acm->line.dwDTERate;
1064 newctrl &= ~ACM_CTRL_DTR;
1065 } else if (termios_old && (termios_old->c_cflag & CBAUD) == B0) {
1066 newctrl |= ACM_CTRL_DTR;
1067 }
1068
1069 if (newctrl != acm->ctrlout)
1070 acm_set_control(acm, acm->ctrlout = newctrl);
1071
1072 if (memcmp(&acm->line, &newline, sizeof newline)) {
1073 memcpy(&acm->line, &newline, sizeof newline);
1074 dev_dbg(&acm->control->dev, "%s - set line: %d %d %d %d\n",
1075 __func__,
1076 le32_to_cpu(newline.dwDTERate),
1077 newline.bCharFormat, newline.bParityType,
1078 newline.bDataBits);
1079 acm_set_line(acm, &acm->line);
1080 }
1081 }
1082
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org