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: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	"Arnd Bergmann" <arnd@arndb.de>, "Takashi Iwai" <tiwai@suse.de>,
	"Ville Syrjälä" <ville.syrjala@linux.intel.com>,
	"Jarkko Sakkinen" <jarkko@kernel.org>
Subject: include/asm-generic/io.h:596:15: error: call to '_outb' declared with attribute error: outb() requires CONFIG_HAS_IOPORT
Date: Fri, 17 Jan 2025 23:42:14 +0800	[thread overview]
Message-ID: <202501172323.oAy8qQdF-lkp@intel.com> (raw)

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@intel.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@huawei.com>
:::::: CC: Wei Xu <xuwei5@hisilicon.com>

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

                 reply	other threads:[~2025-01-17 15:43 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=202501172323.oAy8qQdF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=jarkko@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=schnelle@linux.ibm.com \
    --cc=tiwai@suse.de \
    --cc=ville.syrjala@linux.intel.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®