linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers: soc: Fix COMPILE_TEST for IMX SCU
@ 2020-03-06 11:31 Vincenzo Frascino
  2020-03-07  0:51 ` kbuild test robot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vincenzo Frascino @ 2020-03-06 11:31 UTC (permalink / raw)
  To: kernel, linux-imx, linux-arm-kernel, linux-kernel
  Cc: Vincenzo Frascino, Shawn Guo, Sascha Hauer

IMX SCU SoCs support COMPILE_TEST that allows to compile the driver on a
different platform for development purposes.
These SoCs depend on a firmware interface that is not built on COMPILE_TEST
mode. This results in triggering the following errors at compile time (on
arm64):

aarch64-none-linux-gnu-ld:
drivers/soc/imx/soc-imx-scu.o: in function `imx_scu_soc_probe':
soc-imx-scu.c:(.text+0x24): undefined reference to `imx_scu_get_handle'
aarch64-none-linux-gnu-ld:
soc-imx-scu.c:(.text+0xac): undefined reference to `imx_scu_call_rpc'
aarch64-none-linux-gnu-ld:
soc-imx-scu.c:(.text+0xd8): undefined reference to `imx_scu_call_rpc'
linux/Makefile:1078: recipe for target 'vmlinux' failed
make[1]: *** [vmlinux] Error 1
Makefile:180: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

Enable the relevant compilation units in the Makefile when the config option
is selected to address the issue.

Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
---
 drivers/firmware/imx/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/firmware/imx/Makefile b/drivers/firmware/imx/Makefile
index 08bc9ddfbdfb..5604adae31d9 100644
--- a/drivers/firmware/imx/Makefile
+++ b/drivers/firmware/imx/Makefile
@@ -2,3 +2,5 @@
 obj-$(CONFIG_IMX_DSP)		+= imx-dsp.o
 obj-$(CONFIG_IMX_SCU)		+= imx-scu.o misc.o imx-scu-irq.o
 obj-$(CONFIG_IMX_SCU_PD)	+= scu-pd.o
+
+obj-$(CONFIG_COMPILE_TEST)	+= imx-scu.o misc.o imx-scu-irq.o
-- 
2.25.1


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

* Re: [PATCH] drivers: soc: Fix COMPILE_TEST for IMX SCU
  2020-03-06 11:31 [PATCH] drivers: soc: Fix COMPILE_TEST for IMX SCU Vincenzo Frascino
@ 2020-03-07  0:51 ` kbuild test robot
  2020-03-07 14:11 ` kbuild test robot
  2020-03-11  9:06 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2020-03-07  0:51 UTC (permalink / raw)
  To: Vincenzo Frascino
  Cc: kbuild-all, kernel, linux-imx, linux-arm-kernel, linux-kernel,
	Vincenzo Frascino, Shawn Guo, Sascha Hauer

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

Hi Vincenzo,

I love your patch! Yet something to improve:

[auto build test ERROR on shawnguo/for-next]
[also build test ERROR on v5.6-rc4 next-20200306]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Vincenzo-Frascino/drivers-soc-Fix-COMPILE_TEST-for-IMX-SCU/20200307-033704
base:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next
config: i386-randconfig-e003-20200305 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   ld: drivers/firmware/imx/imx-scu.o: in function `imx_scu_call_rpc':
>> imx-scu.c:(.text+0xbb): undefined reference to `mbox_send_message'
   ld: drivers/firmware/imx/imx-scu.o: in function `imx_scu_probe':
>> imx-scu.c:(.text+0x356): undefined reference to `mbox_request_channel_byname'
   ld: drivers/firmware/imx/imx-scu-irq.o: in function `imx_scu_enable_general_irq_channel':
