[jirislaby:devel 47/69] drivers/tty/synclink_gt.c:576:54: error: unknown type name 'XX'

From: kernel test robot
Date: Wed Sep 15 2021 - 00:46:44 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: d1598a736155d728b8093eea08478b4c42ffbe72
commit: d6b07e2c4ef107c86c64d2a7d228a41c70fb9361 [47/69] synclink_gt: crap
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git/commit/?id=d6b07e2c4ef107c86c64d2a7d228a41c70fb9361
git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
git fetch --no-tags jirislaby devel
git checkout d6b07e2c4ef107c86c64d2a7d228a41c70fb9361
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/tty/synclink_gt.c:576:54: error: unknown type name 'XX'
576 | static void ldisc_receive_buf(struct tty_struct *tty,XX
| ^~
drivers/tty/synclink_gt.c: In function 'rx_get_frame':
>> drivers/tty/synclink_gt.c:4663:33: error: implicit declaration of function 'ldisc_receive_buf'; did you mean 'tty_ldisc_receive_buf'? [-Werror=implicit-function-declaration]
4663 | ldisc_receive_buf(tty, info->tmp_rbuf, info->flag_buf, framesize);
| ^~~~~~~~~~~~~~~~~
| tty_ldisc_receive_buf
cc1: all warnings being treated as errors


vim +/XX +576 drivers/tty/synclink_gt.c

567
568 /*
569 * line discipline callback wrappers
570 *
571 * The wrappers maintain line discipline references
572 * while calling into the line discipline.
573 *
574 * ldisc_receive_buf - pass receive data to line discipline
575 */
> 576 static void ldisc_receive_buf(struct tty_struct *tty,XX
577 const __u8 *data, char *flags, int count)
578 {
579 struct tty_ldisc *ld;
580 if (!tty)
581 return;
582 ld = tty_ldisc_ref(tty);
583 if (ld) {
584 if (ld->ops->receive_buf)
585 ld->ops->receive_buf(tty, data, flags, count);
586 tty_ldisc_deref(ld);
587 }
588 }
589

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip