-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
queue_flag_{set,clear}_unlocked are now private
queue_flag_{set,clear}_unlocked are now private interfaces in the Linux kernel (torvalds/linux@8a0ac14). Use blk_queue_flag_{set,clear} interfaces which were introduced as of torvalds/linux@8814ce8. Signed-off-by: Giuseppe Di Natale <[email protected]> Requires-builders: style build
- Loading branch information
Showing
4 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
AC_DEFUN([ZFS_AC_KERNEL_BLK_QUEUE_FLAG_SET], [ | ||
AC_MSG_CHECKING([whether blk_queue_flag_set() exists]) | ||
ZFS_LINUX_TRY_COMPILE([ | ||
#include <linux/kernel.h> | ||
#include <linux/blkdev.h> | ||
],[ | ||
struct request_queue *q = NULL; | ||
blk_queue_flag_set(0, q); | ||
],[ | ||
AC_MSG_RESULT(yes) | ||
AC_DEFINE(HAVE_BLK_QUEUE_FLAG_SET, 1, [blk_queue_flag_set() exists]) | ||
],[ | ||
AC_MSG_RESULT(no) | ||
]) | ||
]) | ||
|
||
AC_DEFUN([ZFS_AC_KERNEL_BLK_QUEUE_FLAG_CLEAR], [ | ||
AC_MSG_CHECKING([whether blk_queue_flag_clear() exists]) | ||
ZFS_LINUX_TRY_COMPILE([ | ||
#include <linux/kernel.h> | ||
#include <linux/blkdev.h> | ||
],[ | ||
struct request_queue *q = NULL; | ||
blk_queue_flag_clear(0, q); | ||
],[ | ||
AC_MSG_RESULT(yes) | ||
AC_DEFINE(HAVE_BLK_QUEUE_FLAG_CLEAR, 1, [blk_queue_flag_clear() exists]) | ||
],[ | ||
AC_MSG_RESULT(no) | ||
]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters