[jirislaby:devel 7/38] drivers/tty/n_tty.c:2453:7: error: no member named 'flags' in 'struct tty_ldisc_ops'
From: kernel test robot
Date: Fri Aug 06 2021 - 14:24:39 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: f7af18a9564a3d79c7ac5291734ef0b68c1f765d
commit: 687327cbe4f6d79410362559187453249016694c [7/38] tty: remove flags from struct tty_ldisc_ops
config: s390-buildonly-randconfig-r005-20210805 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 42b9c2a17a0b63cccf3ac197a82f91b28e53e643)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git/commit/?id=687327cbe4f6d79410362559187453249016694c
git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
git fetch --no-tags jirislaby devel
git checkout 687327cbe4f6d79410362559187453249016694c
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=s390 SHELL=/bin/bash drivers/tty/
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/n_tty.c:2453:7: error: no member named 'flags' in 'struct tty_ldisc_ops'
ops->flags = 0;
~~~ ^
1 error generated.
vim +2453 drivers/tty/n_tty.c
572b9adbd40b556 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2441
572b9adbd40b556 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2442 /**
572b9adbd40b556 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2443 * n_tty_inherit_ops - inherit N_TTY methods
572b9adbd40b556 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2444 * @ops: struct tty_ldisc_ops where to save N_TTY methods
572b9adbd40b556 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2445 *
27228732aa94f38 drivers/tty/n_tty.c Peter Hurley 2016-01-09 2446 * Enables a 'subclass' line discipline to 'inherit' N_TTY methods.
572b9adbd40b556 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2447 */
572b9adbd40b556 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2448
572b9adbd40b556 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2449 void n_tty_inherit_ops(struct tty_ldisc_ops *ops)
572b9adbd40b556 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2450 {
27228732aa94f38 drivers/tty/n_tty.c Peter Hurley 2016-01-09 2451 *ops = n_tty_ops;
572b9adbd40b556 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2452 ops->owner = NULL;
19475209331168c drivers/tty/n_tty.c Jiri Slaby 2021-05-05 @2453 ops->flags = 0;
572b9adbd40b556 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2454 }
572b9adbd40b556 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2455 EXPORT_SYMBOL_GPL(n_tty_inherit_ops);
27228732aa94f38 drivers/tty/n_tty.c Peter Hurley 2016-01-09 2456
:::::: The code at line 2453 was first introduced by commit
:::::: 19475209331168cdb8070a011650535f1c54a730 tty: drop tty_ldisc_ops::refcount
:::::: TO: Jiri Slaby <jslaby@xxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip