On 12.03.2025 05:06, Penny Zheng wrote: > @@ -601,10 +603,17 @@ static inline int xsm_resource_setup_misc(xsm_default_t > def) > return alternative_call(xsm_ops.resource_setup_misc); > } > > +#ifdef CONFIG_SYSCTL > static inline int xsm_page_offline(xsm_default_t def, uint32_t cmd) > { > return alternative_call(xsm_ops.page_offline, cmd); > } > +#else > +static inline int xsm_page_offline(xsm_default_t def, uint32_t cmd) > +{ > + return -EOPNOTSUPP; > +} > +#endif
As before: Less redundancy would result by placing the #ifdef inside the function body. Jan