diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2018-01-09 10:24:32 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-09 16:02:18 +0100 |
commit | 5d5583d0e22279d1a8fe1372ec0d02da5f289116 (patch) | |
tree | d83df9cff08f7fe3f272d19716966ba08d4e9244 /drivers/staging | |
parent | 65073e6ea9632c1e38153565517d0324c0a06513 (diff) | |
download | linux-5d5583d0e22279d1a8fe1372ec0d02da5f289116.tar.bz2 |
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: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/ccree/cc_debugfs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/ccree/cc_debugfs.h b/drivers/staging/ccree/cc_debugfs.h index 354ec1708d0d..5b5320eca7d2 100644 --- a/drivers/staging/ccree/cc_debugfs.h +++ b/drivers/staging/ccree/cc_debugfs.h @@ -13,19 +13,19 @@ void cc_debugfs_fini(struct cc_drvdata *drvdata); #else -int cc_debugfs_global_init(void) +static inline int cc_debugfs_global_init(void) { 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; } -void cc_debugfs_fini(struct cc_drvdata *drvdata) {} +static inline void cc_debugfs_fini(struct cc_drvdata *drvdata) {} #endif |