mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
ANDROID: GKI: mmu_notifier.h: add Android ABI padding to some structures
Try to mitigate potential future driver core api changes by adding a padding to struct mmu_notifier_ops and struct mmu_notifier. Based on a change made to the RHEL/CENTOS 8 kernel. Bug: 151154716 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: If631445abf20c22830a1c764ff2ccd662a7bd204
This commit is contained in:
parent
8faaa07702
commit
a06d91262a
|
|
@ -8,6 +8,7 @@
|
||||||
#include <linux/mmap_lock.h>
|
#include <linux/mmap_lock.h>
|
||||||
#include <linux/srcu.h>
|
#include <linux/srcu.h>
|
||||||
#include <linux/interval_tree.h>
|
#include <linux/interval_tree.h>
|
||||||
|
#include <linux/android_kabi.h>
|
||||||
|
|
||||||
struct mmu_notifier_subscriptions;
|
struct mmu_notifier_subscriptions;
|
||||||
struct mmu_notifier;
|
struct mmu_notifier;
|
||||||
|
|
@ -215,6 +216,11 @@ struct mmu_notifier_ops {
|
||||||
*/
|
*/
|
||||||
struct mmu_notifier *(*alloc_notifier)(struct mm_struct *mm);
|
struct mmu_notifier *(*alloc_notifier)(struct mm_struct *mm);
|
||||||
void (*free_notifier)(struct mmu_notifier *subscription);
|
void (*free_notifier)(struct mmu_notifier *subscription);
|
||||||
|
|
||||||
|
ANDROID_KABI_RESERVE(1);
|
||||||
|
ANDROID_KABI_RESERVE(2);
|
||||||
|
ANDROID_KABI_RESERVE(3);
|
||||||
|
ANDROID_KABI_RESERVE(4);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -234,6 +240,9 @@ struct mmu_notifier {
|
||||||
struct mm_struct *mm;
|
struct mm_struct *mm;
|
||||||
struct rcu_head rcu;
|
struct rcu_head rcu;
|
||||||
unsigned int users;
|
unsigned int users;
|
||||||
|
|
||||||
|
ANDROID_KABI_RESERVE(1);
|
||||||
|
ANDROID_KABI_RESERVE(2);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user