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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202501172323.oAy8qQdF-lkp@intel.com>
Date: Fri, 17 Jan 2025 23:42:14 +0800
From: kernel test robot <lkp@...el.com>
To: Niklas Schnelle <schnelle@...ux.ibm.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Arnd Bergmann <arnd@...db.de>, Takashi Iwai <tiwai@...e.de>,
	Ville Syrjälä <ville.syrjala@...ux.intel.com>,
	Jarkko Sakkinen <jarkko@...nel.org>
Subject: include/asm-generic/io.h:596:15: error: call to '_outb' declared
 with attribute error: outb() requires CONFIG_HAS_IOPORT

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9bffa1ad25b8b3b95d8f463e5c24dabe3c87d54d
commit: 6f043e75744596968b6547c4bd43e4d30bbb6d6e asm-generic/io.h: Remove I/O port accessors for HAS_IOPORT=n
date:   3 months ago
config: m68k-randconfig-r063-20250117 (https://download.01.org/0day-ci/archive/20250117/202501172323.oAy8qQdF-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250117/202501172323.oAy8qQdF-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501172323.oAy8qQdF-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/net/ethernet/8390/mcf8390.c:59:6: warning: no previous prototype for 'ei_outb' [-Wmissing-prototypes]
      59 | void ei_outb(u32 val, u32 addr)
         |      ^~~~~~~
   drivers/net/ethernet/8390/mcf8390.c:67:17: warning: no previous prototype for 'ei_inb' [-Wmissing-prototypes]
      67 | #define ei_inb  ei_inb
         |                 ^~~~~~
   drivers/net/ethernet/8390/mcf8390.c:68:4: note: in expansion of macro 'ei_inb'
      68 | u8 ei_inb(u32 addr)
         |    ^~~~~~
   drivers/net/ethernet/8390/mcf8390.c:77:6: warning: no previous prototype for 'ei_insb' [-Wmissing-prototypes]
      77 | void ei_insb(u32 addr, void *vbuf, int len)
         |      ^~~~~~~
   drivers/net/ethernet/8390/mcf8390.c:90:6: warning: no previous prototype for 'ei_insw' [-Wmissing-prototypes]
      90 | void ei_insw(u32 addr, void *vbuf, int len)
         |      ^~~~~~~
   drivers/net/ethernet/8390/mcf8390.c:103:6: warning: no previous prototype for 'ei_outsb' [-Wmissing-prototypes]
     103 | void ei_outsb(u32 addr, const void *vbuf, int len)
         |      ^~~~~~~~
   drivers/net/ethernet/8390/mcf8390.c:116:6: warning: no previous prototype for 'ei_outsw' [-Wmissing-prototypes]
     116 | void ei_outsw(u32 addr, const void *vbuf, int len)
         |      ^~~~~~~~
   In file included from arch/m68k/include/asm/io.h:14,
                    from arch/m68k/include/asm/pgtable_no.h:14,
                    from arch/m68k/include/asm/pgtable.h:8,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:30,
                    from arch/m68k/include/asm/cacheflush_no.h:8,
                    from arch/m68k/include/asm/cacheflush.h:3,
                    from include/linux/cacheflush.h:5,
                    from include/linux/highmem.h:8,
                    from include/linux/bvec.h:10,
                    from include/linux/skbuff.h:17,
                    from include/net/net_namespace.h:43,
                    from include/linux/netdevice.h:38,
                    from drivers/net/ethernet/8390/mcf8390.c:15:
   drivers/net/ethernet/8390/mcf8390.c: In function 'mcf8390_get_8390_hdr':
>> include/asm-generic/io.h:596:15: error: call to '_outb' declared with attribute error: outb() requires CONFIG_HAS_IOPORT
     596 | #define _outb _outb
   include/asm-generic/io.h:655:14: note: in expansion of macro '_outb'
     655 | #define outb _outb
         |              ^~~~~
   drivers/net/ethernet/8390/mcf8390.c:211:9: note: in expansion of macro 'outb'
     211 |         outb(ENISR_RDC, addr + NE_EN0_ISR);     /* Ack intr */
         |         ^~~~


vim +/_outb +596 include/asm-generic/io.h

9216efafc52ff99 Thierry Reding  2014-10-01  594  
f009c89df79abea John Garry      2020-03-28  595  #if !defined(outb) && !defined(_outb)
f009c89df79abea John Garry      2020-03-28 @596  #define _outb _outb
6f043e757445969 Niklas Schnelle 2024-10-24  597  #ifdef CONFIG_HAS_IOPORT
f009c89df79abea John Garry      2020-03-28  598  static inline void _outb(u8 value, unsigned long addr)
9216efafc52ff99 Thierry Reding  2014-10-01  599  {
a7851aa54c0cdd2 Sinan Kaya      2018-04-05  600  	__io_pbw();
a7851aa54c0cdd2 Sinan Kaya      2018-04-05  601  	__raw_writeb(value, PCI_IOBASE + addr);
a7851aa54c0cdd2 Sinan Kaya      2018-04-05  602  	__io_paw();
9216efafc52ff99 Thierry Reding  2014-10-01  603  }
6f043e757445969 Niklas Schnelle 2024-10-24  604  #else
6f043e757445969 Niklas Schnelle 2024-10-24  605  void _outb(u8 value, unsigned long addr)
6f043e757445969 Niklas Schnelle 2024-10-24  606  	__compiletime_error("outb() requires CONFIG_HAS_IOPORT");
6f043e757445969 Niklas Schnelle 2024-10-24  607  #endif
9216efafc52ff99 Thierry Reding  2014-10-01  608  #endif
9216efafc52ff99 Thierry Reding  2014-10-01  609  

:::::: The code at line 596 was first introduced by commit
:::::: f009c89df79abea5f5244b8135a205f7d4352f86 io: Provide _inX() and _outX()

:::::: TO: John Garry <john.garry@...wei.com>
:::::: CC: Wei Xu <xuwei5@...ilicon.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