Commit 5d5583d0 authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by Greg Kroah-Hartman

staging: ccree: make stub function static inline

The debugfs interface defines stub function if debugfs is not
enabled, which were missing the 'static inline' qualifiers causing
sparse warnings.
Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 65073e6e
...@@ -13,19 +13,19 @@ void cc_debugfs_fini(struct cc_drvdata *drvdata); ...@@ -13,19 +13,19 @@ void cc_debugfs_fini(struct cc_drvdata *drvdata);
#else #else
int cc_debugfs_global_init(void) static inline int cc_debugfs_global_init(void)
{ {
return 0; return 0;
} }
void cc_debugfs_global_fini(void) {} static inline void cc_debugfs_global_fini(void) {}
int cc_debugfs_init(struct cc_drvdata *drvdata) static inline int cc_debugfs_init(struct cc_drvdata *drvdata)
{ {
return 0; return 0;
} }
void cc_debugfs_fini(struct cc_drvdata *drvdata) {} static inline void cc_debugfs_fini(struct cc_drvdata *drvdata) {}
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment