diff mbox series

[5.10.y-cip] cache: Kconfig: Add dependency for RISCV on AX45MP_L2_CACHE config

Message ID 20240212121914.38493-1-prabhakar.mahadev-lad.rj@bp.renesas.com (mailing list archive)
State New
Headers show
Series [5.10.y-cip] cache: Kconfig: Add dependency for RISCV on AX45MP_L2_CACHE config | expand

Commit Message

Lad Prabhakar Feb. 12, 2024, 12:19 p.m. UTC
csr_write() is available only for RISC-V which caused build issues with
randconfig for ax45mp_cache.c. To avoid this issue add a RISCV dependency
on AX45MP_L2_CACHE config.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202402101256.mOmaXuSb-lkp@intel.com/
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 drivers/cache/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Pavel Machek Feb. 13, 2024, 8:32 a.m. UTC | #1
Hi!

> csr_write() is available only for RISC-V which caused build issues with
> randconfig for ax45mp_cache.c. To avoid this issue add a RISCV dependency
> on AX45MP_L2_CACHE config.

Looks good to me, thanks. I will apply it soon if it passes testing
and if there are no other comments.

Best regards,
								Pavel
Pavel Machek Feb. 13, 2024, 12:56 p.m. UTC | #2
Hi!

> csr_write() is available only for RISC-V which caused build issues with
> randconfig for ax45mp_cache.c. To avoid this issue add a RISCV dependency
> on AX45MP_L2_CACHE config.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202402101256.mOmaXuSb-lkp@intel.com/
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Thank you, applied.

Best regards,
								Pavel
diff mbox series

Patch

diff --git a/drivers/cache/Kconfig b/drivers/cache/Kconfig
index 400cb09f6bd4..aacc36685945 100644
--- a/drivers/cache/Kconfig
+++ b/drivers/cache/Kconfig
@@ -3,6 +3,7 @@  menu "Cache Drivers"
 
 config AX45MP_L2_CACHE
 	bool "Andes Technology AX45MP L2 Cache controller"
+	depends on RISCV
 	select ARCH_HAS_SYNC_DMA_FOR_CPU
 	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
 	select ARCH_HAS_SETUP_DMA_OPS