linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali@kernel.org>
To: kernel test robot <lkp@intel.com>, Bjorn Helgaas <helgaas@kernel.org>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
	"Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>,
	Alexandre Belloni <alexandre.belloni@bootlin.com>
Subject: Re: [linux-next:master 3902/5128] pcie.c:undefined reference to `pci_remap_iospace'
Date: Sun, 5 Dec 2021 13:32:09 +0100	[thread overview]
Message-ID: <20211205123209.lyx76daqdwzqwex4@pali> (raw)
In-Reply-To: <20211204022131.bmhla4gkph7s7hy2@pali>

+ Bjorn

On Saturday 04 December 2021 03:21:31 Pali Rohár wrote:
> On Saturday 04 December 2021 01:41:28 kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > head:   7afeac307a9561e3a93682c1e7eb22f918aa1187
> > commit: 9c8facde9206dc48060a2a016bae7f76b6328030 [3902/5128] arm: ioremap: Replace pci_ioremap_io() usage by pci_remap_iospace()
> > config: arm-buildonly-randconfig-r004-20211203 (https://download.01.org/0day-ci/archive/20211204/202112040150.wvyJZIZO-lkp@intel.com/config)
> > compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/next/linux-next.git/commit/?id=9c8facde9206dc48060a2a016bae7f76b6328030
> >         git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> >         git fetch --no-tags linux-next master
> >         git checkout 9c8facde9206dc48060a2a016bae7f76b6328030
> >         # save the config file to linux build tree
> >         mkdir build_dir
> >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash
> > 
> > If you fix the issue, kindly add following tag as appropriate
> > Reported-by: kernel test robot <lkp@intel.com>
> > 
> > All errors (new ones prefixed by >>):
> > 
> >    arm-linux-gnueabi-ld: arch/arm/mach-dove/pcie.o: in function `dove_pcie_setup':
> > >> pcie.c:(.init.text+0x170): undefined reference to `pci_remap_iospace'
> >    arm-linux-gnueabi-ld: drivers/pci/pci.o: in function `devm_pci_remap_iospace':
> >    (.text+0x1a84): undefined reference to `pci_remap_iospace'
> 
> I guess that this error is caused by the fact that bot is trying to
> compile kernel for Marvell Dove board without CONFIG_MMU. I'm not sure
> if such configuration makes sense... Anyway
> 
> File arch/arm/mm/ioremap.c where is defined ARM specific version of
> pci_remap_iospace() is compiled only when CONFIG_MMU is enabled.
> 
> What about this patch?
> 
> diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h
> index 0c70eb688a00..690f222fc4ef 100644
> --- a/arch/arm/include/asm/io.h
> +++ b/arch/arm/include/asm/io.h
> @@ -180,10 +180,12 @@ void pci_ioremap_set_mem_type(int mem_type);
>  static inline void pci_ioremap_set_mem_type(int mem_type) {}
>  #endif
>  
> +#ifdef CONFIG_MMU
>  struct resource;
>  
>  #define pci_remap_iospace pci_remap_iospace
>  int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr);
> +#endif
>  
>  /*
>   * PCI configuration space mapping function.
> 
> It will disable ARM specific version of pci_remap_iospace() and let to
> use generic version from drivers/pci/pci.c which always returns error on
> systems without CONFIG_MMU.

Bjorn: Do you know what is intended behavior and usage of function
pci_remap_iospace() on kernels without CONFIG_MMU?

> > 
> > ---
> > 0-DAY CI Kernel Test Service, Intel Corporation
> > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


      reply	other threads:[~2021-12-05 12:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-03 17:41 kernel test robot
2021-12-04  2:21 ` Pali Rohár
2021-12-05 12:32   ` Pali Rohár [this message]

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=20211205123209.lyx76daqdwzqwex4@pali \
    --to=pali@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=helgaas@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=lkp@intel.com \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=rmk+kernel@armlinux.org.uk \
    /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