* Re: [PATCH v4 2/2] Allow for riscv-clock to pick up mmio address.
[not found] <20250514-riscv-time-mmio-v4-2-cb0cf2922d66@htecgroup.com>
@ 2025-05-15 1:20 ` kernel test robot
2025-05-20 0:40 ` kernel test robot
1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-05-15 1:20 UTC (permalink / raw)
To: Aleksa Paunovic via B4 Relay, Daniel Lezcano, Thomas Gleixner,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti
Cc: oe-kbuild-all, linux-kernel, devicetree, linux-riscv,
Djordje Todorovic, Aleksa Paunovic
Hi Aleksa,
kernel test robot noticed the following build errors:
[auto build test ERROR on 9c32cda43eb78f78c73aee4aa344b777714e259b]
url: https://github.com/intel-lab-lkp/linux/commits/Aleksa-Paunovic-via-B4-Relay/dt-bindings-timer-mti-gcru/20250514-165347
base: 9c32cda43eb78f78c73aee4aa344b777714e259b
patch link: https://lore.kernel.org/r/20250514-riscv-time-mmio-v4-2-cb0cf2922d66%40htecgroup.com
patch subject: [PATCH v4 2/2] Allow for riscv-clock to pick up mmio address.
config: riscv-randconfig-001-20250515 (https://download.01.org/0day-ci/archive/20250515/202505150913.Iq1XRKqC-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250515/202505150913.Iq1XRKqC-lkp@intel.com/reproduce)
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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505150913.Iq1XRKqC-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/timex.h:67,
from include/linux/time32.h:13,
from include/linux/time.h:60,
from include/linux/jiffies.h:10,
from include/linux/ktime.h:25,
from include/linux/timer.h:6,
from include/linux/uprobes.h:18,
from include/linux/mm_types.h:16,
from include/linux/mmzone.h:22,
from include/linux/gfp.h:7,
from include/linux/mm.h:7,
from arch/riscv/kernel/asm-offsets.c:8:
arch/riscv/include/asm/timex.h: In function 'random_get_entropy':
>> arch/riscv/include/asm/timex.h:39:9: error: implicit declaration of function 'get_cycles'; did you mean 'get_cycles_ptr'? [-Werror=implicit-function-declaration]
return get_cycles();
^~~~~~~~~~
get_cycles_ptr
arch/riscv/include/asm/timex.h: In function 'get_cycles64':
>> arch/riscv/include/asm/timex.h:45:23: error: implicit declaration of function 'get_cycles_ptr_hi'; did you mean 'get_cycles_ptr'? [-Werror=implicit-function-declaration]
#define get_cycles_hi get_cycles_ptr_hi
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/timex.h:58:8: note: in expansion of macro 'get_cycles_hi'
hi = get_cycles_hi();
^~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:98: arch/riscv/kernel/asm-offsets.s] Error 1 shuffle=2386734513
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1282: prepare0] Error 2 shuffle=2386734513
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=2386734513
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2 shuffle=2386734513
make: Target 'prepare' not remade because of errors.
vim +39 arch/riscv/include/asm/timex.h
d5be89a8d118a8 Palmer Dabbelt 2020-09-14 29
aa9887608e77b8 Anup Patel 2020-09-27 30 /*
aa9887608e77b8 Anup Patel 2020-09-27 31 * Much like MIPS, we may not have a viable counter to use at an early point
aa9887608e77b8 Anup Patel 2020-09-27 32 * in the boot process. Unfortunately we don't have a fallback, so instead
aa9887608e77b8 Anup Patel 2020-09-27 33 * we just return 0.
aa9887608e77b8 Anup Patel 2020-09-27 34 */
aa9887608e77b8 Anup Patel 2020-09-27 35 static inline unsigned long random_get_entropy(void)
aa9887608e77b8 Anup Patel 2020-09-27 36 {
aa9887608e77b8 Anup Patel 2020-09-27 37 if (unlikely(clint_time_val == NULL))
6d01238623faa9 Jason A. Donenfeld 2022-04-08 38 return random_get_entropy_fallback();
aa9887608e77b8 Anup Patel 2020-09-27 @39 return get_cycles();
aa9887608e77b8 Anup Patel 2020-09-27 40 }
aa9887608e77b8 Anup Patel 2020-09-27 41 #define random_get_entropy() random_get_entropy()
7eeda0113dff84 Aleksa Paunovic 2025-05-14 42 #endif
aa9887608e77b8 Anup Patel 2020-09-27 43
7eeda0113dff84 Aleksa Paunovic 2025-05-14 44 #define get_cycles get_cycles_ptr
7eeda0113dff84 Aleksa Paunovic 2025-05-14 @45 #define get_cycles_hi get_cycles_ptr_hi
ccbbfd1cbf365b Palmer Dabbelt 2020-11-25 46
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v4 2/2] Allow for riscv-clock to pick up mmio address.
[not found] <20250514-riscv-time-mmio-v4-2-cb0cf2922d66@htecgroup.com>
2025-05-15 1:20 ` [PATCH v4 2/2] Allow for riscv-clock to pick up mmio address kernel test robot
@ 2025-05-20 0:40 ` kernel test robot
1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-05-20 0:40 UTC (permalink / raw)
To: Aleksa Paunovic via B4 Relay, Daniel Lezcano, Thomas Gleixner,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti
Cc: oe-kbuild-all, linux-kernel, devicetree, linux-riscv,
Djordje Todorovic, Aleksa Paunovic
Hi Aleksa,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 9c32cda43eb78f78c73aee4aa344b777714e259b]
url: https://github.com/intel-lab-lkp/linux/commits/Aleksa-Paunovic-via-B4-Relay/dt-bindings-timer-mti-gcru/20250514-165347
base: 9c32cda43eb78f78c73aee4aa344b777714e259b
patch link: https://lore.kernel.org/r/20250514-riscv-time-mmio-v4-2-cb0cf2922d66%40htecgroup.com
patch subject: [PATCH v4 2/2] Allow for riscv-clock to pick up mmio address.
config: riscv-randconfig-r121-20250520 (https://download.01.org/0day-ci/archive/20250520/202505200822.Av88hkk5-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce: (https://download.01.org/0day-ci/archive/20250520/202505200822.Av88hkk5-lkp@intel.com/reproduce)
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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505200822.Av88hkk5-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
WARNING: invalid argument to '-march': '_zabha'
>> drivers/clocksource/timer-riscv.c:58:16: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/clocksource/timer-riscv.c:58:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got unsigned int [usertype] * @@
drivers/clocksource/timer-riscv.c:58:16: sparse: expected void const volatile [noderef] __iomem *addr
drivers/clocksource/timer-riscv.c:58:16: sparse: got unsigned int [usertype] *
vim +/__iomem +58 drivers/clocksource/timer-riscv.c
55
56 static u32 __maybe_unused mmio_get_cycles_hi(void)
57 {
> 58 return readl_relaxed(((u32 *)riscv_time_val) + 1);
59 }
60
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-20 0:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20250514-riscv-time-mmio-v4-2-cb0cf2922d66@htecgroup.com>
2025-05-15 1:20 ` [PATCH v4 2/2] Allow for riscv-clock to pick up mmio address kernel test robot
2025-05-20 0:40 ` kernel test robot
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).