[jirislaby:devel 7/38] drivers/tty/n_tty.c:2453:5: error: 'struct tty_ldisc_ops' has no member named 'flags'

From: kernel test robot
Date: Fri Aug 06 2021 - 08:59:09 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: h8300-randconfig-r036-20210804 (attached as .config)
compiler: h8300-linux-gcc (GCC) 10.3.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=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=gcc-10.3.0 make.cross O=build_dir ARCH=h8300 SHELL=/bin/bash drivers/

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: In function 'n_tty_inherit_ops':
>> drivers/tty/n_tty.c:2453:5: error: 'struct tty_ldisc_ops' has no member named 'flags'
2453 | ops->flags = 0;
| ^~


vim +2453 drivers/tty/n_tty.c

572b9adbd40b55 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2441
572b9adbd40b55 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2442 /**
572b9adbd40b55 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2443 * n_tty_inherit_ops - inherit N_TTY methods
572b9adbd40b55 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2444 * @ops: struct tty_ldisc_ops where to save N_TTY methods
572b9adbd40b55 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2445 *
27228732aa94f3 drivers/tty/n_tty.c Peter Hurley 2016-01-09 2446 * Enables a 'subclass' line discipline to 'inherit' N_TTY methods.
572b9adbd40b55 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2447 */
572b9adbd40b55 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2448
572b9adbd40b55 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2449 void n_tty_inherit_ops(struct tty_ldisc_ops *ops)
572b9adbd40b55 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2450 {
27228732aa94f3 drivers/tty/n_tty.c Peter Hurley 2016-01-09 2451 *ops = n_tty_ops;
572b9adbd40b55 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2452 ops->owner = NULL;
19475209331168 drivers/tty/n_tty.c Jiri Slaby 2021-05-05 @2453 ops->flags = 0;
572b9adbd40b55 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2454 }
572b9adbd40b55 drivers/char/n_tty.c Rodolfo Giometti 2010-03-10 2455 EXPORT_SYMBOL_GPL(n_tty_inherit_ops);
27228732aa94f3 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