[arnd-asm-generic:master 6/12] include/asm-generic/io.h:596:15: error: call to '_outb' declared with attribute error: outb() requires CONFIG_HAS_IOPORT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master
head:   a6653736cdcedcb7c2c22ee0af0288a326a0e036
commit: afa7c814bff3a9aae82ebd8316d421eb9653e375 [6/12] asm-generic/io.h: Remove I/O port accessors for HAS_IOPORT=n
config: um-randconfig-r123-20241027 (https://download.01.org/0day-ci/archive/20241027/202410271353.43UzOIXC-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241027/202410271353.43UzOIXC-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410271353.43UzOIXC-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from arch/um/include/asm/io.h:24,
                    from include/linux/io.h:14,
                    from drivers/watchdog/sbc8360.c:49:
   In function 'sbc8360_stop',
       inlined from 'sbc8360_notify_sys' at drivers/watchdog/sbc8360.c:293:3:
>> 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/watchdog/sbc8360.c:233:9: note: in expansion of macro 'outb'
     233 |         outb(0, SBC8360_ENABLE);
         |         ^~~~
   In function 'sbc8360_stop',
       inlined from 'sbc8360_close' at drivers/watchdog/sbc8360.c:276:3:
>> 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/watchdog/sbc8360.c:233:9: note: in expansion of macro 'outb'
     233 |         outb(0, SBC8360_ENABLE);
         |         ^~~~
   In function 'sbc8360_ping',
       inlined from 'sbc8360_write' at drivers/watchdog/sbc8360.c:255:3:
>> 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/watchdog/sbc8360.c:226:9: note: in expansion of macro 'outb'
     226 |         outb(wd_margin, SBC8360_BASETIME);
         |         ^~~~
   In function 'sbc8360_activate',
       inlined from 'sbc8360_open' at drivers/watchdog/sbc8360.c:268:2:
>> 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/watchdog/sbc8360.c:212:9: note: in expansion of macro 'outb'
     212 |         outb(0x0A, SBC8360_ENABLE);
         |         ^~~~
>> 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/watchdog/sbc8360.c:214:9: note: in expansion of macro 'outb'
     214 |         outb(0x0B, SBC8360_ENABLE);
         |         ^~~~
>> 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/watchdog/sbc8360.c:217:9: note: in expansion of macro 'outb'
     217 |         outb(wd_multiplier, SBC8360_ENABLE);
         |         ^~~~
   In function 'sbc8360_ping',
       inlined from 'sbc8360_open' at drivers/watchdog/sbc8360.c:269:2:
>> 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/watchdog/sbc8360.c:226:9: note: in expansion of macro 'outb'
     226 |         outb(wd_margin, SBC8360_BASETIME);
         |         ^~~~


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

9216efafc52ff9 Thierry Reding  2014-10-01  594  
f009c89df79abe John Garry      2020-03-28  595  #if !defined(outb) && !defined(_outb)
f009c89df79abe John Garry      2020-03-28 @596  #define _outb _outb
afa7c814bff3a9 Niklas Schnelle 2024-10-24  597  #ifdef CONFIG_HAS_IOPORT
f009c89df79abe John Garry      2020-03-28  598  static inline void _outb(u8 value, unsigned long addr)
9216efafc52ff9 Thierry Reding  2014-10-01  599  {
a7851aa54c0cdd Sinan Kaya      2018-04-05  600  	__io_pbw();
a7851aa54c0cdd Sinan Kaya      2018-04-05  601  	__raw_writeb(value, PCI_IOBASE + addr);
a7851aa54c0cdd Sinan Kaya      2018-04-05  602  	__io_paw();
9216efafc52ff9 Thierry Reding  2014-10-01  603  }
afa7c814bff3a9 Niklas Schnelle 2024-10-24  604  #else
afa7c814bff3a9 Niklas Schnelle 2024-10-24  605  void _outb(u8 value, unsigned long addr)
afa7c814bff3a9 Niklas Schnelle 2024-10-24  606  	__compiletime_error("outb() requires CONFIG_HAS_IOPORT");
afa7c814bff3a9 Niklas Schnelle 2024-10-24  607  #endif
9216efafc52ff9 Thierry Reding  2014-10-01  608  #endif
9216efafc52ff9 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@xxxxxxxxxx>
:::::: CC: Wei Xu <xuwei5@xxxxxxxxxxxxx>

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




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux