fix compilation without CONFIG_PROC_FS
PATCH 1/1 fix compilation without CONFIG_PROC_FS
Signed-off-by Christoph Hellwig <[email protected]>
fs/xfs/linux-2.6/xfs_stats.h +4 -3
@@ -146,11 +146,12 @@ extern void xfs_cleanup_procfs(void);static inline int xfs_init_procfs (void ) { - return 0 -}; +return 0 ; +} +static inline void xfs_cleanup_procfs (void ) { -}; +}#endif /* !CONFIG_PROC_FS */
I'll check it in.
--Tim
Quoted 23 lines · Christoph Hellwig
Signed-off-by Christoph Hellwig <[email protected]>Index:
linux-2.6-xfs/fs/xfs/linux-2.6/xfs_stats.h
===================================================================fs/xfs/linux-2.6/xfs_stats.h +4
-3@@ -146,11 +146,12 @@ extern void xfs_cleanup_procfs(void);static inline int xfs_init_procfs (void ) { - return 0 -}; +return 0 ; +} +static inline void xfs_cleanup_procfs (void ) { -}; +}#endif /* !CONFIG_PROC_FS */