Hi Yury,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 19640fb08a2ccfb131121859517dfdbc6a04ccb6
commit: 7de3ab4c3dd938fae3626a6344830b018eb7ba4f [1466/1466] arm64: introduce binfmt_elf32.c
config: arm64-randconfig-004-20241114 (https://download.01.org/0day-ci/archive/20241114/202411140707.rcVJtgbT-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411140707.rcVJtgbT-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411140707.rcVJtgbT-lkp@intel.com/
All errors (new ones prefixed by >>):
aarch64-linux-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-ld: arch/arm64/kernel/binfmt_elf32.o: in function `load_elf_interp':
>> binfmt_elf32.c:(.text+0xb58): undefined reference to `arch_elf_adjust_prot'
aarch64-linux-ld: arch/arm64/kernel/binfmt_elf32.o: in function `load_elf_binary':
binfmt_elf32.c:(.text+0x2044): undefined reference to `arch_elf_adjust_prot'
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: a81d020c58c2c6a55ebaf15846470a9ecb69bd1a
commit: e8cb8c21cc35fb408033a4ef28e4d3fc73a72854 [1291/1291] sdei_watchdog: set secure timer period base on 'watchdog_thresh'
config: arm64-randconfig-004-20241113 (https://download.01.org/0day-ci/archive/20241114/202411140624.vSku6pi5-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411140624.vSku6pi5-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411140624.vSku6pi5-lkp@intel.com/
Note: the openeuler/openEuler-1.0-LTS HEAD a81d020c58c2c6a55ebaf15846470a9ecb69bd1a builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from arch/arm64/kernel/watchdog_sdei.c:17:
include/linux/nmi.h: In function 'touch_nmi_watchdog':
include/linux/nmi.h:141:9: error: implicit declaration of function 'arch_touch_nmi_watchdog'; did you mean 'touch_nmi_watchdog'? [-Werror=implicit-function-declaration]
141 | arch_touch_nmi_watchdog();
| ^~~~~~~~~~~~~~~~~~~~~~~
| touch_nmi_watchdog
arch/arm64/kernel/watchdog_sdei.c: In function 'watchdog_nmi_enable':
>> arch/arm64/kernel/watchdog_sdei.c:37:42: error: 'watchdog_thresh' undeclared (first use in this function); did you mean 'proc_watchdog_thresh'?
37 | sdei_api_set_secure_timer_period(watchdog_thresh);
| ^~~~~~~~~~~~~~~
| proc_watchdog_thresh
arch/arm64/kernel/watchdog_sdei.c:37:42: note: each undeclared identifier is reported only once for each function it appears in
arch/arm64/kernel/watchdog_sdei.c: In function 'sdei_watchdog_callback':
arch/arm64/kernel/watchdog_sdei.c:65:9: error: implicit declaration of function 'watchdog_hardlockup_check' [-Werror=implicit-function-declaration]
65 | watchdog_hardlockup_check(regs);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/watchdog_sdei.c: In function 'watchdog_nmi_probe':
arch/arm64/kernel/watchdog_sdei.c:117:46: error: 'watchdog_thresh' undeclared (first use in this function); did you mean 'proc_watchdog_thresh'?
117 | if (sdei_api_set_secure_timer_period(watchdog_thresh)) {
| ^~~~~~~~~~~~~~~
| proc_watchdog_thresh
cc1: some warnings being treated as errors
vim +37 arch/arm64/kernel/watchdog_sdei.c
10
11 #include <asm/irq_regs.h>
12 #include <asm/kvm_hyp.h>
13 #include <asm/smp_plat.h>
14 #include <asm/sdei.h>
15 #include <asm/virt.h>
16 #include <linux/arm_sdei.h>
> 17 #include <linux/nmi.h>
18
19 /* We use the secure physical timer as SDEI NMI watchdog timer */
20 #define SDEI_NMI_WATCHDOG_HWIRQ 29
21
22 static int sdei_watchdog_event_num;
23 static bool disable_sdei_nmi_watchdog;
24 static bool sdei_watchdog_registered;
25
26 int watchdog_nmi_enable(unsigned int cpu)
27 {
28 int ret;
29
30 if (!sdei_watchdog_registered)
31 return -EINVAL;
32
33 #ifdef CONFIG_HARDLOCKUP_CHECK_TIMESTAMP
34 refresh_hld_last_timestamp();
35 #endif
36
> 37 sdei_api_set_secure_timer_period(watchdog_thresh);
38
39 ret = sdei_api_event_enable(sdei_watchdog_event_num);
40 if (ret) {
41 pr_err("Enable NMI Watchdog failed on cpu%d\n",
42 smp_processor_id());
43 return ret;
44 }
45
46 return 0;
47 }
48
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: a81d020c58c2c6a55ebaf15846470a9ecb69bd1a
commit: 1ce24a39db64afc5041e3a32893f3e5f1f5d4b9d [1294/1294] rtc: add rtc drivers for Phytium SOCs
config: arm64-randconfig-002-20241114 (https://download.01.org/0day-ci/archive/20241114/202411140519.n2BlgtJC-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411140519.n2BlgtJC-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411140519.n2BlgtJC-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/rtc/rtc-phytium.c: In function 'phytium_rtc_read_time':
drivers/rtc/rtc-phytium.c:65:23: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
65 | unsigned long tmp = 0;
| ^~~
drivers/rtc/rtc-phytium.c: In function 'phytium_rtc_set_mmss':
drivers/rtc/rtc-phytium.c:85:23: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
85 | unsigned long tmp = 0;
| ^~~
drivers/rtc/rtc-phytium.c:84:23: warning: variable 'counter' set but not used [-Wunused-but-set-variable]
84 | unsigned long counter = 0;
| ^~~~~~~
drivers/rtc/rtc-phytium.c: In function 'phytium_rtc_set_alarm':
drivers/rtc/rtc-phytium.c:139:23: warning: variable 'rtc_time' set but not used [-Wunused-but-set-variable]
139 | unsigned long rtc_time;
| ^~~~~~~~
drivers/rtc/rtc-phytium.c: At top level:
>> drivers/rtc/rtc-phytium.c:129:12: warning: 'phytium_rtc_alarm_irq_enabled' defined but not used [-Wunused-function]
129 | static int phytium_rtc_alarm_irq_enabled(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/atomic.h:34,
from include/linux/atomic.h:7,
from include/asm-generic/bitops/atomic.h:5,
from arch/arm64/include/asm/bitops.h:37,
from include/linux/bitops.h:20,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:10,
from drivers/rtc/rtc-phytium.c:18:
In function '__cmpxchg_case_acq_4',
inlined from '__cmpxchg_acq' at arch/arm64/include/asm/cmpxchg.h:141:1,
inlined from 'queued_spin_lock' at include/asm-generic/qspinlock.h:85:8,
inlined from 'do_raw_spin_lock' at include/linux/spinlock.h:180:2,
inlined from '__raw_spin_lock' at include/linux/spinlock_api_smp.h:143:2,
inlined from 'spin_lock' at include/linux/spinlock.h:329:2,
inlined from 'phytium_rtc_set_mmss' at drivers/rtc/rtc-phytium.c:87:2:
arch/arm64/include/asm/atomic_lse.h:492:9: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'spinlock_t[1]' {aka 'struct spinlock[1]'} [-Warray-bounds=]
492 | asm volatile( \
| ^~~
arch/arm64/include/asm/atomic_lse.h:515:1: note: in expansion of macro '__CMPXCHG_CASE'
515 | __CMPXCHG_CASE(w, , acq_4, a, "memory")
| ^~~~~~~~~~~~~~
drivers/rtc/rtc-phytium.c: In function 'phytium_rtc_set_mmss':
drivers/rtc/rtc-phytium.c:48:12: note: object 'spinlock_phytium_rtc' of size 4
48 | spinlock_t spinlock_phytium_rtc;
| ^~~~~~~~~~~~~~~~~~~~
In function '__cmpxchg_case_acq_4',
inlined from '__cmpxchg_acq' at arch/arm64/include/asm/cmpxchg.h:141:1,
inlined from 'queued_spin_lock' at include/asm-generic/qspinlock.h:85:8,
inlined from 'do_raw_spin_lock' at include/linux/spinlock.h:180:2,
inlined from '__raw_spin_lock' at include/linux/spinlock_api_smp.h:143:2,
inlined from 'spin_lock' at include/linux/spinlock.h:329:2,
inlined from 'phytium_rtc_set_mmss' at drivers/rtc/rtc-phytium.c:87:2:
arch/arm64/include/asm/atomic_lse.h:492:9: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'spinlock_t[1]' {aka 'struct spinlock[1]'} [-Warray-bounds=]
492 | asm volatile( \
| ^~~
arch/arm64/include/asm/atomic_lse.h:515:1: note: in expansion of macro '__CMPXCHG_CASE'
515 | __CMPXCHG_CASE(w, , acq_4, a, "memory")
| ^~~~~~~~~~~~~~
drivers/rtc/rtc-phytium.c: In function 'phytium_rtc_set_mmss':
drivers/rtc/rtc-phytium.c:48:12: note: object 'spinlock_phytium_rtc' of size 4
48 | spinlock_t spinlock_phytium_rtc;
| ^~~~~~~~~~~~~~~~~~~~
In function '__cmpxchg_case_acq_4',
inlined from '__cmpxchg_acq' at arch/arm64/include/asm/cmpxchg.h:141:1,
inlined from 'queued_spin_lock' at include/asm-generic/qspinlock.h:85:8,
inlined from 'do_raw_spin_lock' at include/linux/spinlock.h:180:2,
inlined from '__raw_spin_lock' at include/linux/spinlock_api_smp.h:143:2,
inlined from 'spin_lock' at include/linux/spinlock.h:329:2,
inlined from 'phytium_rtc_read_time' at drivers/rtc/rtc-phytium.c:67:2:
arch/arm64/include/asm/atomic_lse.h:492:9: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'spinlock_t[1]' {aka 'struct spinlock[1]'} [-Warray-bounds=]
492 | asm volatile( \
| ^~~
arch/arm64/include/asm/atomic_lse.h:515:1: note: in expansion of macro '__CMPXCHG_CASE'
515 | __CMPXCHG_CASE(w, , acq_4, a, "memory")
| ^~~~~~~~~~~~~~
drivers/rtc/rtc-phytium.c: In function 'phytium_rtc_read_time':
drivers/rtc/rtc-phytium.c:48:12: note: object 'spinlock_phytium_rtc' of size 4
48 | spinlock_t spinlock_phytium_rtc;
| ^~~~~~~~~~~~~~~~~~~~
In function '__cmpxchg_case_acq_4',
inlined from '__cmpxchg_acq' at arch/arm64/include/asm/cmpxchg.h:141:1,
inlined from 'queued_spin_lock' at include/asm-generic/qspinlock.h:85:8,
inlined from 'do_raw_spin_lock' at include/linux/spinlock.h:180:2,
inlined from '__raw_spin_lock' at include/linux/spinlock_api_smp.h:143:2,
inlined from 'spin_lock' at include/linux/spinlock.h:329:2,
inlined from 'phytium_rtc_read_time' at drivers/rtc/rtc-phytium.c:67:2:
arch/arm64/include/asm/atomic_lse.h:492:9: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'spinlock_t[1]' {aka 'struct spinlock[1]'} [-Warray-bounds=]
492 | asm volatile( \
| ^~~
arch/arm64/include/asm/atomic_lse.h:515:1: note: in expansion of macro '__CMPXCHG_CASE'
515 | __CMPXCHG_CASE(w, , acq_4, a, "memory")
| ^~~~~~~~~~~~~~
drivers/rtc/rtc-phytium.c: In function 'phytium_rtc_read_time':
drivers/rtc/rtc-phytium.c:48:12: note: object 'spinlock_phytium_rtc' of size 4
48 | spinlock_t spinlock_phytium_rtc;
| ^~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HARDLOCKUP_DETECTOR
Depends on [n]: DEBUG_KERNEL [=n] && !S390 && (HAVE_HARDLOCKUP_DETECTOR_PERF [=n] || HAVE_HARDLOCKUP_DETECTOR_ARCH [=y])
Selected by [y]:
- SDEI_WATCHDOG [=y] && <choice> && ARM_SDE_INTERFACE [=y] && !HARDLOCKUP_CHECK_TIMESTAMP [=n]
vim +/phytium_rtc_alarm_irq_enabled +129 drivers/rtc/rtc-phytium.c
128
> 129 static int phytium_rtc_alarm_irq_enabled(struct device *dev)
130 {
131 struct phytium_rtc_dev *pdata = dev_get_drvdata(dev);
132
133 return readl(pdata->csr_base + RTC_CCR) & RTC_CCR_IE ? 1 : 0;
134 }
135
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Malloy,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: a81d020c58c2c6a55ebaf15846470a9ecb69bd1a
commit: e8483fcd43fc1dbb8d21bb7eacce804cbab6a7c6 [1294/1294] spi: add phytium spi support
config: arm64-randconfig-002-20241114 (https://download.01.org/0day-ci/archive/20241114/202411140310.Hie7iwxT-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411140310.Hie7iwxT-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411140310.Hie7iwxT-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/spi/spi-phytium-plat.c:192:36: warning: 'phytium_spi_acpi_match' defined but not used [-Wunused-const-variable=]
192 | static const struct acpi_device_id phytium_spi_acpi_match[] = {
| ^~~~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HARDLOCKUP_DETECTOR
Depends on [n]: DEBUG_KERNEL [=n] && !S390 && (HAVE_HARDLOCKUP_DETECTOR_PERF [=n] || HAVE_HARDLOCKUP_DETECTOR_ARCH [=y])
Selected by [y]:
- SDEI_WATCHDOG [=y] && <choice> && ARM_SDE_INTERFACE [=y] && !HARDLOCKUP_CHECK_TIMESTAMP [=n]
vim +/phytium_spi_acpi_match +192 drivers/spi/spi-phytium-plat.c
191
> 192 static const struct acpi_device_id phytium_spi_acpi_match[] = {
193 {"PHYT000E", 0},
194 {}
195 };
196 MODULE_DEVICE_TABLE(acpi, phytium_spi_acpi_match);
197
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki