All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [jirislaby:devel 22/61] include/linux/tty_flip.h:27:49: error: 'TTY_NORMAL' undeclared; did you mean 'TTYB_NORMAL'?
@ 2021-06-25 16:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-25 16:32 UTC (permalink / raw
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4068 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head:   8b1a24d559723d075922fe4817a035e160fe636d
commit: 74ac4aaf009393167bafc2412350038dd32f71b7 [22/61] tty: tty_flip.h needs only tty_buffer and tty_port
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.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=74ac4aaf009393167bafc2412350038dd32f71b7
        git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
        git fetch --no-tags jirislaby devel
        git checkout 74ac4aaf009393167bafc2412350038dd32f71b7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

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

All errors (new ones prefixed by >>):

   In file included from drivers/tty/amiserial.c:59:
   include/linux/tty_flip.h: In function 'tty_insert_flip_char':
>> include/linux/tty_flip.h:27:49: error: 'TTY_NORMAL' undeclared (first use in this function); did you mean 'TTYB_NORMAL'?
      27 |  change = (tb->flags & TTYB_NORMAL) && (flag != TTY_NORMAL);
         |                                                 ^~~~~~~~~~
         |                                                 TTYB_NORMAL
   include/linux/tty_flip.h:27:49: note: each undeclared identifier is reported only once for each function it appears in
   include/linux/tty_flip.h: In function 'tty_insert_flip_string':
   include/linux/tty_flip.h:40:56: error: 'TTY_NORMAL' undeclared (first use in this function); did you mean 'TTYB_NORMAL'?
      40 |  return tty_insert_flip_string_fixed_flag(port, chars, TTY_NORMAL, size);
         |                                                        ^~~~~~~~~~
         |                                                        TTYB_NORMAL
   drivers/tty/amiserial.c: In function 'shutdown':
   drivers/tty/amiserial.c:520:23: warning: variable 'state' set but not used [-Wunused-but-set-variable]
     520 |  struct serial_state *state;
         |                       ^~~~~


vim +27 include/linux/tty_flip.h

33f0f88f1c51ae Alan Cox       2006-01-09  20  
92a19f9cec9a80 Jiri Slaby     2013-01-03  21  static inline int tty_insert_flip_char(struct tty_port *port,
^1da177e4c3f41 Linus Torvalds 2005-04-16  22  					unsigned char ch, char flag)
^1da177e4c3f41 Linus Torvalds 2005-04-16  23  {
92a19f9cec9a80 Jiri Slaby     2013-01-03  24  	struct tty_buffer *tb = port->buf.tail;
acc0f67f307f52 Peter Hurley   2013-12-09  25  	int change;
acc0f67f307f52 Peter Hurley   2013-12-09  26  
acc0f67f307f52 Peter Hurley   2013-12-09 @27  	change = (tb->flags & TTYB_NORMAL) && (flag != TTY_NORMAL);
acc0f67f307f52 Peter Hurley   2013-12-09  28  	if (!change && tb->used < tb->size) {
acc0f67f307f52 Peter Hurley   2013-12-09  29  		if (~tb->flags & TTYB_NORMAL)
1fc359fc3ea723 Peter Hurley   2013-06-15  30  			*flag_buf_ptr(tb, tb->used) = flag;
1fc359fc3ea723 Peter Hurley   2013-06-15  31  		*char_buf_ptr(tb, tb->used++) = ch;
33f0f88f1c51ae Alan Cox       2006-01-09  32  		return 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16  33  	}
979990c6284814 Arnd Bergmann  2017-06-20  34  	return __tty_insert_flip_char(port, ch, flag);
^1da177e4c3f41 Linus Torvalds 2005-04-16  35  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  36  

:::::: The code at line 27 was first introduced by commit
:::::: acc0f67f307f52f7aec1cffdc40a786c15dd21d9 tty: Halve flip buffer GFP_ATOMIC memory consumption

:::::: TO: Peter Hurley <peter@hurleysoftware.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 60818 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-25 16:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-25 16:32 [jirislaby:devel 22/61] include/linux/tty_flip.h:27:49: error: 'TTY_NORMAL' undeclared; did you mean 'TTYB_NORMAL'? kernel test robot

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.