next: Build failure in drivers/s390/block/dcssblk.c due to 'dax: enable dax ...'
Subsystems (2)
drivers/s390/block/dcssblk.c:43:2: warning: initialization from incompatible pointer type [enabled by default] drivers/s390/block/dcssblk.c:43:2: warning: (near initialization for 'dcssblk_devops.direct_access') [enabled by default] drivers/s390/block/dcssblk.c:886:1: error: conflicting types for 'dcssblk_direct_access' drivers/s390/block/dcssblk.c:33:13: note: previous declaration of 'dcssblk_direct_access' was here drivers/s390/block/dcssblk.c:33:13: warning: 'dcssblk_direct_access' used but never defined [enabled by default] drivers/s390/block/dcssblk.c:886:1: warning: 'dcssblk_direct_access' defined but not used [-Wunused-function] scripts/Makefile.build:295: recipe for target 'drivers/s390/block/dcssblk.o' failed
make[2]: *** [drivers/s390/block/dcssblk.o] Error 1
Bisect points to commit 2b954df309078 ("dax: enable dax in the presence of known media errors (badblocks)". Bisect log is attached.
Guenter
---
# bad: [621a2a0fb6688af5dce47d60a6d4b5a19ae2c2e4] Add linux-next specific files for 20160518
# good: [2dcd0af568b0cf583645c8a317dd12e344b1c72a] Linux 4.6
git bisect start 'HEAD' 'v4.6'
# good: [586cf328ff7e7c0c32f89d6f2063c81143802c01] Merge remote-tracking branch 'net-next/master' git bisect good 586cf328ff7e7c0c32f89d6f2063c81143802c01
# good: [69bf2b19c358d937a3f40c07a08bc73476d43c02] Merge remote-tracking branch 'tty/tty-next' git bisect good 69bf2b19c358d937a3f40c07a08bc73476d43c02
# good: [cc6ecde352ff6cda50e204a4d942e742151027dc] Merge remote-tracking branch 'extcon/extcon-next' git bisect good cc6ecde352ff6cda50e204a4d942e742151027dc
# good: [d217278c0fbbdd5bd89a02d763bcf1e8eeaa018d] Merge remote-tracking branch 'clk/clk-next' git bisect good d217278c0fbbdd5bd89a02d763bcf1e8eeaa018d
# good: [6a9d815c7883e262876188ba0569fa049db8f801] radix-tree: remove root->height
git bisect good 6a9d815c7883e262876188ba0569fa049db8f801
# good: [f649c3f1360929e607c6d9c5f8b4a8a7c437af47] Merge remote-tracking branch 'nvdimm/libnvdimm-for-next' git bisect good f649c3f1360929e607c6d9c5f8b4a8a7c437af47
# good: [e386a22cafdab311d0538c3eae8e227428f88c14] rtsx_usb_ms: use schedule_timeout_idle() in polling loop git bisect good e386a22cafdab311d0538c3eae8e227428f88c14
# bad: [d0a783895690d227fb7cadc5482d787fb44fd425] Merge branch 'akpm-current/current'
git bisect bad d0a783895690d227fb7cadc5482d787fb44fd425
# good: [a758ba8622449cb31893a0030d0dada82cfb9315] ipc/msg.c: use freezable blocking call
git bisect good a758ba8622449cb31893a0030d0dada82cfb9315
# good: [87eefeb4e80b1526be83e670a08d059a003b7d0e] ext4: Add alignment check for DAX mount
git bisect good 87eefeb4e80b1526be83e670a08d059a003b7d0e
# bad: [2b954df30907837661f5612cf8bd4c21ab80403b] dax: enable dax in the presence of known media errors (badblocks) git bisect bad 2b954df30907837661f5612cf8bd4c21ab80403b
# good: [1e937cddd1ff4b823fc9d148ebabd443f105211e] xfs: Add alignment check for DAX mount
git bisect good 1e937cddd1ff4b823fc9d148ebabd443f105211e
# good: [8b3db9798c689ba2dc509f6ca1a8c7e1c1a3e62a] dax: fallback from pmd to pte on error
git bisect good 8b3db9798c689ba2dc509f6ca1a8c7e1c1a3e62a
# first bad commit: [2b954df30907837661f5612cf8bd4c21ab80403b] dax: enable dax in the presence of known media errors (badblocks)
Quoted 9 lines · Guenter Roeck
drivers/s390/block/dcssblk.c:43:2: warning: initialization from incompatible pointer type [enabled by default]drivers/s390/block/dcssblk.c:43:2: warning: (near initialization for 'dcssblk_devops.direct_access') [enabled by default]drivers/s390/block/dcssblk.c:886:1: error: conflicting types for 'dcssblk_direct_access'drivers/s390/block/dcssblk.c:33:13: note: previous declaration of 'dcssblk_direct_access' was heredrivers/s390/block/dcssblk.c:33:13: warning: 'dcssblk_direct_access' used but never defined [enabled by default]drivers/s390/block/dcssblk.c:886:1: warning: 'dcssblk_direct_access' defined but not used [-Wunused-function]scripts/Makefile.build:295: recipe for target 'drivers/s390/block/dcssblk.o' failed
make[2]: *** [drivers/s390/block/dcssblk.o] Error 1
Quoted 5 lines
Bisect points to commit
2b954df309078("dax: enable dax in the presence of known media errors (badblocks)". Bisect log is attached.Guenter
Hi Guenter,
Thanks for the report.
The following incremental patch should fix the problem. I'll fold it in to dax-misc (to prevent the bisect regression), and it should get picked by -next in the next build.
-Vishal
8<-----
Quoted 1 line
From
56f2a2a270b853263704d5b8fa6a6a898fe313caMon Sep 17 00:00:00 2001
From: Vishal Verma <[email protected]>
Date: Wed, 18 May 2016 12:12:23 -0600
Subject: [PATCH] dcssblk: fix the direct_access prototype to add 'size'
Fixes 2b954df309078 dax: enable dax in the presence of known media errors (badblocks)
When 'size' was added to the direct_access arguments, I neglected to update the prototype declaration for dcssblk.
--- drivers/s390/block/dcssblk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/s390/block/dcssblk.c +1 -1
@@ -31,7 +31,7 @@ static void dcssblk_release(struct gendisk *disk, fmode_t mode);static blk_qc_t dcssblk_make_request (struct request_queue *q,struct bio *bio);static long dcssblk_direct_access (struct block_device *bdev,sector_t secnum, - void __pmem **kaddr, pfn_t *pfn); + void __pmem **kaddr, pfn_t *pfn, long size);static char dcssblk_segments[DCSSBLK_PARM_LEN ] ="\0" ;
Signature · 1 line
2.5.5
Guenter Roeck
Tested-byQuoted 13 lines · Vishal Verma
Quoted 12 lines · Guenter Roeck
drivers/s390/block/dcssblk.c:43:2: warning: initialization from incompatible pointer type [enabled by default]drivers/s390/block/dcssblk.c:43:2: warning: (near initialization for 'dcssblk_devops.direct_access') [enabled by default]drivers/s390/block/dcssblk.c:886:1: error: conflicting types for 'dcssblk_direct_access'drivers/s390/block/dcssblk.c:33:13: note: previous declaration of 'dcssblk_direct_access' was heredrivers/s390/block/dcssblk.c:33:13: warning: 'dcssblk_direct_access' used but never defined [enabled by default]drivers/s390/block/dcssblk.c:886:1: warning: 'dcssblk_direct_access' defined but not used [-Wunused-function]scripts/Makefile.build:295: recipe for target 'drivers/s390/block/dcssblk.o' failed
make[2]: *** [drivers/s390/block/dcssblk.o] Error 1Bisect points to commit
2b954df309078("dax: enable dax in the presence of known media errors (badblocks)". Bisect log is attached.
Quoted 6 lines
Quoted 2 lines
Guenter
Hi Guenter,
Thanks for the report.
The following incremental patch should fix the problem. I'll fold it in
Yes, it does.
Guenter
Quoted 12 lines
to dax-misc (to prevent the bisect regression), and it should get picked by -next in the next build.
-Vishal8<-----
From
56f2a2a270b853263704d5b8fa6a6a898fe313caMon Sep 17 00:00:00 2001
From: Vishal Verma <[email protected]>
Date: Wed, 18 May 2016 12:12:23 -0600
Subject: [PATCH] dcssblk: fix thedirect_accessprototype to add 'size'
Quoted 8 lines
Fixes
2b954df309078dax: enable dax in the presence of known media errors (badblocks)When 'size' was added to the
direct_accessarguments, I neglected to update the prototype declaration for dcssblk.Reported-by Guenter Roeck <[email protected]>Signed-off-by Vishal Verma <[email protected]>
Quoted 20 lines
--- drivers/s390/block/dcssblk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/s390/block/dcssblk.c +1
-1@@ -31,7 +31,7 @@ static void dcssblk_release(struct gendisk *disk, fmode_t mode);static blk_qc_t dcssblk_make_request (struct request_queue *q,struct bio *bio);static long dcssblk_direct_access (struct block_device *bdev,sector_t secnum, - void __pmem **kaddr, pfn_t *pfn); + void __pmem **kaddr, pfn_t *pfn, long size);static char dcssblk_segments[DCSSBLK_PARM_LEN ] ="\0" ;Signature · 1 line
2.5.5