All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: [linux-next:master 4620/4884] include/linux/io.h:92:16: error: implicit declaration of function 'ioremap_np'; did you mean 'ioremap_uc'?
Date: Tue, 5 Dec 2023 20:51:23 +0800	[thread overview]
Message-ID: <202312052001.PB9V8WNH-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0f5f12ac05f36f117e793656c3f560625e927f1b
commit: 17229c19e5bf0b5dc8b68dc4ca4e7012e7da4747 [4620/4884] mips: remove extraneous asm-generic/iomap.h include
config: mips-xway_defconfig (https://download.01.org/0day-ci/archive/20231205/202312052001.PB9V8WNH-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231205/202312052001.PB9V8WNH-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/202312052001.PB9V8WNH-lkp@intel.com/

Note: the linux-next/master HEAD 0f5f12ac05f36f117e793656c3f560625e927f1b builds fine.
      It may have been fixed somewhere.

All error/warnings (new ones prefixed by >>):

   In file included from arch/mips/include/asm/mips-cps.h:11,
                    from arch/mips/include/asm/smp-ops.h:16,
                    from arch/mips/include/asm/smp.h:21,
                    from include/linux/smp.h:113,
                    from arch/mips/include/asm/cpu-type.h:12,
                    from arch/mips/include/asm/timex.h:19,
                    from include/linux/timex.h:67,
                    from include/linux/time32.h:13,
                    from include/linux/time.h:60,
                    from include/linux/compat.h:10,
                    from arch/mips/kernel/asm-offsets.c:12:
   include/linux/io.h: In function 'pci_remap_cfgspace':
>> include/linux/io.h:92:16: error: implicit declaration of function 'ioremap_np'; did you mean 'ioremap_uc'? [-Werror=implicit-function-declaration]
      92 |         return ioremap_np(offset, size) ?: ioremap(offset, size);
         |                ^~~~~~~~~~
         |                ioremap_uc
>> include/linux/io.h:92:42: warning: pointer/integer type mismatch in conditional expression
      92 |         return ioremap_np(offset, size) ?: ioremap(offset, size);
         |                                          ^
   cc1: some warnings being treated as errors
   make[3]: *** [scripts/Makefile.build:116: arch/mips/kernel/asm-offsets.s] Error 1
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1191: prepare0] Error 2
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:234: __sub-make] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:234: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +92 include/linux/io.h

7d3dcf26a6559fa Christoph Hellwig 2015-08-10  70  
4d312ac057da57b Arnd Bergmann     2023-05-16  71  /* architectures can override this */
4d312ac057da57b Arnd Bergmann     2023-05-16  72  pgprot_t __init early_memremap_pgprot_adjust(resource_size_t phys_addr,
4d312ac057da57b Arnd Bergmann     2023-05-16  73  					unsigned long size, pgprot_t prot);
4d312ac057da57b Arnd Bergmann     2023-05-16  74  
4d312ac057da57b Arnd Bergmann     2023-05-16  75  
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  76  #ifdef CONFIG_PCI
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  77  /*
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  78   * The PCI specifications (Rev 3.0, 3.2.5 "Transaction Ordering and
b10eb2d50911f98 Hector Martin     2021-03-25  79   * Posting") mandate non-posted configuration transactions. This default
b10eb2d50911f98 Hector Martin     2021-03-25  80   * implementation attempts to use the ioremap_np() API to provide this
b10eb2d50911f98 Hector Martin     2021-03-25  81   * on arches that support it, and falls back to ioremap() on those that
b10eb2d50911f98 Hector Martin     2021-03-25  82   * don't. Overriding this function is deprecated; arches that properly
b10eb2d50911f98 Hector Martin     2021-03-25  83   * support non-posted accesses should implement ioremap_np() instead, which
b10eb2d50911f98 Hector Martin     2021-03-25  84   * this default implementation can then use to return mappings compliant with
b10eb2d50911f98 Hector Martin     2021-03-25  85   * the PCI specification.
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  86   */
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  87  #ifndef pci_remap_cfgspace
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  88  #define pci_remap_cfgspace pci_remap_cfgspace
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  89  static inline void __iomem *pci_remap_cfgspace(phys_addr_t offset,
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  90  					       size_t size)
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  91  {
b10eb2d50911f98 Hector Martin     2021-03-25 @92  	return ioremap_np(offset, size) ?: ioremap(offset, size);
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  93  }
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  94  #endif
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  95  #endif
cf9ea8ca4a0bea7 Lorenzo Pieralisi 2017-04-19  96  

:::::: The code at line 92 was first introduced by commit
:::::: b10eb2d50911f98a8f1cacf00b1b677339593f4c asm-generic/io.h: implement pci_remap_cfgspace using ioremap_np

:::::: TO: Hector Martin <marcan@marcan.st>
:::::: CC: Hector Martin <marcan@marcan.st>

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

                 reply	other threads:[~2023-12-05 12:51 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=202312052001.PB9V8WNH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=linux-mm@kvack.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.