mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-05-03 23:42:43 +03:00
Linux compat 4.16: SECTOR_SIZE
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
This commit is contained in:
parent
581bc01a07
commit
9125f8f5bd
@ -32,6 +32,12 @@
|
|||||||
#include <linux/bio.h>
|
#include <linux/bio.h>
|
||||||
#include <linux/blkdev.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
|
#define SECTOR_SIZE 512
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* SPL_SUNLDI_H */
|
#endif /* SPL_SUNLDI_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user