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

Compilation error: too many arguments to function ‘blkdev_issue_flush’ 5.3.18-59.37 openLeap 15.3 #244

Open
StefanSa opened this issue Dec 19, 2021 · 1 comment

Comments

@StefanSa
Copy link

BUG Report

What happened:
Issue make command

/Software/portworx/px-fuse/rpm/px/BUILD/px-src/io.c:1189:9: error: too many arguments to function ‘blkdev_issue_flush’
   ret = blkdev_issue_flush(bdev, GFP_KERNEL, NULL);
         ^~~~~~~~~~~~~~~~~~
In file included from /Software/portworx/px-fuse/rpm/px/BUILD/px-src/io.c:63:0:
./include/linux/blkdev.h:1227:5: note: declared here
 int blkdev_issue_flush(struct block_device *, gfp_t);
     ^~~~~~~~~~~~~~~~~~
/Software/portworx/px-fuse/rpm/px/BUILD/px-src/io.c: In function ‘io_sq_wq_submit_work’:
/Software/portworx/px-fuse/rpm/px/BUILD/px-src/io.c:1605:5: error: implicit declaration of function ‘use_mm’; did you mean ‘dump_mm’? [-Werror=implicit-function-declaration]
     use_mm(cur_mm);
     ^~~~~~
     dump_mm
/Software/portworx/px-fuse/rpm/px/BUILD/px-src/io.c:1700:3: error: implicit declaration of function ‘unuse_mm’; did you mean ‘leave_mm’? [-Werror=implicit-function-declaration]
   unuse_mm(cur_mm);
   ^~~~~~~~
   leave_mm

Environment:

  • OS (e.g. from /etc/os-release): openLeap 15.3
  • Kernel (e.g. uname -a): 5.3.18-59.37-default
@corym-vermeer
Copy link

corym-vermeer commented Feb 14, 2022

Same error here in regards to blkdev_issue_flush.
This time on CentOS 8 Stream - 4.18.0-358.el8.x86_64
/tmp/px-fuse/rpm/px/BUILD/px-src/io.c:1234:9: error: too many arguments to function 'blkdev_issue_flush'

Removing the GFP_KERNEL argument allows the build to complete successfully. Not sure on the unintended results though.
<< ret = blkdev_issue_flush(bdev, GFP_KERNEL);

ret = blkdev_issue_flush(bdev);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants