Re: [PATCH v3 2/7] power: reset: Introduce PSCR Recording Framework for Non-Volatile Storage
From: Oleksij Rempel
Date: Wed Mar 05 2025 - 04:51:25 EST
On Tue, Mar 04, 2025 at 02:24:28PM +0100, Oleksij Rempel wrote:
> +/**
> + * set_power_state_change_reason - Record reason for next reboot/shutdown
> + * @reason: The enumerated reason code to record
> + *
> + * Other drivers (e.g. regulator, thermal) call this whenever they detect
> + * a condition that may lead to or cause a reboot.
> + */
> +void set_power_state_change_reason(enum pscr_reason reason);
this declaration should be removed, otherwise it fails on disabled
CONFIG_PSCRR.
...
> +#if IS_ENABLED(CONFIG_PSCRR)
> +
> +void set_power_state_change_reason(enum pscr_reason pscr);
> +
> +#else
> +
> +static inline void set_power_state_change_reason(enum pscr_reason pscr)
> +{
> +}
> +#endif
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |