ANDROID: GKI: scsi.h: add Android ABI padding to a structure
Try to mitigate potential future driver core api changes by adding a padding to struct scsi_disk. Based on a change made to the RHEL/CENTOS 8 kernel. Bug: 151154716 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I1191c786cb341df43a40fa1a82789759b0f431cf
This commit is contained in:
parent
86fe2f158e
commit
f74abd1902
@ -117,6 +117,9 @@ struct scsi_disk {
|
|||||||
unsigned urswrz : 1;
|
unsigned urswrz : 1;
|
||||||
unsigned security : 1;
|
unsigned security : 1;
|
||||||
unsigned ignore_medium_access_errors : 1;
|
unsigned ignore_medium_access_errors : 1;
|
||||||
|
|
||||||
|
ANDROID_KABI_RESERVE(1);
|
||||||
|
ANDROID_KABI_RESERVE(2);
|
||||||
};
|
};
|
||||||
#define to_scsi_disk(obj) container_of(obj,struct scsi_disk,dev)
|
#define to_scsi_disk(obj) container_of(obj,struct scsi_disk,dev)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user