diff options
Diffstat (limited to 'fs/internal.h')
-rw-r--r-- | fs/internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/internal.h b/fs/internal.h index f662b70..f07147d 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -14,10 +14,16 @@ /* * block_dev.c */ +#ifdef CONFIG_BLOCK extern struct super_block *blockdev_superblock; extern void __init bdev_cache_init(void); #define sb_is_blkdev_sb(sb) ((sb) == blockdev_superblock) +#else +static inline void bdev_cache_init(void) {} + +#define sb_is_blkdev_sb(sb) 0 +#endif /* * char_dev.c |