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

Fix mq req type detection #1552

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions configure.d/1_make_req_type.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ check() {
# specific scenario
# Mind the negation in the condition
if ! compile_module $cur_name \
"struct request_queue *q; int y = (int)q->make_request_fn(NULL);" "linux/blkdev.h";
"struct request_queue *q; int y = (int)q->make_request_fn(NULL, NULL);" "linux/blkdev.h";
then
# make_request_fn is of type void
echo $cur_name "3" >> $config_file_path
elif ! compile_module $cur_name \
"struct request_queue *q; blk_qc_t y = q->make_request_fn(NULL);" "linux/blkdev.h";
elif compile_module $cur_name \
"struct request_queue *q; blk_qc_t y = q->make_request_fn(NULL, NULL);" "linux/blkdev.h";
then
# make_request_fn is of type blk_qc_t
echo $cur_name "4" >> $config_file_path
elif ! compile_module $cur_name \
"struct request_queue *q; int y = q->make_request_fn(NULL);" "linux/blkdev.h";
elif compile_module $cur_name \
"struct request_queue *q; int y = q->make_request_fn(NULL, NULL);" "linux/blkdev.h";
then
# make_request_fn is of type int
echo $cur_name "5" >> $config_file_path
Expand Down