]> git.baikalelectronics.ru Git - kernel.git/commitdiff
clocksource: clint: Export clint_time_val for modules
authorPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 30 Sep 2020 06:48:47 +0000 (23:48 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 30 Sep 2020 06:55:27 +0000 (23:55 -0700)
clint_time_val will soon be used by the RISC-V implementation of
random_get_entropy(), which is a static inline function that may be used by
modules (at least CRYPTO_JITTERENTROPY=m).

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
drivers/clocksource/timer-clint.c

index d17367dee02cce35acf23fa5d040887ff7ea0802..6cfe2ab73eb0ccbd1bc4a8133c418de39373f7d2 100644 (file)
@@ -38,6 +38,7 @@ static unsigned int clint_timer_irq;
 
 #ifdef CONFIG_RISCV_M_MODE
 u64 __iomem *clint_time_val;
+EXPORT_SYMBOL(clint_time_val);
 #endif
 
 static void clint_send_ipi(const struct cpumask *target)