mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
zvol_os: suppress compiler warning for zvol_open_timeout_ms
When HAVE_BLKDEV_GET_ERESTARTSYS is defined, compiler will complain "defined but not used" warning for zvol_open_timeout_ms. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ping Huang <huangping@smartx.com> Closes #13270
This commit is contained in:
parent
7dc782e5c5
commit
abdcef47d2
@ -46,7 +46,10 @@ static unsigned int zvol_request_sync = 0;
|
|||||||
static unsigned int zvol_prefetch_bytes = (128 * 1024);
|
static unsigned int zvol_prefetch_bytes = (128 * 1024);
|
||||||
static unsigned long zvol_max_discard_blocks = 16384;
|
static unsigned long zvol_max_discard_blocks = 16384;
|
||||||
static unsigned int zvol_threads = 32;
|
static unsigned int zvol_threads = 32;
|
||||||
|
|
||||||
|
#ifndef HAVE_BLKDEV_GET_ERESTARTSYS
|
||||||
static const unsigned int zvol_open_timeout_ms = 1000;
|
static const unsigned int zvol_open_timeout_ms = 1000;
|
||||||
|
#endif
|
||||||
|
|
||||||
struct zvol_state_os {
|
struct zvol_state_os {
|
||||||
struct gendisk *zvo_disk; /* generic disk */
|
struct gendisk *zvo_disk; /* generic disk */
|
||||||
|
Loading…
Reference in New Issue
Block a user