All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [jirislaby:devel 22/61] include/linux/tty_flip.h:27:49: error: 'TTY_NORMAL' undeclared; did you mean 'TTYB_NORMAL'?
Date: Sat, 26 Jun 2021 00:32:23 +0800	[thread overview]
Message-ID: <202106260042.VgRVLglY-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-06-25 16:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202106260042.VgRVLglY-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.