mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Niklas Schnelle <schnelle@linux.ibm.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [niks:has_ioport 37/37] drivers/tty/serial/8250/8250_port.c:398:9: error: implicit declaration of function 'outb'
Date: Wed, 27 Apr 2022 03:26:40 +0800	[thread overview]
Message-ID: <202204270334.n8Pu6AGm-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git has_ioport
head:   497d83d316c82255fcfbbefd3be766eeb46926d7
commit: 497d83d316c82255fcfbbefd3be766eeb46926d7 [37/37] asm-generic/io.h: drop inb() etc for HAS_IOPORT=n
config: m68k-randconfig-r023-20220425 (https://download.01.org/0day-ci/archive/20220427/202204270334.n8Pu6AGm-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.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/niks/linux.git/commit/?id=497d83d316c82255fcfbbefd3be766eeb46926d7
        git remote add niks https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git
        git fetch --no-tags niks has_ioport
        git checkout 497d83d316c82255fcfbbefd3be766eeb46926d7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/tty/serial/8250/ lib/

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 >>):

   drivers/tty/serial/8250/8250_port.c: In function 'hub6_serial_in':
>> drivers/tty/serial/8250/8250_port.c:398:9: error: implicit declaration of function 'outb' [-Werror=implicit-function-declaration]
     398 |         outb(p->hub6 - 1 + offset, p->iobase);
         |         ^~~~
>> drivers/tty/serial/8250/8250_port.c:399:16: error: implicit declaration of function 'inb' [-Werror=implicit-function-declaration]
     399 |         return inb(p->iobase + 1);
         |                ^~~
   drivers/tty/serial/8250/8250_port.c: In function 'autoconfig_irq':
>> drivers/tty/serial/8250/8250_port.c:1395:28: error: implicit declaration of function 'inb_p'; did you mean 'int_pow'? [-Werror=implicit-function-declaration]
    1395 |                 save_ICP = inb_p(ICP);
         |                            ^~~~~
         |                            int_pow
>> drivers/tty/serial/8250/8250_port.c:1396:17: error: implicit declaration of function 'outb_p' [-Werror=implicit-function-declaration]
    1396 |                 outb_p(0x80, ICP);
         |                 ^~~~~~
   cc1: some warnings being treated as errors
--
   lib/iomap.c: In function 'ioread8':
>> lib/iomap.c:75:30: error: implicit declaration of function 'inb' [-Werror=implicit-function-declaration]
      75 |         IO_COND(addr, return inb(port), return readb(addr));
         |                              ^~~
   lib/iomap.c:57:17: note: in definition of macro 'IO_COND'
      57 |                 is_pio;                                         \
         |                 ^~~~~~
   lib/iomap.c: In function 'ioread16':
>> lib/iomap.c:80:30: error: implicit declaration of function 'inw' [-Werror=implicit-function-declaration]
      80 |         IO_COND(addr, return inw(port), return readw(addr));
         |                              ^~~
   lib/iomap.c:57:17: note: in definition of macro 'IO_COND'
      57 |                 is_pio;                                         \
         |                 ^~~~~~
   lib/iomap.c: In function 'ioread32':
>> lib/iomap.c:90:30: error: implicit declaration of function 'inl' [-Werror=implicit-function-declaration]
      90 |         IO_COND(addr, return inl(port), return readl(addr));
         |                              ^~~
   lib/iomap.c:57:17: note: in definition of macro 'IO_COND'
      57 |                 is_pio;                                         \
         |                 ^~~~~~
   lib/iomap.c: In function 'iowrite8':
>> lib/iomap.c:191:23: error: implicit declaration of function 'outb' [-Werror=implicit-function-declaration]
     191 |         IO_COND(addr, outb(val,port), writeb(val, addr));
         |                       ^~~~
   lib/iomap.c:57:17: note: in definition of macro 'IO_COND'
      57 |                 is_pio;                                         \
         |                 ^~~~~~
   lib/iomap.c: In function 'iowrite16':
>> lib/iomap.c:195:23: error: implicit declaration of function 'outw' [-Werror=implicit-function-declaration]
     195 |         IO_COND(addr, outw(val,port), writew(val, addr));
         |                       ^~~~
   lib/iomap.c:57:17: note: in definition of macro 'IO_COND'
      57 |                 is_pio;                                         \
         |                 ^~~~~~
   lib/iomap.c: In function 'iowrite32':
