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
Hi liuyun,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 19640fb08a2ccfb131121859517dfdbc6a04ccb6
commit: 47a0b6f372d7f05822d021f86b21a34fd2142225 [1466/1466] cpufreq: Add cpufreq driver for LoongArch
config: loongarch-randconfig-001-20241114 (https://download.01.org/0day-ci/archive/20241114/202411140232.Npxt3xRi-lkp@…)
compiler: loongarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411140232.Npxt3xRi-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/202411140232.Npxt3xRi-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/cpufreq/loongson3-acpi-cpufreq.c:645:5: warning: no previous prototype for 'loongson3_set_mode' [-Wmissing-prototypes]
645 | int loongson3_set_mode(int mode, int freq_level)
| ^~~~~~~~~~~~~~~~~~
drivers/cpufreq/loongson3-acpi-cpufreq.c:835:14: warning: no previous prototype for 'load_update' [-Wmissing-prototypes]
835 | unsigned int load_update(struct core_data *core)
| ^~~~~~~~~~~
drivers/cpufreq/loongson3-acpi-cpufreq.c:1520:36: warning: 'processor_device_ids' defined but not used [-Wunused-const-variable=]
1520 | static const struct acpi_device_id processor_device_ids[] = {
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/cpufreq/loongson3-acpi-cpufreq.c:89:12: warning: 'lasx_count_threshold' defined but not used [-Wunused-variable]
89 | static int lasx_count_threshold = 200;
| ^~~~~~~~~~~~~~~~~~~~
vim +/lasx_count_threshold +89 drivers/cpufreq/loongson3-acpi-cpufreq.c
85
86 /* threshold of core's get into msa */
87 static int msa_count_threshold = 200;
88 /* threshold of core's get into lasx */
> 89 static int lasx_count_threshold = 200;
90 /* other cores' upper load threshold when 1 core get into boost mode and enable msa/lasx */
91 static int load_threshold = 60;
92
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki