Skip to contentSkip to conversation

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

PATCH Stephen Rothwell 3 participants 3 messages Oct 6, 2015

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

Hi Jens,

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

drivers/block/loop.c: In function 'lo_rw_aio_complete':
drivers/block/loop.c:474:2: error: too few arguments to function 'blk_mq_complete_request'
blk_mq_complete_request(rq);
^
In file included from drivers/block/loop.h:14:0,
from drivers/block/loop.c:79:
include/linux/blk-mq.h:217:6: note: declared here

 void blk_mq_complete_request(struct request *rq, int error);
      ^

Caused by commit

f4829a9b7a61 ("blk-mq: fix racy updates of rq->errors")

from Linus' tree interacting with commit

bc07c10a3603 ("block: loop: support DIO & AIO")

from the block tree.

I added the this merge fix patch:

From: Stephen Rothwell <[email protected]>
Date: Tue, 6 Oct 2015 12:39:41 +1100
Subject: [PATCH] blk-mq: merge fix for "fix racy updates of rq->errors"

---
 drivers/block/loop.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/block/loop.c +1 -2
index c692a3d812e4..9be61ad3163d 100644
@@ -470,8 +470,7 @@ static void lo_rw_aio_complete(struct kiocb *iocb, long ret, long ret2)
 	else if (ret < 0)
 		ret = -EIO;
 
-	rq->errors = ret;
-	blk_mq_complete_request(rq);
+	blk_mq_complete_request(rq, ret);
 }
 
 static int lo_rw_aio(struct loop_device *lo, struct loop_cmd *cmd,
Signature · 5 lines
2.5.1

-- 
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw
config: i386-randconfig-x006-201540 (attached as .config) reproduce:

Hi Stephen,

[auto build test ERROR on next-20151002 -- if it's inappropriate base, please ignore]

config: i386-randconfig-x006-201540 (attached as .config) reproduce:

        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

drivers/block/loop.c: In function 'lo_rw_aio_complete':

>> drivers/block/loop.c:473:2: error: too many arguments to function 'blk_mq_complete_request'
     blk_mq_complete_request(rq, ret);
     ^
   In file included from drivers/block/loop.h:14:0,
                    from drivers/block/loop.c:79:
   include/linux/blk-mq.h:218:6: note: declared here
    void blk_mq_complete_request(struct request *rq);
         ^

vim +/blk_mq_complete_request +473 drivers/block/loop.c

467
468 if (ret > 0)
469 ret = 0;
470 else if (ret < 0)
471 ret = -EIO;
472

 > 473		blk_mq_complete_request(rq, ret);

474 }
475
476 static int lo_rw_aio(struct loop_device *lo, struct loop_cmd *cmd,

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

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

Hi Jens,

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

drivers/block/loop.c: In function 'lo_rw_aio_complete':
drivers/block/loop.c:474:2: error: too few arguments to function 'blk_mq_complete_request'
blk_mq_complete_request(rq);
^
In file included from drivers/block/loop.h:14:0,
from drivers/block/loop.c:79:
include/linux/blk-mq.h:217:6: note: declared here

 void blk_mq_complete_request(struct request *rq, int error);
      ^

Caused by commit

f4829a9b7a61 ("blk-mq: fix racy updates of rq->errors")

from Linus' tree interacting with commit

bc07c10a3603 ("block: loop: support DIO & AIO")

from the block tree.

I added the this merge fix patch:

From: Stephen Rothwell <[email protected]>
Date: Tue, 6 Oct 2015 12:39:41 +1100
Subject: [PATCH] blk-mq: merge fix for "fix racy updates of rq->errors"

---
 drivers/block/loop.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/block/loop.c +0 -0
index c692a3d812e4..9be61ad3163d 100644

drivers/block/loop.c static void lo_rw_aio_complete(struct kiocb *iocb, long ret, long ret2) · line 473

Quoted 6 lines
drivers/block/loop.c +1 -2
@@ -470,8 +470,7 @@ static void lo_rw_aio_complete(struct kiocb *iocb, long ret, long ret2)
        else if (ret < 0)
                ret = -EIO;
 
-       rq->errors = ret;
-       blk_mq_complete_request(rq);
+       blk_mq_complete_request(rq, ret);

This merge fix looks fine, thanks.

Quoted 9 lines
drivers/block/loop.c +0 -1
 }
 
 static int lo_rw_aio(struct loop_device *lo, struct loop_cmd *cmd,
--

2.5.1

--
Cheers,
Stephen Rothwell [email protected]