Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

firmware: exynos-acpm: add empty method to allow compile test

Provide empty method for devm_acpm_get_by_node() if we aren't
building in the CONFIG_EXYNOS_ACPM_PROTOCOL. This allows to
test-build the CONFIG_EXYNOS_ACPM_CLK code.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202510211905.RgfWkgss-lkp@intel.com/
Fixes: 40498a742053 ("clk: samsung: add Exynos ACPM clock driver")
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://patch.msgid.link/20251021-fix-acpm-clk-build-test-v1-1-236a3d6db7f5@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

authored by

Tudor Ambarus and committed by
Krzysztof Kozlowski
6837c006 ad97aba3

+9
+9
include/linux/firmware/samsung/exynos-acpm-protocol.h
··· 55 55 56 56 struct device; 57 57 58 + #if IS_ENABLED(CONFIG_EXYNOS_ACPM_PROTOCOL) 58 59 const struct acpm_handle *devm_acpm_get_by_node(struct device *dev, 59 60 struct device_node *np); 61 + #else 62 + 63 + static inline const struct acpm_handle *devm_acpm_get_by_node(struct device *dev, 64 + struct device_node *np) 65 + { 66 + return NULL; 67 + } 68 + #endif 60 69 61 70 #endif /* __EXYNOS_ACPM_PROTOCOL_H */