>> imx-scu-irq.c:(.text+0x22b): undefined reference to `mbox_request_channel_byname'

---
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: 38356 bytes --]

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

* Re: [PATCH] drivers: soc: Fix COMPILE_TEST for IMX SCU
  2020-03-06 11:31 [PATCH] drivers: soc: Fix COMPILE_TEST for IMX SCU Vincenzo Frascino
  2020-03-07  0:51 ` kbuild test robot
@ 2020-03-07 14:11 ` kbuild test robot
  2020-03-11  9:06 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2020-03-07 14:11 UTC (permalink / raw)
  To: Vincenzo Frascino
  Cc: kbuild-all, kernel, linux-imx, linux-arm-kernel, linux-kernel,
	Vincenzo Frascino, Shawn Guo, Sascha Hauer

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

Hi Vincenzo,

I love your patch! Yet something to improve:

[auto build test ERROR on shawnguo/for-next]
[also build test ERROR on v5.6-rc4 next-20200306]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Vincenzo-Frascino/drivers-soc-Fix-COMPILE_TEST-for-IMX-SCU/20200307-033704
base:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next
config: x86_64-randconfig-c003-20200307 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   ld: drivers/firmware/imx/imx-scu.o: in function `imx_scu_call_rpc':
>> (.text+0x149): undefined reference to `mbox_send_message'
   ld: drivers/firmware/imx/imx-scu.o: in function `imx_scu_probe':
   imx-scu.c:(.text+0x6ec): undefined reference to `mbox_request_channel_byname'
   ld: drivers/firmware/imx/imx-scu-irq.o: in function `imx_scu_enable_general_irq_channel':
>> (.text+0x31f): undefined reference to `mbox_request_channel_byname'

---
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: 37294 bytes --]

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

* Re: [PATCH] drivers: soc: Fix COMPILE_TEST for IMX SCU
  2020-03-06 11:31 [PATCH] drivers: soc: Fix COMPILE_TEST for IMX SCU Vincenzo Frascino
  2020-03-07  0:51 ` kbuild test robot
  2020-03-07 14:11 ` kbuild test robot
@ 2020-03-11  9:06 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2020-03-11  9:06 UTC (permalink / raw)
  To: Vincenzo Frascino
  Cc: kernel, linux-imx, linux-arm-kernel, linux-kernel, Sascha Hauer

On Fri, Mar 06, 2020 at 11:31:19AM +0000, Vincenzo Frascino wrote:
> IMX SCU SoCs support COMPILE_TEST that allows to compile the driver on a
> different platform for development purposes.
> These SoCs depend on a firmware interface that is not built on COMPILE_TEST
> mode. This results in triggering the following errors at compile time (on
> arm64):
> 
> aarch64-none-linux-gnu-ld:
> drivers/soc/imx/soc-imx-scu.o: in function `imx_scu_soc_probe':
> soc-imx-scu.c:(.text+0x24): undefined reference to `imx_scu_get_handle'
> aarch64-none-linux-gnu-ld:
> soc-imx-scu.c:(.text+0xac): undefined reference to `imx_scu_call_rpc'
> aarch64-none-linux-gnu-ld:
> soc-imx-scu.c:(.text+0xd8): undefined reference to `imx_scu_call_rpc'
> linux/Makefile:1078: recipe for target 'vmlinux' failed
> make[1]: *** [vmlinux] Error 1
> Makefile:180: recipe for target 'sub-make' failed
> make: *** [sub-make] Error 2
> 
> Enable the relevant compilation units in the Makefile when the config option
> is selected to address the issue.
> 
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: Sascha Hauer <s.hauer@pengutronix.de>
> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>

Thanks for the patch.  But we already queued Peng's version [1].

Shawn

[1] https://www.spinics.net/lists/arm-kernel/msg787548.html

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

end of thread, other threads:[~2020-03-11  9:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06 11:31 [PATCH] drivers: soc: Fix COMPILE_TEST for IMX SCU Vincenzo Frascino
2020-03-07  0:51 ` kbuild test robot
2020-03-07 14:11 ` kbuild test robot
2020-03-11  9:06 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).