mirror of
				https://git.proxmox.com/git/mirror_zfs
				synced 2025-11-04 10:34:34 +00:00 
			
		
		
		
	queue_flag_{set,clear}_unlocked are now private interfaces in
the Linux kernel (https://github.com/torvalds/linux/commit/8a0ac14).
Use blk_queue_flag_{set,clear} interfaces which were introduced as
of https://github.com/torvalds/linux/commit/8814ce8.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #7410
		
	
			
		
			
				
	
	
		
			39 lines
		
	
	
		
			923 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			923 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
dnl #
 | 
						|
dnl # API change
 | 
						|
dnl # https://github.com/torvalds/linux/commit/8814ce8
 | 
						|
dnl # Introduction of blk_queue_flag_set and blk_queue_flag_clear
 | 
						|
dnl #
 | 
						|
 | 
						|
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)
 | 
						|
	])
 | 
						|
])
 |