All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address'
@ 2020-12-01  9:32 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2020-12-01  9:32 UTC (permalink / raw)
  To: Nicolas Saenz Julienne
  Cc: kbuild-all, clang-built-linux, Linux Memory Management List,
	Catalin Marinas, Rob Herring

[-- Attachment #1: Type: text/plain, Size: 2702 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
commit: 07d13a1d6120d453c3c1f020578693d072deded5 [6272/9613] of: unittest: Add test for of_dma_get_max_cpu_address()
config: s390-randconfig-r034-20201201 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
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
        # install s390 cross compiling tool for clang build
        # apt-get install binutils-s390x-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=07d13a1d6120d453c3c1f020578693d072deded5
        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 07d13a1d6120d453c3c1f020578693d072deded5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 

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 >>):

   s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
   coherent.c:(.text+0xf8): undefined reference to `memunmap'
   s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
   coherent.c:(.text+0x174): undefined reference to `memremap'
   s390x-linux-gnu-ld: coherent.c:(.text+0x344): undefined reference to `memunmap'
   s390x-linux-gnu-ld: drivers/of/unittest.o: in function `of_unittest':
>> unittest.c:(.init.text+0x120): undefined reference to `of_dma_get_max_cpu_address'
   s390x-linux-gnu-ld: drivers/fpga/dfl.o: in function `dfl_fpga_dev_feature_init':
   dfl.c:(.text+0xd5e): undefined reference to `devm_platform_ioremap_resource'
   s390x-linux-gnu-ld: drivers/fpga/dfl.o: in function `dfl_fpga_feature_devs_enumerate':
   dfl.c:(.text+0x2b28): undefined reference to `devm_ioremap'
   s390x-linux-gnu-ld: dfl.c:(.text+0x30e8): undefined reference to `devm_iounmap'
   s390x-linux-gnu-ld: dfl.c:(.text+0x3250): undefined reference to `devm_ioremap'
   s390x-linux-gnu-ld: dfl.c:(.text+0x49a8): undefined reference to `devm_iounmap'
   s390x-linux-gnu-ld: drivers/fpga/dfl.o: in function `build_info_commit_dev':
   dfl.c:(.text+0x7f42): undefined reference to `devm_ioremap_resource'

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 11979 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address'
@ 2020-12-01  9:32 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2020-12-01  9:32 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2746 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
commit: 07d13a1d6120d453c3c1f020578693d072deded5 [6272/9613] of: unittest: Add test for of_dma_get_max_cpu_address()
config: s390-randconfig-r034-20201201 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
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
        # install s390 cross compiling tool for clang build
        # apt-get install binutils-s390x-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=07d13a1d6120d453c3c1f020578693d072deded5
        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 07d13a1d6120d453c3c1f020578693d072deded5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 

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 >>):

   s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
   coherent.c:(.text+0xf8): undefined reference to `memunmap'
   s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
   coherent.c:(.text+0x174): undefined reference to `memremap'
   s390x-linux-gnu-ld: coherent.c:(.text+0x344): undefined reference to `memunmap'
   s390x-linux-gnu-ld: drivers/of/unittest.o: in function `of_unittest':
>> unittest.c:(.init.text+0x120): undefined reference to `of_dma_get_max_cpu_address'
   s390x-linux-gnu-ld: drivers/fpga/dfl.o: in function `dfl_fpga_dev_feature_init':
   dfl.c:(.text+0xd5e): undefined reference to `devm_platform_ioremap_resource'
   s390x-linux-gnu-ld: drivers/fpga/dfl.o: in function `dfl_fpga_feature_devs_enumerate':
   dfl.c:(.text+0x2b28): undefined reference to `devm_ioremap'
   s390x-linux-gnu-ld: dfl.c:(.text+0x30e8): undefined reference to `devm_iounmap'
   s390x-linux-gnu-ld: dfl.c:(.text+0x3250): undefined reference to `devm_ioremap'
   s390x-linux-gnu-ld: dfl.c:(.text+0x49a8): undefined reference to `devm_iounmap'
   s390x-linux-gnu-ld: drivers/fpga/dfl.o: in function `build_info_commit_dev':
   dfl.c:(.text+0x7f42): undefined reference to `devm_ioremap_resource'

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 11979 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address'
  2020-12-01  9:32 ` kernel test robot
@ 2020-12-01 12:29   ` Catalin Marinas
  -1 siblings, 0 replies; 12+ messages in thread
