Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error with 4.8-rc6 #160

Closed
akiradeveloper opened this issue Sep 18, 2016 · 1 comment
Closed

Compile error with 4.8-rc6 #160

akiradeveloper opened this issue Sep 18, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@akiradeveloper
Copy link
Owner

I've just upgraded the kernel to 4.8-rc6 and found dm-writeboost can't be successfully built with the kernel.

I think bio structure is changed.

~/dm-writeboost$ make
cp -r src /usr/src/dm-writeboost-2.2.5
cp: cannot create directory '/usr/src/dm-writeboost-2.2.5/src': Permission denied
make: *** [install] Error 1
akira@Hercules:~/dm-writeboost$ cd src/
akira@Hercules:~/dm-writeboost/src$ make
make -C /lib/modules/4.8.0-rc6/build M=/home/akira/dm-writeboost/src modules
make[1]: Entering directory `/home/akira/linux'
  CC [M]  /home/akira/dm-writeboost/src/dm-writeboost-target.o
In file included from /home/akira/dm-writeboost/src/dm-writeboost.h:36:0,
                 from /home/akira/dm-writeboost/src/dm-writeboost-target.c:23:
/home/akira/dm-writeboost/src/dm-writeboost-target.c: In function 'wb_io_internal':
/home/akira/dm-writeboost/src/dm-writeboost-target.c:99:58: error: 'struct dm_io_request' has no member named 'bi_rw'
         buf, (unsigned long long) regions->sector, io_req->bi_rw);
                                                          ^
./include/linux/device-mapper.h:536:61: note: in definition of macro 'DMERR'
  printk(KERN_ERR DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg)
                                                             ^
/home/akira/dm-writeboost/src/dm-writeboost-target.c: In function 'fill_payload_by_backing':
/home/akira/dm-writeboost/src/dm-writeboost-target.c:611:3: error: unknown field 'bi_rw' specified in initializer
   .bi_rw = READ,
   ^
/home/akira/dm-writeboost/src/dm-writeboost-target.c:611:3: warning: excess elements in struct initializer
/home/akira/dm-writeboost/src/dm-writeboost-target.c:611:3: warning: (near initialization for '(anonymous)')
/home/akira/dm-writeboost/src/dm-writeboost-target.c: In function 'read_mb':
/home/akira/dm-writeboost/src/dm-writeboost-target.c:663:4: error: unknown field 'bi_rw' specified in initializer
    .bi_rw = READ,
    ^
/home/akira/dm-writeboost/src/dm-writeboost-target.c:663:4: warning: excess elements in struct initializer
/home/akira/dm-writeboost/src/dm-writeboost-target.c:663:4: warning: (near initialization for '(anonymous)')
/home/akira/dm-writeboost/src/dm-writeboost-target.c: In function 'complete_process_write':
/home/akira/dm-writeboost/src/dm-writeboost-target.c:1201:9: error: 'struct bio' has no member named 'bi_rw'
  if (bio->bi_rw & REQ_FUA) {
         ^
/home/akira/dm-writeboost/src/dm-writeboost-target.c: In function 'read_backing_async':
/home/akira/dm-writeboost/src/dm-writeboost-target.c:1314:3: error: unknown field 'bi_rw' specified in initializer
   .bi_rw = READ,
   ^
/home/akira/dm-writeboost/src/dm-writeboost-target.c:1314:3: warning: excess elements in struct initializer
/home/akira/dm-writeboost/src/dm-writeboost-target.c:1314:3: warning: (near initialization for '(anonymous)')
/home/akira/dm-writeboost/src/dm-writeboost-target.c: In function 'writeboost_map':
/home/akira/dm-writeboost/src/dm-writeboost-target.c:1455:9: error: 'struct bio' has no member named 'bi_rw'
  if (bio->bi_rw & REQ_FLUSH)
         ^
/home/akira/dm-writeboost/src/dm-writeboost-target.c:1455:19: error: 'REQ_FLUSH' undeclared (first use in this function)
  if (bio->bi_rw & REQ_FLUSH)
                   ^
/home/akira/dm-writeboost/src/dm-writeboost-target.c:1455:19: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/home/akira/dm-writeboost/src/dm-writeboost-target.o] Error 1
make[1]: *** [_module_/home/akira/dm-writeboost/src] Error 2
make[1]: Leaving directory `/home/akira/linux'
make: *** [all] Error 2
@akiradeveloper akiradeveloper self-assigned this Sep 18, 2016
@akiradeveloper akiradeveloper added this to the v2.2.6 milestone Sep 18, 2016
@akiradeveloper
Copy link
Owner Author

bi_rw is purged... wtf

akiradeveloper added a commit that referenced this issue Sep 19, 2016
Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
akiradeveloper added a commit that referenced this issue Sep 19, 2016
Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant