lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204270334.n8Pu6AGm-lkp@intel.com>
Date:   Wed, 27 Apr 2022 03:26:40 +0800
From:   kernel test robot <lkp@...el.com>
To:     Niklas Schnelle <schnelle@...ux.ibm.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [niks:has_ioport 37/37] drivers/tty/serial/8250/8250_port.c:398:9:
 error: implicit declaration of function 'outb'

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@...el.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@...leysoftware.com>
:::::: CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