[PATCH] reset: ti-sci: honor TI_SCI_PROTOCOL setting when not COMPILE_TEST

Philipp Zabel p.zabel at pengutronix.de
Tue Jan 3 02:51:20 PST 2023


On Sa, 2022-10-29 at 22:56 -0700, Randy Dunlap wrote:
> There is a build error when COMPILE_TEST=y, TI_SCI_PROTOCOL=m,
> and RESET_TI_SCI=y:
> 
> drivers/reset/reset-ti-sci.o: in function `ti_sci_reset_probe':
> reset-ti-sci.c:(.text+0x22c): undefined reference to `devm_ti_sci_get_handle'
> 
> Fix this by making RESET_TI_SCI honor the Kconfig setting of
> TI_SCI_PROTOCOL when COMPILE_TEST is not set. When COMPILE_TEST is set,
> TI_SCI_PROTOCOL must be disabled (=n).
> 
> Fixes: a6af504184c9 ("reset: ti-sci: Allow building under COMPILE_TEST")
> Signed-off-by: Randy Dunlap <rdunlap at infradead.org>
> Reported-by: kernel test robot <lkp at intel.com>
> Cc: Nishanth Menon <nm at ti.com>
> Cc: Tero Kristo <kristo at kernel.org>
> Cc: Santosh Shilimkar <ssantosh at kernel.org>
> Cc: linux-arm-kernel at lists.infradead.org
> Cc: Philipp Zabel <p.zabel at pengutronix.de>

Thank you, applied to reset/fixes.

regards
Philipp



More information about the linux-arm-kernel mailing list