From: Catalin Marinas @ 2020-12-01 12:29 UTC (permalink / raw)
  To: kernel test robot
  Cc: Nicolas Saenz Julienne, kbuild-all, clang-built-linux,
	Linux Memory Management List, Rob Herring

On Tue, Dec 01, 2020 at 05:32:51PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
> commit: 07d13a1d6120d453c3c1f020578693d072deded5 [6272/9613] of: unittest: Add test for of_dma_get_max_cpu_address()
> config: s390-randconfig-r034-20201201 (attached as .config)
> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
> 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
>         # install s390 cross compiling tool for clang build
>         # apt-get install binutils-s390x-linux-gnu
>         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=07d13a1d6120d453c3c1f020578693d072deded5
>         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 07d13a1d6120d453c3c1f020578693d072deded5
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 
> 
> 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 >>):
> 
>    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
>    coherent.c:(.text+0xf8): undefined reference to `memunmap'
>    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
>    coherent.c:(.text+0x174): undefined reference to `memremap'
>    s390x-linux-gnu-ld: coherent.c:(.text+0x344): undefined reference to `memunmap'
>    s390x-linux-gnu-ld: drivers/of/unittest.o: in function `of_unittest':
> >> unittest.c:(.init.text+0x120): undefined reference to `of_dma_get_max_cpu_address'

Thanks for the report. I think it needs the diff below. If Rob/Nicolas
are ok with it, I'll add it to the arm64 tree (with some commit text):

diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 98cc0163301b..799125ef66fc 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -871,6 +871,7 @@ static void __init of_unittest_changeset(void)
 
 static void __init of_unittest_dma_get_max_cpu_address(void)
 {
+#ifdef CONFIG_OF_ADDRESS
 	struct device_node *np;
 	phys_addr_t cpu_addr;
 
@@ -884,6 +885,7 @@ static void __init of_unittest_dma_get_max_cpu_address(void)
 	unittest(cpu_addr == 0x4fffffff,
 		 "of_dma_get_max_cpu_address: wrong CPU addr %pad (expecting %x)\n",
 		 &cpu_addr, 0x4fffffff);
+#endif
 }
 
 static void __init of_unittest_dma_ranges_one(const char *path,

-- 
Catalin


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address'
@ 2020-12-01 12:29   ` Catalin Marinas
  0 siblings, 0 replies; 12+ messages in thread
From: Catalin Marinas @ 2020-12-01 12:29 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2868 bytes --]

On Tue, Dec 01, 2020 at 05:32:51PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
> commit: 07d13a1d6120d453c3c1f020578693d072deded5 [6272/9613] of: unittest: Add test for of_dma_get_max_cpu_address()
> config: s390-randconfig-r034-20201201 (attached as .config)
> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
> 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
>         # install s390 cross compiling tool for clang build
>         # apt-get install binutils-s390x-linux-gnu
>         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=07d13a1d6120d453c3c1f020578693d072deded5
>         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 07d13a1d6120d453c3c1f020578693d072deded5
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 
> 
> 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 >>):
> 
>    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
>    coherent.c:(.text+0xf8): undefined reference to `memunmap'
>    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
>    coherent.c:(.text+0x174): undefined reference to `memremap'
>    s390x-linux-gnu-ld: coherent.c:(.text+0x344): undefined reference to `memunmap'
>    s390x-linux-gnu-ld: drivers/of/unittest.o: in function `of_unittest':
> >> unittest.c:(.init.text+0x120): undefined reference to `of_dma_get_max_cpu_address'

Thanks for the report. I think it needs the diff below. If Rob/Nicolas
are ok with it, I'll add it to the arm64 tree (with some commit text):

diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 98cc0163301b..799125ef66fc 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -871,6 +871,7 @@ static void __init of_unittest_changeset(void)
 
 static void __init of_unittest_dma_get_max_cpu_address(void)
 {
+#ifdef CONFIG_OF_ADDRESS
 	struct device_node *np;
 	phys_addr_t cpu_addr;
 
@@ -884,6 +885,7 @@ static void __init of_unittest_dma_get_max_cpu_address(void)
 	unittest(cpu_addr == 0x4fffffff,
 		 "of_dma_get_max_cpu_address: wrong CPU addr %pad (expecting %x)\n",
 		 &cpu_addr, 0x4fffffff);
+#endif
 }
 
 static void __init of_unittest_dma_ranges_one(const char *path,

-- 
Catalin

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address'
  2020-12-01 12:29   ` Catalin Marinas
