Skip to contentSkip to conversation

linux-next: build failure after merge of the btrfs-fixes tree

DISCUSSION Stephen Rothwell 3 participants 4 messages Mar 17, 2024 – Mar 18, 2024 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the btrfs-fixes tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

fs/btrfs/volumes.c: In function 'btrfs_scan_one_device':
fs/btrfs/volumes.c:1413:55: error: 'bdev_handle' undeclared (first use in this function)
1413 | if (btrfs_skip_registration(disk_super, path, bdev_handle->bdev->bd_dev,
| ^~~~~~~~~~~
fs/btrfs/volumes.c:1413:55: note: each undeclared identifier is reported only once for each function it appears in

Caused by commit

cc019bc0d55b ("btrfs: do not skip re-registration for the mounted device")

I have used the btrfs-fixes tree from next-20240315 for today.

This is actually caused by an interaction with commit

9ae061cf2a46 ("btrfs: port device access to file")

which has been in Linus' tree since March 12 (and linux-next since Feb 26).

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

Hi all,

After merging the btrfs-fixes tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

fs/btrfs/volumes.c: In function 'btrfs_scan_one_device':
fs/btrfs/volumes.c:1413:55: error: 'bdev_handle' undeclared (first use in this function)
1413 | if (btrfs_skip_registration(disk_super, path, bdev_handle->bdev->bd_dev,
| ^~~~~~~~~~~
fs/btrfs/volumes.c:1413:55: note: each undeclared identifier is reported only once for each function it appears in

Caused by commit

cc019bc0d55b ("btrfs: do not skip re-registration for the mounted device")

Quoted 8 lines

I have used the btrfs-fixes tree from next-20240315 for today.

This is actually caused by an interaction with commit

9ae061cf2a46 ("btrfs: port device access to file")

Ah, unaware of this change. Thanks for the report.
A new fix, built on top of this change, has now been sent out.

As the Linux-next branch no longer has the commit cc019bc0d55b, I've sent out the entire patch again.

https://lore.kernel.org/linux-btrfs/57a63f9905549f22618a85991b775fba76104412.1710732026.git.anand.jain@oracle.com/

Thanks, Anand

Quoted 1 line

which has been in Linus' tree since March 12 (and linux-next since Feb 26).

#2 lore raw
In reply to Stephen Rothwell
Quoted 15 lines · Stephen Rothwell

Hi all,

After merging the btrfs-fixes tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

fs/btrfs/volumes.c: In function 'btrfs_scan_one_device':
fs/btrfs/volumes.c:1413:55: error: 'bdev_handle' undeclared (first use in this function)
1413 | if (btrfs_skip_registration(disk_super, path, bdev_handle->bdev->bd_dev,
| ^~~~~~~~~~~
fs/btrfs/volumes.c:1413:55: note: each undeclared identifier is reported only once for each function it appears in

Caused by commit

cc019bc0d55b ("btrfs: do not skip re-registration for the mounted device")

Quoted 7 lines

I have used the btrfs-fixes tree from next-20240315 for today.

This is actually caused by an interaction with commit

9ae061cf2a46 ("btrfs: port device access to file")

which has been in Linus' tree since March 12 (and linux-next since Feb 26).

I would really appreciate if all infrastructure changes to btrfs code have CC:linux-btrfs@, the whole series "Open block devices as files" has never been CCed so the build breakage is noticed only by accident. Also I wonder why I have to repeatedly ask for that and why people think that doing broad changes to code maintained by somebody else is ok.

There are 26 patches in linux-next intersecting fs/btrfs most of which I see for the first time now. I don't have time to read fsdevel@ regularly and act rather on events (i.e. CC or mails).

VFS is in the center of many other subsystems I understand that adding the CC: manually is not feasible but scripting "if $path add CC:$subsys" should be doable, namely when it's not just one-time job. Please try to find some middle ground between efforts and patch workflow sanity. Thanks for understanding.

#3 lore raw
In reply to Stephen Rothwell
Quoted 10 lines · Stephen Rothwell

Hi all,

After merging the btrfs-fixes tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

fs/btrfs/volumes.c: In function 'btrfs_scan_one_device':
fs/btrfs/volumes.c:1413:55: error: 'bdev_handle' undeclared (first use in this function)
1413 | if (btrfs_skip_registration(disk_super, path, bdev_handle->bdev->bd_dev,
| ^~~~~~~~~~~
fs/btrfs/volumes.c:1413:55: note: each undeclared identifier is reported only once for each function it appears in

I've updated the for-next snapshot so it contains the updated version that is based on top of the required changes. The same patch will be also sent for merge.