]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: RIMT: Fix unused function warnings when CONFIG_IOMMU_API is disabled
authorSunil V L <sunilvl@ventanamicro.com>
Mon, 13 Oct 2025 18:19:47 +0000 (23:49 +0530)
committerPaul Walmsley <pjw@kernel.org>
Sat, 18 Oct 2025 03:45:08 +0000 (21:45 -0600)
commite7b969cbe302d49032d4c2bb36c57c9c623ebfdc
tree89eef31cf513a3385f01ac683831496708f8d02b
parentca525d53f994d45c8140968b571372c45f555ac1
ACPI: RIMT: Fix unused function warnings when CONFIG_IOMMU_API is disabled

When CONFIG_IOMMU_API is disabled, some functions defined outside its
conditional scope become unused, triggering compiler warnings reported
by the kernel test robot.

Move these function definitions inside the #ifdef CONFIG_IOMMU_API block
to prevent unused function warnings when the configuration is disabled.

Fixes: 8f7729552582 ("ACPI: RISC-V: Add support for RIMT")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202509280031.8Sjkr4bh-lkp@intel.com/
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Link: https://lore.kernel.org/r/20251013181947.261759-1-sunilvl@ventanamicro.com
drivers/acpi/riscv/rimt.c