ANDROID: GKI: mm.h: add Android ABI padding to a structure
Try to mitigate potential future driver core api changes by adding a padding to struct vm_operations_struct. Based on a change made to the RHEL/CENTOS 8 kernel. Bug: 151154716 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I78f84148ef4d3524bd6c5b78e53e06503a4ac3ae
This commit is contained in:
committed by
Carlos Llamas
parent
c57f9e1d48
commit
30d36e31c5
@@ -32,6 +32,7 @@
|
|||||||
#include <linux/sched.h>
|
#include <linux/sched.h>
|
||||||
#include <linux/pgtable.h>
|
#include <linux/pgtable.h>
|
||||||
#include <linux/kasan.h>
|
#include <linux/kasan.h>
|
||||||
|
#include <linux/android_kabi.h>
|
||||||
|
|
||||||
struct mempolicy;
|
struct mempolicy;
|
||||||
struct anon_vma;
|
struct anon_vma;
|
||||||
@@ -670,6 +671,11 @@ struct vm_operations_struct {
|
|||||||
* run within an rcu read locked section and with mmap lock not held.
|
* run within an rcu read locked section and with mmap lock not held.
|
||||||
*/
|
*/
|
||||||
bool speculative;
|
bool speculative;
|
||||||
|
|
||||||
|
ANDROID_KABI_RESERVE(1);
|
||||||
|
ANDROID_KABI_RESERVE(2);
|
||||||
|
ANDROID_KABI_RESERVE(3);
|
||||||
|
ANDROID_KABI_RESERVE(4);
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm)
|
static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm)
|
||||||
|
|||||||
Reference in New Issue
Block a user