All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Osipenko <digetx@gmail.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v1 08/13] memory: tegra: Enable compile testing for all drivers
Date: Sat, 22 May 2021 20:14:53 +0300	[thread overview]
Message-ID: <09fea79d-44eb-62ea-4788-9aee4359e8e9@gmail.com> (raw)
In-Reply-To: <b556b166-036a-b059-5dac-d8dc47ce0d07@gmail.com>

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

22.05.2021 20:12, Dmitry Osipenko пишет:
> 22.05.2021 19:39, kernel test robot пишет:
>> Hi Dmitry,
>>
>> I love your patch! Yet something to improve:
>>
>> [auto build test ERROR on regulator/for-next]
>> [also build test ERROR on robh/for-next v5.13-rc2 next-20210521]
>> [cannot apply to tegra/for-next]
>> [If your patch is applied to the wrong git tree, kindly drop us a note.
>> And when submitting patch, we suggest to use '--base' as documented in
>> https://git-scm.com/docs/git-format-patch]
>>
>> url:    https://github.com/0day-ci/linux/commits/Dmitry-Osipenko/NVIDIA-Tegra-memory-and-power-management-changes-for-5-14/20210522-190541
>> base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
>> config: arm-randconfig-r014-20210522 (attached as .config)
>> compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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://github.com/0day-ci/linux/commit/19cc71cefb806ede6b171f67bc4143b3f34a44b7
>>         git remote add linux-review https://github.com/0day-ci/linux
>>         git fetch --no-tags linux-review Dmitry-Osipenko/NVIDIA-Tegra-memory-and-power-management-changes-for-5-14/20210522-190541
>>         git checkout 19cc71cefb806ede6b171f67bc4143b3f34a44b7
>>         # save the attached .config to linux build tree
>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 
>>
>> 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 >>):
>>
>>    kernel/softirq.o: in function `spawn_ksoftirqd':
>>    softirq.c:(.init.text+0x14): relocation truncated to fit: R_ARM_PC24 against symbol `__gnu_mcount_nc' defined in .text section in arch/arm/kernel/entry-ftrace.o
>>    softirq.c:(.init.text+0x34): relocation truncated to fit: R_ARM_PC24 against symbol `__cpuhp_setup_state' defined in .text section in kernel/cpu.o
>>    softirq.c:(.init.text+0x3c): relocation truncated to fit: R_ARM_PC24 against symbol `smpboot_register_percpu_thread' defined in .text section in kernel/smpboot.o
>>    softirq.c:(.init.text+0x58): relocation truncated to fit: R_ARM_PC24 against symbol `ftrace_likely_update' defined in .text section in kernel/trace/trace_branch.o
>>    kernel/softirq.o: in function `softirq_init':
>>    softirq.c:(.init.text+0xb0): relocation truncated to fit: R_ARM_PC24 against symbol `__gnu_mcount_nc' defined in .text section in arch/arm/kernel/entry-ftrace.o
>>    kernel/softirq.o: in function `early_irq_init':
>>    softirq.c:(.init.text+0x100): relocation truncated to fit: R_ARM_PC24 against symbol `__gnu_mcount_nc' defined in .text section in arch/arm/kernel/entry-ftrace.o
>>    kernel/softirq.o: in function `arch_probe_nr_irqs':
>>    softirq.c:(.init.text+0x11c): relocation truncated to fit: R_ARM_PC24 against symbol `__gnu_mcount_nc' defined in .text section in arch/arm/kernel/entry-ftrace.o
>>    kernel/softirq.o: in function `arch_early_irq_init':
>>    softirq.c:(.init.text+0x138): relocation truncated to fit: R_ARM_PC24 against symbol `__gnu_mcount_nc' defined in .text section in arch/arm/kernel/entry-ftrace.o
>>    init/main.o: in function `set_reset_devices':
>>    main.c:(.init.text+0x10): relocation truncated to fit: R_ARM_PC24 against symbol `__gnu_mcount_nc' defined in .text section in arch/arm/kernel/entry-ftrace.o
>>    init/main.o: in function `debug_kernel':
>>    main.c:(.init.text+0x38): relocation truncated to fit: R_ARM_PC24 against symbol `__gnu_mcount_nc' defined in .text section in arch/arm/kernel/entry-ftrace.o
>>    init/main.o: in function `quiet_kernel':
>>    main.c:(.init.text+0x64): additional relocation overflows omitted from the output
>>    arm-linux-gnueabi-ld: drivers/memory/tegra/tegra20-emc.o: in function `tegra_emc_probe':
>>    tegra20-emc.c:(.text+0x14f8): undefined reference to `clk_set_rate_range'
>>    arm-linux-gnueabi-ld: drivers/memory/tegra/tegra30-emc.o: in function `tegra_emc_resume':
>>>> tegra30-emc.c:(.text+0xf8): undefined reference to `clk_rate_exclusive_put'
>>    arm-linux-gnueabi-ld: drivers/memory/tegra/tegra30-emc.o: in function `tegra_emc_suspend':
>>>> tegra30-emc.c:(.text+0x240): undefined reference to `clk_rate_exclusive_get'
>>    arm-linux-gnueabi-ld: drivers/memory/tegra/tegra30-emc.o: in function `tegra_emc_probe':
>>    tegra30-emc.c:(.text+0x2374): undefined reference to `clk_set_rate_range'
>>    arm-linux-gnueabi-ld: drivers/memory/tegra/tegra124-emc.o: in function `tegra_emc_probe':
>>>> tegra124-emc.c:(.text+0x12b0): undefined reference to `clk_set_rate_range'
> 
> This missing clock symbols issue come over and over again for those
> ancient platforms that select CONFIG_HAVE_CLK, but not implement it
> fully. I think the best option will be to disable compile-testing for
> !HAVE_LEGACY_CLK, any objections?
> 

