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:
Greg Kroah-Hartman 2020-05-01 16:44:20 +02:00 committed by Carlos Llamas
parent 48da4dd64b
commit e7a017ab91

View File

@ -150,6 +150,9 @@ struct scsi_disk {
unsigned urswrz : 1;
unsigned security : 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, disk_dev)