@ 2020-12-01 12:32     ` Nicolas Saenz Julienne
  -1 siblings, 0 replies; 12+ messages in thread
From: Nicolas Saenz Julienne @ 2020-12-01 12:32 UTC (permalink / raw)
  To: Catalin Marinas, kernel test robot
  Cc: kbuild-all, clang-built-linux, Linux Memory Management List, Rob Herring

[-- Attachment #1: Type: text/plain, Size: 3192 bytes --]

On Tue, 2020-12-01 at 12:29 +0000, Catalin Marinas wrote:
> On Tue, Dec 01, 2020 at 05:32:51PM +0800, kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
> > commit: 07d13a1d6120d453c3c1f020578693d072deded5 [6272/9613] of: unittest: Add test for of_dma_get_max_cpu_address()
> > config: s390-randconfig-r034-20201201 (attached as .config)
> > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
> > 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
> >         # install s390 cross compiling tool for clang build
> >         # apt-get install binutils-s390x-linux-gnu
> >         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=07d13a1d6120d453c3c1f020578693d072deded5
> >         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 07d13a1d6120d453c3c1f020578693d072deded5
> >         # save the attached .config to linux build tree
> >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 
> > 
> > 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 >>):
> > 
> >    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
> >    coherent.c:(.text+0xf8): undefined reference to `memunmap'
> >    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
> >    coherent.c:(.text+0x174): undefined reference to `memremap'
> >    s390x-linux-gnu-ld: coherent.c:(.text+0x344): undefined reference to `memunmap'
> >    s390x-linux-gnu-ld: drivers/of/unittest.o: in function `of_unittest':
> > > > unittest.c:(.init.text+0x120): undefined reference to `of_dma_get_max_cpu_address'
> 
> Thanks for the report. I think it needs the diff below. If Rob/Nicolas
> are ok with it, I'll add it to the arm64 tree (with some commit text):
> 
> diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
> index 98cc0163301b..799125ef66fc 100644
> --- a/drivers/of/unittest.c
> +++ b/drivers/of/unittest.c
> @@ -871,6 +871,7 @@ static void __init of_unittest_changeset(void)
>  
> 
>  static void __init of_unittest_dma_get_max_cpu_address(void)
>  {
> +#ifdef CONFIG_OF_ADDRESS
>  	struct device_node *np;
>  	phys_addr_t cpu_addr;
>  
> 
> @@ -884,6 +885,7 @@ static void __init of_unittest_dma_get_max_cpu_address(void)
>  	unittest(cpu_addr == 0x4fffffff,
>  		 "of_dma_get_max_cpu_address: wrong CPU addr %pad (expecting %x)\n",
>  		 &cpu_addr, 0x4fffffff);
> +#endif
>  }
>  
> 
>  static void __init of_unittest_dma_ranges_one(const char *path,

Yes, agree with this.

Regards,
Nicolas


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address'
@ 2020-12-01 12:32     ` Nicolas Saenz Julienne
  0 siblings, 0 replies; 12+ messages in thread
From: Nicolas Saenz Julienne @ 2020-12-01 12:32 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3192 bytes --]

On Tue, 2020-12-01 at 12:29 +0000, Catalin Marinas wrote:
> On Tue, Dec 01, 2020 at 05:32:51PM +0800, kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
> > commit: 07d13a1d6120d453c3c1f020578693d072deded5 [6272/9613] of: unittest: Add test for of_dma_get_max_cpu_address()
> > config: s390-randconfig-r034-20201201 (attached as .config)
> > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
> > 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
> >         # install s390 cross compiling tool for clang build
> >         # apt-get install binutils-s390x-linux-gnu
> >         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=07d13a1d6120d453c3c1f020578693d072deded5
> >         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 07d13a1d6120d453c3c1f020578693d072deded5
> >         # save the attached .config to linux build tree
> >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 
> > 
> > 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 >>):
> > 
> >    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
> >    coherent.c:(.text+0xf8): undefined reference to `memunmap'
> >    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
> >    coherent.c:(.text+0x174): undefined reference to `memremap'
> >    s390x-linux-gnu-ld: coherent.c:(.text+0x344): undefined reference to `memunmap'
> >    s390x-linux-gnu-ld: drivers/of/unittest.o: in function `of_unittest':
> > > > unittest.c:(.init.text+0x120): undefined reference to `of_dma_get_max_cpu_address'
> 
> Thanks for the report. I think it needs the diff below. If Rob/Nicolas
> are ok with it, I'll add it to the arm64 tree (with some commit text):
> 
> diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
> index 98cc0163301b..799125ef66fc 100644
> --- a/drivers/of/unittest.c
> +++ b/drivers/of/unittest.c
> @@ -871,6 +871,7 @@ static void __init of_unittest_changeset(void)
>  
> 
>  static void __init of_unittest_dma_get_max_cpu_address(void)
>  {
> +#ifdef CONFIG_OF_ADDRESS
>  	struct device_node *np;
>  	phys_addr_t cpu_addr;
>  
> 
> @@ -884,6 +885,7 @@ static void __init of_unittest_dma_get_max_cpu_address(void)
>  	unittest(cpu_addr == 0x4fffffff,
>  		 "of_dma_get_max_cpu_address: wrong CPU addr %pad (expecting %x)\n",
>  		 &cpu_addr, 0x4fffffff);
> +#endif
>  }
>  
> 
>  static void __init of_unittest_dma_ranges_one(const char *path,

Yes, agree with this.

Regards,
Nicolas


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address'
  2020-12-01 12:29   ` Catalin Marinas
@ 2020-12-01 20:13     ` Rob Herring
  -1 siblings, 0 replies; 12+ messages in thread
From: Rob Herring @ 2020-12-01 20:13 UTC (permalink / raw)
  To: Catalin Marinas
  Cc: kernel test robot, Nicolas Saenz Julienne, kbuild-all,
	clang-built-linux, Linux Memory Management List

On Tue, Dec 1, 2020 at 5:29 AM Catalin Marinas <catalin.marinas@arm.com> wrote:
>
> On Tue, Dec 01, 2020 at 05:32:51PM +0800, kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
> > commit: 07d13a1d6120d453c3c1f020578693d072deded5 [6272/9613] of: unittest: Add test for of_dma_get_max_cpu_address()
> > config: s390-randconfig-r034-20201201 (attached as .config)
> > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
> > 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
> >         # install s390 cross compiling tool for clang build
> >         # apt-get install binutils-s390x-linux-gnu
> >         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=07d13a1d6120d453c3c1f020578693d072deded5
> >         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 07d13a1d6120d453c3c1f020578693d072deded5
> >         # save the attached .config to linux build tree
> >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
> >
> > 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 >>):
> >
> >    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
> >    coherent.c:(.text+0xf8): undefined reference to `memunmap'
> >    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
> >    coherent.c:(.text+0x174): undefined reference to `memremap'
> >    s390x-linux-gnu-ld: coherent.c:(.text+0x344): undefined reference to `memunmap'
> >    s390x-linux-gnu-ld: drivers/of/unittest.o: in function `of_unittest':
> > >> unittest.c:(.init.text+0x120): undefined reference to `of_dma_get_max_cpu_address'
>
> Thanks for the report. I think it needs the diff below. If Rob/Nicolas
> are ok with it, I'll add it to the arm64 tree (with some commit text):
>
> diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
> index 98cc0163301b..799125ef66fc 100644
> --- a/drivers/of/unittest.c
> +++ b/drivers/of/unittest.c
> @@ -871,6 +871,7 @@ static void __init of_unittest_changeset(void)
>
>  static void __init of_unittest_dma_get_max_cpu_address(void)
>  {
> +#ifdef CONFIG_OF_ADDRESS

       if (!IS_ENABLED(CONFIG_OF_ADDRESS))
               return;

This once again makes me want to kill off HAS_IOMEM. Or at least
always have a dummy ioremap() and friends for !HAS_IOMEM.

>         struct device_node *np;
>         phys_addr_t cpu_addr;
>
> @@ -884,6 +885,7 @@ static void __init of_unittest_dma_get_max_cpu_address(void)
>         unittest(cpu_addr == 0x4fffffff,
>                  "of_dma_get_max_cpu_address: wrong CPU addr %pad (expecting %x)\n",
>                  &cpu_addr, 0x4fffffff);
> +#endif
>  }
>
>  static void __init of_unittest_dma_ranges_one(const char *path,
>
> --
> Catalin


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address'
@ 2020-12-01 20:13     ` Rob Herring
  0 siblings, 0 replies; 12+ messages in thread
From: Rob Herring @ 2020-12-01 20:13 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3295 bytes --]