>> lib/iomap.c:203:23: error: implicit declaration of function 'outl' [-Werror=implicit-function-declaration]
     203 |         IO_COND(addr, outl(val,port), writel(val, addr));
         |                       ^~~~
   lib/iomap.c:57:17: note: in definition of macro 'IO_COND'
      57 |                 is_pio;                                         \
         |                 ^~~~~~
   lib/iomap.c: In function 'ioread8_rep':
>> lib/iomap.c:330:23: error: implicit declaration of function 'insb' [-Werror=implicit-function-declaration]
     330 |         IO_COND(addr, insb(port,dst,count), mmio_insb(addr, dst, count));
         |                       ^~~~
   lib/iomap.c:57:17: note: in definition of macro 'IO_COND'
      57 |                 is_pio;                                         \
         |                 ^~~~~~
   lib/iomap.c: In function 'ioread16_rep':
>> lib/iomap.c:334:23: error: implicit declaration of function 'insw' [-Werror=implicit-function-declaration]
     334 |         IO_COND(addr, insw(port,dst,count), mmio_insw(addr, dst, count));
         |                       ^~~~
   lib/iomap.c:57:17: note: in definition of macro 'IO_COND'
      57 |                 is_pio;                                         \
         |                 ^~~~~~
   lib/iomap.c: In function 'ioread32_rep':
>> lib/iomap.c:338:23: error: implicit declaration of function 'insl' [-Werror=implicit-function-declaration]
     338 |         IO_COND(addr, insl(port,dst,count), mmio_insl(addr, dst, count));
         |                       ^~~~
   lib/iomap.c:57:17: note: in definition of macro 'IO_COND'
      57 |                 is_pio;                                         \
         |                 ^~~~~~
   lib/iomap.c: In function 'iowrite8_rep':
>> lib/iomap.c:346:23: error: implicit declaration of function 'outsb' [-Werror=implicit-function-declaration]
     346 |         IO_COND(addr, outsb(port, src, count), mmio_outsb(addr, src, count));
         |                       ^~~~~
   lib/iomap.c:57:17: note: in definition of macro 'IO_COND'
      57 |                 is_pio;                                         \
         |                 ^~~~~~
   lib/iomap.c: In function 'iowrite16_rep':
>> lib/iomap.c:350:23: error: implicit declaration of function 'outsw' [-Werror=implicit-function-declaration]
     350 |         IO_COND(addr, outsw(port, src, count), mmio_outsw(addr, src, count));
         |                       ^~~~~
   lib/iomap.c:57:17: note: in definition of macro 'IO_COND'
      57 |                 is_pio;                                         \
         |                 ^~~~~~
   lib/iomap.c: In function 'iowrite32_rep':
>> lib/iomap.c:354:23: error: implicit declaration of function 'outsl' [-Werror=implicit-function-declaration]
     354 |         IO_COND(addr, outsl(port, src,count), mmio_outsl(addr, src, count));
         |                       ^~~~~
   lib/iomap.c:57:17: note: in definition of macro 'IO_COND'
      57 |                 is_pio;                                         \
         |                 ^~~~~~
   cc1: some warnings being treated as errors


vim +/outb +398 drivers/tty/serial/8250/8250_port.c

b6830f6df8914fa Peter Hurley 2015-06-27  394  
b6830f6df8914fa Peter Hurley 2015-06-27  395  static unsigned int hub6_serial_in(struct uart_port *p, int offset)
b6830f6df8914fa Peter Hurley 2015-06-27  396  {
b6830f6df8914fa Peter Hurley 2015-06-27  397  	offset = offset << p->regshift;
b6830f6df8914fa Peter Hurley 2015-06-27 @398  	outb(p->hub6 - 1 + offset, p->iobase);
b6830f6df8914fa Peter Hurley 2015-06-27 @399  	return inb(p->iobase + 1);
b6830f6df8914fa Peter Hurley 2015-06-27  400  }
b6830f6df8914fa Peter Hurley 2015-06-27  401  

:::::: The code at line 398 was first introduced by commit
:::::: b6830f6df8914faae9561bb245860c21af9b9e9b serial: 8250: Split base port operations from universal driver

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

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-04-26 19:27 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=202204270334.n8Pu6AGm-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=schnelle@linux.ibm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®