Skip to contentSkip to conversation

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

PATCH Stephen Rothwell 2 participants 4 messages May 25, 2020 – May 26, 2020

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

Hi all,

After merging the block tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

mm/filemap.c: In function 'generic_file_buffered_read':
mm/filemap.c:2075:9: error: 'written' undeclared (first use in this function); did you mean 'writeb'?

 2075 |     if (written) {
      |         ^~~~~~~
      |         writeb

Caused by commit

23d513106fd8 ("mm: support async buffered reads in generic_file_buffered_read()")

from the block tree interacting with commit

6e66f10f2cac ("fs: export generic_file_buffered_read()")

from the btrfs tree.

[Aside: that btrfs tree commit talks about "correct the comments and variable
names", but changes "written" to "copied" in the function definition but to "already_read" in the header file declaration ...]

I ave applied the following merge fix patch:

From: Stephen Rothwell <[email protected]>
Date: Mon, 25 May 2020 15:00:44 +1000
Subject: [PATCH] mm: fix up for "fs: export generic_file_buffered_read()" merge

---
 mm/filemap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/filemap.c +1 -1
index 742998883d9c..208095551a17 100644
@@ -2072,7 +2072,7 @@ ssize_t generic_file_buffered_read(struct kiocb *iocb,
 			 * serialisations and why it's safe.
 			 */
 			if (iocb->ki_flags & IOCB_WAITQ) {
-				if (written) {
+				if (copied) {
 					put_page(page);
 					goto out;
 				}
Signature · 5 lines
2.26.2

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 19 lines · Stephen Rothwell

Hi all,

After merging the block tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

mm/filemap.c: In function 'generic_file_buffered_read':
mm/filemap.c:2075:9: error: 'written' undeclared (first use in this function); did you mean 'writeb'?

 2075 |     if (written) {
      |         ^~~~~~~
      |         writeb

Caused by commit

23d513106fd8 ("mm: support async buffered reads in generic_file_buffered_read()")

from the block tree interacting with commit

6e66f10f2cac ("fs: export generic_file_buffered_read()")

Quoted 7 lines

from the btrfs tree.

[Aside: that btrfs tree commit talks about "correct the comments and variable
names", but changes "written" to "copied" in the function definition but to "already_read" in the header file declaration ...]

I ave applied the following merge fix patch:

Looks like a frivolous change... Thanks for fixing this up Stephen.

Signature · 1 line
Jens Axboe
#2 lore raw

Hi all,

Quoted 22 lines · On Mon, 25 May 2020 13:03:44 -0600 Jens Axboe <[email protected]> wrote:
Quoted 20 lines · Stephen Rothwell

After merging the block tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

mm/filemap.c: In function 'generic_file_buffered_read':
mm/filemap.c:2075:9: error: 'written' undeclared (first use in this function); did you mean 'writeb'?

 2075 |     if (written) {
      |         ^~~~~~~
      |         writeb

Caused by commit

23d513106fd8 ("mm: support async buffered reads in generic_file_buffered_read()")

from the block tree interacting with commit

6e66f10f2cac ("fs: export generic_file_buffered_read()")

from the btrfs tree.

Quoted 7 lines
Quoted 5 lines

[Aside: that btrfs tree commit talks about "correct the comments and variable
names", but changes "written" to "copied" in the function definition but to "already_read" in the header file declaration ...]

I ave applied the following merge fix patch:

Looks like a frivolous change... Thanks for fixing this up Stephen.

The variable name change has been removed from the btrfs tree.

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

Hi all,

Quoted 26 lines · On Mon, 25 May 2020 13:03:44 -0600 Jens Axboe <[email protected]> wrote:
Quoted 24 lines · Stephen Rothwell

After merging the block tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

mm/filemap.c: In function 'generic_file_buffered_read':
mm/filemap.c:2075:9: error: 'written' undeclared (first use in this function); did you mean 'writeb'?

 2075 |     if (written) {
      |         ^~~~~~~
      |         writeb

Caused by commit

23d513106fd8 ("mm: support async buffered reads in generic_file_buffered_read()")

from the block tree interacting with commit

6e66f10f2cac ("fs: export generic_file_buffered_read()")

from the btrfs tree.

[Aside: that btrfs tree commit talks about "correct the comments and variable
names", but changes "written" to "copied" in the function definition but to "already_read" in the header file declaration ...]

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

I ave applied the following merge fix patch:

Looks like a frivolous change... Thanks for fixing this up Stephen.

The variable name change has been removed from the btrfs tree.

Thanks - I'd encourage that name changing late in the merge window instead. The change is obviously fine, but a) it should not be done in an unrelated change, and b) it can be done without risking causing silly merge issues.

Signature · 1 line
Jens Axboe