On Tue, Dec 1, 2020 at 5:29 AM Catalin Marinas <catalin.marinas@arm.com> wrote:
>
> On Tue, Dec 01, 2020 at 05:32:51PM +0800, kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
> > commit: 07d13a1d6120d453c3c1f020578693d072deded5 [6272/9613] of: unittest: Add test for of_dma_get_max_cpu_address()
> > config: s390-randconfig-r034-20201201 (attached as .config)
> > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
> > 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
> >         # install s390 cross compiling tool for clang build
> >         # apt-get install binutils-s390x-linux-gnu
> >         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=07d13a1d6120d453c3c1f020578693d072deded5
> >         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 07d13a1d6120d453c3c1f020578693d072deded5
> >         # save the attached .config to linux build tree
> >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
> >
> > 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 >>):
> >
> >    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
> >    coherent.c:(.text+0xf8): undefined reference to `memunmap'
> >    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
> >    coherent.c:(.text+0x174): undefined reference to `memremap'
> >    s390x-linux-gnu-ld: coherent.c:(.text+0x344): undefined reference to `memunmap'
> >    s390x-linux-gnu-ld: drivers/of/unittest.o: in function `of_unittest':
> > >> unittest.c:(.init.text+0x120): undefined reference to `of_dma_get_max_cpu_address'
>
> Thanks for the report. I think it needs the diff below. If Rob/Nicolas
> are ok with it, I'll add it to the arm64 tree (with some commit text):
>
> diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
> index 98cc0163301b..799125ef66fc 100644
> --- a/drivers/of/unittest.c
> +++ b/drivers/of/unittest.c
> @@ -871,6 +871,7 @@ static void __init of_unittest_changeset(void)
>
>  static void __init of_unittest_dma_get_max_cpu_address(void)
>  {
> +#ifdef CONFIG_OF_ADDRESS

       if (!IS_ENABLED(CONFIG_OF_ADDRESS))
               return;

This once again makes me want to kill off HAS_IOMEM. Or at least
always have a dummy ioremap() and friends for !HAS_IOMEM.

>         struct device_node *np;
>         phys_addr_t cpu_addr;
>
> @@ -884,6 +885,7 @@ static void __init of_unittest_dma_get_max_cpu_address(void)
>         unittest(cpu_addr == 0x4fffffff,
>                  "of_dma_get_max_cpu_address: wrong CPU addr %pad (expecting %x)\n",
>                  &cpu_addr, 0x4fffffff);
> +#endif
>  }
>
>  static void __init of_unittest_dma_ranges_one(const char *path,
>
> --
> Catalin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address'
  2020-12-01 20:13     ` Rob Herring
