bus: firewall: Fix missing static inline annotations for stubs
Stubs in the header file for !CONFIG_STM32_FIREWALL case should be both
static and inline, because they do not come with earlier declaration and
should be inlined in every unit including the header.
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: stable@vger.kernel.org
Fixes: 5c9668cfc6 ("firewall: introduce stm32_firewall framework")
Link: https://lore.kernel.org/r/20250507092121.95121-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
pull/1253/head
parent
59e9910e8e
commit
66db876162
|
|
@ -114,27 +114,30 @@ void stm32_firewall_release_access_by_id(struct stm32_firewall *firewall, u32 su
|
||||||
|
|
||||||
#else /* CONFIG_STM32_FIREWALL */
|
#else /* CONFIG_STM32_FIREWALL */
|
||||||
|
|
||||||
int stm32_firewall_get_firewall(struct device_node *np, struct stm32_firewall *firewall,
|
static inline int stm32_firewall_get_firewall(struct device_node *np,
|
||||||
unsigned int nb_firewall)
|
struct stm32_firewall *firewall,
|
||||||
|
unsigned int nb_firewall)
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
int stm32_firewall_grant_access(struct stm32_firewall *firewall)
|
static inline int stm32_firewall_grant_access(struct stm32_firewall *firewall)
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
void stm32_firewall_release_access(struct stm32_firewall *firewall)
|
static inline void stm32_firewall_release_access(struct stm32_firewall *firewall)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int stm32_firewall_grant_access_by_id(struct stm32_firewall *firewall, u32 subsystem_id)
|
static inline int stm32_firewall_grant_access_by_id(struct stm32_firewall *firewall,
|
||||||
|
u32 subsystem_id)
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
void stm32_firewall_release_access_by_id(struct stm32_firewall *firewall, u32 subsystem_id)
|
static inline void stm32_firewall_release_access_by_id(struct stm32_firewall *firewall,
|
||||||
|
u32 subsystem_id)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue