Skip to contentSkip to conversation

linux-next: build failure after merge of the arm64 tree

DISCUSSION Stephen Rothwell 2 participants 3 messages Nov 21, 2022 – Nov 22, 2022 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the arm64 tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/perf/amlogic/meson_g12_ddr_pmu.c: In function 'dmc_g12_get_freq_quick':
drivers/perf/amlogic/meson_g12_ddr_pmu.c:135:15: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration]

  135 |         val = readl(info->pll_reg);
      |               ^~~~~
drivers/perf/amlogic/meson_g12_ddr_pmu.c: In function 'dmc_g12_counter_enable':
drivers/perf/amlogic/meson_g12_ddr_pmu.c:204:9: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration]
  204 |         writel(clock_count, info->ddr_reg[0] + DMC_MON_G12_TIMER);
      |         ^~~~~~

Caused by commit

2016e2113d35 ("perf/amlogic: Add support for Amlogic meson G12 SoC DDR PMU driver")

I have used the arm64 tree from next-20221121 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen,

Could you please share your compiler information, commit id and other

environments info for me to reproduce the building error?

Thanks,

Jiucheng

Quoted 20 lines · Stephen Rothwell

Hi all,

After merging the arm64 tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/perf/amlogic/meson_g12_ddr_pmu.c: In function 'dmc_g12_get_freq_quick':
drivers/perf/amlogic/meson_g12_ddr_pmu.c:135:15: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration]

   135 |         val = readl(info->pll_reg);
       |               ^~~~~
drivers/perf/amlogic/meson_g12_ddr_pmu.c: In function 'dmc_g12_counter_enable':
drivers/perf/amlogic/meson_g12_ddr_pmu.c:204:9: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration]
   204 |         writel(clock_count, info->ddr_reg[0] + DMC_MON_G12_TIMER);
       |         ^~~~~~

Caused by commit

2016e2113d35 ("perf/amlogic: Add support for Amlogic meson G12 SoC DDR PMU driver")

I have used the arm64 tree from next-20221121 for today.

Signature · 2 lines
Thanks,
Jiucheng
#2 lore raw

Hi,

Quoted 4 lines · On Tue, 22 Nov 2022 12:17:24 +0800 Jiucheng Xu <[email protected]> wrote:

Could you please share your compiler information, commit id and other

environments info for me to reproduce the building error?

$ x86_64-linux-gnu-gcc --version
x86_64-linux-gnu-gcc (Debian 12.2.0-3) 12.2.0

The head of the arm64 tree that I merged was

27131b99f024 ("Merge branches 'for-next/acpi', 'for-next/asm-const', 'for-next/cpufeature', 'for-next/dynamic-scs', 'for-next/errata', 'for-next/fpsimd', 'for-next/insn', 'for-next/kbuild', 'for-next/kdump', 'for-next/mm', 'for-next/perf', 'for-next/selftests', 'for-next/stacks', 'for-next/trivial', 'for-next/uaccess' and 'for-next/undef-traps' into for-next/core")

This is a cross build, host ppc64le, target x86_64 allmodconfig.

drivers/perf/amlogic/meson_g12_ddr_pmu.c needs to include linux/io.h (and your test builds probably got it (or asm/io.h) via some other include file).

Signature · 2 lines
Cheers,
Stephen Rothwell