@ 2020-12-01 22:28       ` Catalin Marinas
  -1 siblings, 0 replies; 12+ messages in thread
From: Catalin Marinas @ 2020-12-01 22:28 UTC (permalink / raw)
  To: Rob Herring
  Cc: kernel test robot, Nicolas Saenz Julienne, kbuild-all,
	clang-built-linux, Linux Memory Management List

On Tue, Dec 01, 2020 at 01:13:38PM -0700, Rob Herring wrote:
> On Tue, Dec 1, 2020 at 5:29 AM Catalin Marinas <catalin.marinas@arm.com> wrote:
> > On Tue, Dec 01, 2020 at 05:32:51PM +0800, kernel test robot wrote:
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > > head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
> > > commit: 07d13a1d6120d453c3c1f020578693d072deded5 [6272/9613] of: unittest: Add test for of_dma_get_max_cpu_address()
> > > config: s390-randconfig-r034-20201201 (attached as .config)
> > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
> > > 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
> > >         # install s390 cross compiling tool for clang build
> > >         # apt-get install binutils-s390x-linux-gnu
> > >         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=07d13a1d6120d453c3c1f020578693d072deded5
> > >         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 07d13a1d6120d453c3c1f020578693d072deded5
> > >         # save the attached .config to linux build tree
> > >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
> > >
> > > 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 >>):
> > >
> > >    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
> > >    coherent.c:(.text+0xf8): undefined reference to `memunmap'
> > >    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
> > >    coherent.c:(.text+0x174): undefined reference to `memremap'
> > >    s390x-linux-gnu-ld: coherent.c:(.text+0x344): undefined reference to `memunmap'
> > >    s390x-linux-gnu-ld: drivers/of/unittest.o: in function `of_unittest':
> > > >> unittest.c:(.init.text+0x120): undefined reference to `of_dma_get_max_cpu_address'
> >
> > Thanks for the report. I think it needs the diff below. If Rob/Nicolas
> > are ok with it, I'll add it to the arm64 tree (with some commit text):
> >
> > diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
> > index 98cc0163301b..799125ef66fc 100644
> > --- a/drivers/of/unittest.c
> > +++ b/drivers/of/unittest.c
> > @@ -871,6 +871,7 @@ static void __init of_unittest_changeset(void)
> >
> >  static void __init of_unittest_dma_get_max_cpu_address(void)
> >  {
> > +#ifdef CONFIG_OF_ADDRESS
> 
>        if (!IS_ENABLED(CONFIG_OF_ADDRESS))
>                return;

I can change it. I saw two other instances of #ifdef style, so I went
with this.

> This once again makes me want to kill off HAS_IOMEM. Or at least
> always have a dummy ioremap() and friends for !HAS_IOMEM.

That's for a different patch series I guess ;).

-- 
Catalin


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address'
@ 2020-12-01 22:28       ` Catalin Marinas
  0 siblings, 0 replies; 12+ messages in thread
From: Catalin Marinas @ 2020-12-01 22:28 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3163 bytes --]

On Tue, Dec 01, 2020 at 01:13:38PM -0700, Rob Herring wrote:
> On Tue, Dec 1, 2020 at 5:29 AM Catalin Marinas <catalin.marinas@arm.com> wrote:
> > On Tue, Dec 01, 2020 at 05:32:51PM +0800, kernel test robot wrote:
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > > head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
> > > commit: 07d13a1d6120d453c3c1f020578693d072deded5 [6272/9613] of: unittest: Add test for of_dma_get_max_cpu_address()
> > > config: s390-randconfig-r034-20201201 (attached as .config)
> > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
> > > 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
> > >         # install s390 cross compiling tool for clang build
> > >         # apt-get install binutils-s390x-linux-gnu
> > >         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=07d13a1d6120d453c3c1f020578693d072deded5
> > >         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 07d13a1d6120d453c3c1f020578693d072deded5
> > >         # save the attached .config to linux build tree
> > >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
> > >
> > > 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 >>):
> > >
> > >    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
> > >    coherent.c:(.text+0xf8): undefined reference to `memunmap'
> > >    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
> > >    coherent.c:(.text+0x174): undefined reference to `memremap'
> > >    s390x-linux-gnu-ld: coherent.c:(.text+0x344): undefined reference to `memunmap'
> > >    s390x-linux-gnu-ld: drivers/of/unittest.o: in function `of_unittest':
> > > >> unittest.c:(.init.text+0x120): undefined reference to `of_dma_get_max_cpu_address'
> >
> > Thanks for the report. I think it needs the diff below. If Rob/Nicolas
> > are ok with it, I'll add it to the arm64 tree (with some commit text):
> >
> > diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
> > index 98cc0163301b..799125ef66fc 100644
> > --- a/drivers/of/unittest.c
> > +++ b/drivers/of/unittest.c
> > @@ -871,6 +871,7 @@ static void __init of_unittest_changeset(void)
> >
> >  static void __init of_unittest_dma_get_max_cpu_address(void)
> >  {
> > +#ifdef CONFIG_OF_ADDRESS
> 
>        if (!IS_ENABLED(CONFIG_OF_ADDRESS))
>                return;

I can change it. I saw two other instances of #ifdef style, so I went
with this.

> This once again makes me want to kill off HAS_IOMEM. Or at least
> always have a dummy ioremap() and friends for !HAS_IOMEM.

That's for a different patch series I guess ;).

-- 
Catalin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address'
  2020-12-01 20:13     ` Rob Herring
@ 2020-12-01 23:40       ` Randy Dunlap
  -1 siblings, 0 replies; 12+ messages in thread
From: Randy Dunlap @ 2020-12-01 23:40 UTC (permalink / raw)
  To: Rob Herring, Catalin Marinas
  Cc: kernel test robot, Nicolas Saenz Julienne, kbuild-all,
	clang-built-linux, Linux Memory Management List

On 12/1/20 12:13 PM, Rob Herring wrote:
> On Tue, Dec 1, 2020 at 5:29 AM Catalin Marinas <catalin.marinas@arm.com> wrote:
>>
>> On Tue, Dec 01, 2020 at 05:32:51PM +0800, kernel test robot wrote:
>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
>>> head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
>>> commit: 07d13a1d6120d453c3c1f020578693d072deded5 [6272/9613] of: unittest: Add test for of_dma_get_max_cpu_address()
>>> config: s390-randconfig-r034-20201201 (attached as .config)
>>> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
>>> 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
>>>         # install s390 cross compiling tool for clang build
>>>         # apt-get install binutils-s390x-linux-gnu
>>>         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=07d13a1d6120d453c3c1f020578693d072deded5
>>>         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 07d13a1d6120d453c3c1f020578693d072deded5
>>>         # save the attached .config to linux build tree
>>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
>>>
>>> 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 >>):
>>>
>>>    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
>>>    coherent.c:(.text+0xf8): undefined reference to `memunmap'
>>>    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
>>>    coherent.c:(.text+0x174): undefined reference to `memremap'
>>>    s390x-linux-gnu-ld: coherent.c:(.text+0x344): undefined reference to `memunmap'
>>>    s390x-linux-gnu-ld: drivers/of/unittest.o: in function `of_unittest':
>>>>> unittest.c:(.init.text+0x120): undefined reference to `of_dma_get_max_cpu_address'
>>
>> Thanks for the report. I think it needs the diff below. If Rob/Nicolas
>> are ok with it, I'll add it to the arm64 tree (with some commit text):
>>
>> diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
>> index 98cc0163301b..799125ef66fc 100644
>> --- a/drivers/of/unittest.c
>> +++ b/drivers/of/unittest.c
>> @@ -871,6 +871,7 @@ static void __init of_unittest_changeset(void)
>>
>>  static void __init of_unittest_dma_get_max_cpu_address(void)
>>  {
>> +#ifdef CONFIG_OF_ADDRESS
> 
>        if (!IS_ENABLED(CONFIG_OF_ADDRESS))
>                return;
> 
> This once again makes me want to kill off HAS_IOMEM. Or at least
> always have a dummy ioremap() and friends for !HAS_IOMEM.

That would eliminate dozens of build errors on S390 when
# CONFIG_HAS_IOMEM is not set
# CONFIG_OF_ADDRESS is not set

>>         struct device_node *np;
>>         phys_addr_t cpu_addr;
>>
>> @@ -884,6 +885,7 @@ static void __init of_unittest_dma_get_max_cpu_address(void)
>>         unittest(cpu_addr == 0x4fffffff,
>>                  "of_dma_get_max_cpu_address: wrong CPU addr %pad (expecting %x)\n",
>>                  &cpu_addr, 0x4fffffff);
>> +#endif
>>  }
>>
>>  static void __init of_unittest_dma_ranges_one(const char *path,
>>
>> --
>> Catalin
> 


-- 
~Randy



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address'
@ 2020-12-01 23:40       ` Randy Dunlap
  0 siblings, 0 replies; 12+ messages in thread
From: Randy Dunlap @ 2020-12-01 23:40 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3524 bytes --]

