Skip to contentSkip to conversation

linux-next: build failure after merge of the vfs tree

DISCUSSION Stephen Rothwell 3 participants 5 messages Mar 19, 2018 – Apr 8, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Al,

After merging the vfs tree, today's linux-next build (x86_64 allnoconfig) failed like this:

fs/super.c: In function 'do_thaw_all_callback':
fs/super.c:942:3: error: implicit declaration of function 'emergency_thaw_bdev'; did you mean 'emergency_remount'? [-Werror=implicit-function-declaration]
emergency_thaw_bdev(sb);
^~~~~~~~~~~~~~~~~~~
emergency_remount

Caused by commit

92afc556e622 ("buffer.c: call thaw_super during emergency thaw")

I have reverted that commit for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 11 lines · Stephen Rothwell

Hi Al,

After merging the vfs tree, today's linux-next build (x86_64 allnoconfig) failed like this:

fs/super.c: In function 'do_thaw_all_callback':
fs/super.c:942:3: error: implicit declaration of function 'emergency_thaw_bdev'; did you mean 'emergency_remount'? [-Werror=implicit-function-declaration]

   emergency_thaw_bdev(sb);
   ^~~~~~~~~~~~~~~~~~~
   emergency_remount
Quoted 6 lines

Caused by commit

92afc556e622 ("buffer.c: call thaw_super during emergency thaw")

I have reverted that commit for today.

Oops, did not test with CONFIG_BLOCK disabled. The sysrq func itself is guarded with it so imho the right fixup is to do the same thing:

fs/super.c +2 -0
index 5fa9a8d..86b5575 100644
@@ -935,6 +935,7 @@ void emergency_remount(void)
        }
 }
 
+#ifdef CONFIG_BLOCK
 static void do_thaw_all_callback(struct super_block *sb)
 {
        down_write(&sb->s_umount);
@@ -968,6 +969,7 @@ void emergency_thaw_all(void)
                schedule_work(work);
        }
 }
+#endif
 
 /*
  * Unnamed block devices are dummy devices used by virtual
Signature · 1 line
Mateusz Guzik
#2 lore raw
In reply to Stephen Rothwell

Hi Al,

Quoted 10 lines · On Mon, 19 Mar 2018 17:06:27 +1100 Stephen Rothwell <[email protected]>…

After merging the vfs tree, today's linux-next build (x86_64 allnoconfig) failed like this:

fs/super.c: In function 'do_thaw_all_callback':
fs/super.c:942:3: error: implicit declaration of function 'emergency_thaw_bdev'; did you mean 'emergency_remount'? [-Werror=implicit-function-declaration]

   emergency_thaw_bdev(sb);
   ^~~~~~~~~~~~~~~~~~~
   emergency_remount
Quoted 5 lines

Caused by commit

92afc556e622 ("buffer.c: call thaw_super during emergency thaw")

I have reverted that commit for today.

I am still doing that revert ...

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#3 lore raw
Quoted 13 lines · Stephen Rothwell

Hi Al,

Quoted 10 lines · On Mon, 19 Mar 2018 17:06:27 +1100 Stephen Rothwell <[email protected]>…

After merging the vfs tree, today's linux-next build (x86_64 allnoconfig) failed like this:

fs/super.c: In function 'do_thaw_all_callback':
fs/super.c:942:3: error: implicit declaration of function 'emergency_thaw_bdev'; did you mean 'emergency_remount'? [-Werror=implicit-function-declaration]

   emergency_thaw_bdev(sb);
   ^~~~~~~~~~~~~~~~~~~
   emergency_remount
Quoted 7 lines
Quoted 5 lines

Caused by commit

92afc556e622 ("buffer.c: call thaw_super during emergency thaw")

I have reverted that commit for today.

I am still doing that revert ...

That's interesting, seeing that this commit is *not* in #for-next and 08fdc8a0138a should not have that problem...

#4 lore raw

Hi Al,

Quoted 11 lines · On Sun, 8 Apr 2018 03:19:56 +0100 Al Viro <[email protected]> wrote:
Quoted 8 lines
Quoted 6 lines

Caused by commit

92afc556e622 ("buffer.c: call thaw_super during emergency thaw")

I have reverted that commit for today.

I am still doing that revert ...

That's interesting, seeing that this commit is *not* in #for-next and 08fdc8a0138a should not have that problem...

I do the revert by applying a reverse patch (initially generated by a "git revert"). That reverse patch still applies cleanly, so I have no easy way to tell that this problem has been fixed (except by trying without the reverse patch each day - which would add a significant cost to my work as that patch touches linux/fs.h).

Anyway, thanks for letting me know, I will remove the reverse patch from tomorrow.

Signature · 2 lines
Cheers,
Stephen Rothwell