]> git.proxmox.com Git - mirror_spl.git/commitdiff
Linux compat 4.16: SECTOR_SIZE
authorGiuseppe Di Natale <dinatale2@users.noreply.github.com>
Tue, 10 Apr 2018 00:20:06 +0000 (17:20 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 10 Apr 2018 00:20:06 +0000 (17:20 -0700)
As of https://github.com/torvalds/linux/commit/233bde21,
SECTOR_SIZE is defined in linux/blkdev.h. Define SECTOR_SIZE
in sunldi.h only if it's not already defined.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #697

include/sys/sunldi.h

index 43462efad0108ef8e7625289f24fe76b27bc8ac3..a5045f8915b7847f18faea835cc4cd20cd565159 100644 (file)
 #include <linux/bio.h>
 #include <linux/blkdev.h>
 
+/*
+ * SECTOR_SIZE can be defined in blkdev.h. See
+ * https://github.com/torvalds/linux/commit/233bde21.
+ */
+#ifndef SECTOR_SIZE
 #define        SECTOR_SIZE 512
+#endif
 
 #endif /* SPL_SUNLDI_H */