On 12/1/20 12:13 PM, Rob Herring wrote:
> On Tue, Dec 1, 2020 at 5:29 AM Catalin Marinas <catalin.marinas@arm.com> wrote:
>>
>> On Tue, Dec 01, 2020 at 05:32:51PM +0800, kernel test robot wrote:
>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
>>> head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
>>> commit: 07d13a1d6120d453c3c1f020578693d072deded5 [6272/9613] of: unittest: Add test for of_dma_get_max_cpu_address()
>>> config: s390-randconfig-r034-20201201 (attached as .config)
>>> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
>>> 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
>>>         # install s390 cross compiling tool for clang build
>>>         # apt-get install binutils-s390x-linux-gnu
>>>         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=07d13a1d6120d453c3c1f020578693d072deded5
>>>         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 07d13a1d6120d453c3c1f020578693d072deded5
>>>         # save the attached .config to linux build tree
>>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
>>>
>>> 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 >>):
>>>
>>>    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
>>>    coherent.c:(.text+0xf8): undefined reference to `memunmap'
>>>    s390x-linux-gnu-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
>>>    coherent.c:(.text+0x174): undefined reference to `memremap'
>>>    s390x-linux-gnu-ld: coherent.c:(.text+0x344): undefined reference to `memunmap'
>>>    s390x-linux-gnu-ld: drivers/of/unittest.o: in function `of_unittest':
>>>>> unittest.c:(.init.text+0x120): undefined reference to `of_dma_get_max_cpu_address'
>>
>> Thanks for the report. I think it needs the diff below. If Rob/Nicolas
>> are ok with it, I'll add it to the arm64 tree (with some commit text):
>>
>> diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
>> index 98cc0163301b..799125ef66fc 100644
>> --- a/drivers/of/unittest.c
>> +++ b/drivers/of/unittest.c
>> @@ -871,6 +871,7 @@ static void __init of_unittest_changeset(void)
>>
>>  static void __init of_unittest_dma_get_max_cpu_address(void)
>>  {
>> +#ifdef CONFIG_OF_ADDRESS
> 
>        if (!IS_ENABLED(CONFIG_OF_ADDRESS))
>                return;
> 
> This once again makes me want to kill off HAS_IOMEM. Or at least
> always have a dummy ioremap() and friends for !HAS_IOMEM.

That would eliminate dozens of build errors on S390 when
# CONFIG_HAS_IOMEM is not set
# CONFIG_OF_ADDRESS is not set

>>         struct device_node *np;
>>         phys_addr_t cpu_addr;
>>
>> @@ -884,6 +885,7 @@ static void __init of_unittest_dma_get_max_cpu_address(void)
>>         unittest(cpu_addr == 0x4fffffff,
>>                  "of_dma_get_max_cpu_address: wrong CPU addr %pad (expecting %x)\n",
>>                  &cpu_addr, 0x4fffffff);
>> +#endif
>>  }
>>
>>  static void __init of_unittest_dma_ranges_one(const char *path,
>>
>> --
>> Catalin
> 


-- 
~Randy

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-12-01 23:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01  9:32 [linux-next:master 6272/9613] unittest.c:undefined reference to `of_dma_get_max_cpu_address' kernel test robot
2020-12-01  9:32 ` kernel test robot
2020-12-01 12:29 ` Catalin Marinas
2020-12-01 12:29   ` Catalin Marinas
2020-12-01 12:32   ` Nicolas Saenz Julienne
2020-12-01 12:32     ` Nicolas Saenz Julienne
2020-12-01 20:13   ` Rob Herring
2020-12-01 20:13     ` Rob Herring
2020-12-01 22:28     ` Catalin Marinas
2020-12-01 22:28       ` Catalin Marinas
2020-12-01 23:40     ` Randy Dunlap
2020-12-01 23:40       ` Randy Dunlap

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.