diff --git a/init/Kconfig b/init/Kconfig
index 173a474012d7..42701b04be00 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -131,7 +131,7 @@ config INIT_ENV_ARG_LIMIT

 config COMPILE_TEST
 	bool "Compile also drivers which will not load"
-	depends on HAS_IOMEM
+	depends on HAS_IOMEM && !HAVE_LEGACY_CLK
 	help
 	  Some drivers can be compiled on a different platform than they are
 	  intended to be run on. Despite they cannot be loaded there (or even

  reply	other threads:[~2021-05-22 17:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20 23:07 [PATCH v1 00/13] NVIDIA Tegra memory and power management changes for 5.14 Dmitry Osipenko
2021-05-20 23:07 ` [PATCH v1 01/13] regulator: core: Add regulator_sync_voltage_rdev() Dmitry Osipenko
2021-05-20 23:07 ` [PATCH v1 02/13] soc/tegra: regulators: Bump voltages on system reboot Dmitry Osipenko
2021-05-20 23:07 ` [PATCH v1 03/13] soc/tegra: Add stub for soc_is_tegra() Dmitry Osipenko
2021-05-20 23:07 ` [PATCH v1 04/13] soc/tegra: Add devm_tegra_core_dev_init_opp_table() Dmitry Osipenko
2021-05-20 23:07 ` [PATCH v1 05/13] soc/tegra: fuse: Add stubs needed for compile-testing Dmitry Osipenko
2021-05-20 23:07 ` [PATCH v1 06/13] clk: tegra: " Dmitry Osipenko
2021-05-20 23:07 ` [PATCH v1 07/13] memory: tegra: Fix compilation warnings on 64bit platforms Dmitry Osipenko
2021-05-21 21:19   ` Krzysztof Kozlowski
2021-05-20 23:07 ` [PATCH v1 08/13] memory: tegra: Enable compile testing for all drivers Dmitry Osipenko
2021-05-22 16:39   ` kernel test robot
2021-05-22 17:12     ` Dmitry Osipenko
2021-05-22 17:14       ` Dmitry Osipenko [this message]
2021-05-22 17:43   ` kernel test robot
2021-05-20 23:07 ` [PATCH v1 09/13] memory: tegra20-emc: Use devm_tegra_core_dev_init_opp_table() Dmitry Osipenko
2021-05-21 21:22   ` Krzysztof Kozlowski
2021-05-20 23:07 ` [PATCH v1 10/13] memory: tegra30-emc: " Dmitry Osipenko
2021-05-21 21:23   ` Krzysztof Kozlowski
2021-05-20 23:07 ` [PATCH v1 11/13] dt-bindings: soc: tegra-pmc: Document core power domain Dmitry Osipenko
2021-05-20 23:07 ` [PATCH v1 12/13] soc/tegra: pmc: Add " Dmitry Osipenko
2021-05-20 23:07 ` [PATCH v1 13/13] soc/tegra: regulators: Support core domain state syncing Dmitry Osipenko

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=09fea79d-44eb-62ea-4788-9aee4359e8e9@gmail.com \
    --to=digetx@gmail.com \
    --cc=kbuild-all@lists.01.org \
    /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.