OSDN Git Service

ANDROID: GKI: mount.h: add Android ABI padding to some structures
authorGreg Kroah-Hartman <gregkh@google.com>
Tue, 10 Mar 2020 17:41:10 +0000 (18:41 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 1 May 2020 13:18:12 +0000 (15:18 +0200)
Try to mitigate potential future driver core api changes by adding a
padding to struct vfsmount.

Based on a patch from Michal Marek <mmarek@suse.cz> from the SLES kernel

Bug: 151154716
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I9ce1b63f05c90af168eeea1312ac88d3cc5cfdf3

include/linux/mount.h

index 6645650..adcc8f0 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/spinlock.h>
 #include <linux/seqlock.h>
 #include <linux/atomic.h>
+#include <linux/android_kabi.h>
 
 struct super_block;
 struct vfsmount;
@@ -68,6 +69,10 @@ struct vfsmount {
        struct dentry *mnt_root;        /* root of the mounted tree */
        struct super_block *mnt_sb;     /* pointer to superblock */
        int mnt_flags;
+       ANDROID_KABI_RESERVE(1);
+       ANDROID_KABI_RESERVE(2);
+       ANDROID_KABI_RESERVE(3);
+       ANDROID_KABI_RESERVE(4);
        void *data;
 } __randomize_layout;