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

Build error with new mainline kernel 4.5.2 "blk_queue_flush" [fs/zfs/zfs/zfs.ko] undefined! #4563

Closed
sergiall opened this issue Apr 26, 2016 · 2 comments
Labels
Type: Building Indicates an issue related to building binaries

Comments

@sergiall
Copy link

Hello,I try to build zfs as linux-builtin module with latest stable mainline kernel and unfortunaly get this error:
CC [M] fs/zfs/zfs/zvol.o
LD [M] fs/zfs/zfs/zfs.o
Building modules, stage 2.
MODPOST 4130 modules
ERROR: "blk_queue_flush" [fs/zfs/zfs/zfs.ko] undefined!
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
scripts/Makefile.modpost:91: recipe for target '__modpost' failed
make[2]: *** [__modpost] Error 1

My spl/zfs config.log
config.log.txt
config.log.txt

Please,help me resolve this issue!

@sergiall
Copy link
Author

As I investigate,new kernels's edition of file include/linux/blkdev.h dont't have the
"extern void blk_queue_flush(struct request_queue *q, unsigned int flush);" string,but have the
"extern void blk_queue_flush_queueable(struct request_queue *q, bool queueable);" string,so I edit the
file contained "blk_queue_flush" reference - fs/zfs/zfs/zvol.c" and simple change this line:
blk_queue_flush(zv->zv_queue, VDEV_REQ_FLUSH | VDEV_REQ_FUA);
to
blk_queue_flush_queueable(zv->zv_queue, VDEV_REQ_FLUSH | VDEV_REQ_FUA);
and error disappeared and kernel continued to build,but I fill,what tests in runtime has needed.
If you prompt more elegant solution,please write here about.
Thank you for attention.

@tsjk
Copy link

tsjk commented May 10, 2016

Yes, I do wonder about this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Building Indicates an issue related to building binaries
Projects
None yet
Development

No branches or pull requests

3 participants
@sergiall @tsjk and others