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:
Giuseppe Di Natale 2018-04-09 17:20:06 -07:00 committed by Brian Behlendorf
parent 581bc01a07
commit 9125f8f5bd

View File

@ -32,6 +32,12 @@
#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 */