-
Notifications
You must be signed in to change notification settings - Fork 82
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
configure framework: detect make_req_fn type #1531
Conversation
d4fd518
to
6fc34bc
Compare
configure.d/1_make_req_type.conf
Outdated
if compile_module $cur_name "struct block_device_operations x; x.submit_bio;" "linux/blkdev.h"; | ||
then | ||
# If it's impossible to assign the casted return value of submit_bio() | ||
# to a variable we're assuming the function is of type void. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/to a variable/to int/
configure.d/1_make_req_type.conf
Outdated
# and removes make_request_fn | ||
if compile_module $cur_name "struct block_device_operations x; x.submit_bio;" "linux/blkdev.h"; | ||
then | ||
# If it's impossible to assign the casted return value of submit_bio() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/assign the casted return value/cast the return value/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the assignment that fails. It's the casting operation itself.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
6fc34bc
to
8fbbf31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except for inconsistent indentation (mixed 4 and 8 spaces). I've checked other configure.d files and there are even worse mixing of tabs and spaces, so you have at least only spaces in yours. ;)
No description provided.