Skip to contentSkip to conversation

ext4/super: fix build failure without procfs

PATCH New Alexander Beregalov 1 participant 1 message Oct 11, 2008 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext4/super: fix build failure without procfs

fs/ext4/super.c: In function 'ext4_fill_super':
fs/ext4/super.c:2226: error: 'ext4_ui_proc_fops' undeclared (first use in this function)
fs/ext4/super.c:2226: error: (Each undeclared identifier is reported only once
fs/ext4/super.c:2226: error: for each function it appears in.)

---

 fs/ext4/super.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
fs/ext4/super.c +2 -0
index 0e661c5..29823d4 100644
@@ -2218,6 +2218,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
 		goto failed_mount;
 	}
 
+#ifdef CONFIG_PROC_FS
 	if (ext4_proc_root)
 		sbi->s_proc = proc_mkdir(sb->s_id, ext4_proc_root);
 
@@ -2225,6 +2226,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
 		proc_create_data("inode_readahead_blks", 0644, sbi->s_proc,
 				 &ext4_ui_proc_fops,
 				 &sbi->s_inode_readahead_blks);
+#endif
 
 	bgl_lock_init(&sbi->s_blockgroup_lock);