mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
rpmsg: glink: Guard qcom_glink_ssr_notify() with correct config
The qcom_glink_ssr_notify() function doesn't relate to the SMEM specific GLINK config, but the common RPMSG_QCOM_GLINK config. Update the guard to properly reflect this. Reviewed-by: Alex Elder <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
This commit is contained in:
1 parent
df2f392c61
commit
8527efc59d
1 file changed
+6
-2
@@ -7,12 +7,17 @@
|
||||
|
||||
struct qcom_glink;
|
||||
|
||||
#if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK)
|
||||
void qcom_glink_ssr_notify(const char *ssr_name);
|
||||
#else
|
||||
static inline void qcom_glink_ssr_notify(const char *ssr_name) {}
|
||||
#endif
|
||||
|
||||
#if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SMEM)
|
||||
|
||||
struct qcom_glink *qcom_glink_smem_register(struct device *parent,
|
||||
struct device_node *node);
|
||||
void qcom_glink_smem_unregister(struct qcom_glink *glink);
|
||||
void qcom_glink_ssr_notify(const char *ssr_name);
|
||||
|
||||
#else
|
||||
|
||||
@@ -24,7 +29,6 @@ qcom_glink_smem_register(struct device *parent,
|
||||
}
|
||||
|
||||
static inline void qcom_glink_smem_unregister(struct qcom_glink *glink) {}
|
||||
static inline void qcom_glink_ssr_notify(const char *ssr_name) {}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user