mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
ANDROID: GKI: kernfs.h: add Android ABI padding to some structures
Try to mitigate potential future driver core api changes by adding a padding to struct kernfs_syscall_ops and struct kernfs_ops. Based on a change made to the RHEL/CENTOS 8 kernel. Bug: 151154716 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I1fcb0b81c3ea7d5300da283b275391f95d6d4ec8
This commit is contained in:
committed by
Carlos Llamas
parent
2baf3e23bb
commit
e69be4de29
@@ -19,6 +19,7 @@
|
|||||||
#include <linux/wait.h>
|
#include <linux/wait.h>
|
||||||
#include <linux/rwsem.h>
|
#include <linux/rwsem.h>
|
||||||
#include <linux/cache.h>
|
#include <linux/cache.h>
|
||||||
|
#include <linux/android_kabi.h>
|
||||||
|
|
||||||
struct file;
|
struct file;
|
||||||
struct dentry;
|
struct dentry;
|
||||||
@@ -244,6 +245,11 @@ struct kernfs_syscall_ops {
|
|||||||
const char *new_name);
|
const char *new_name);
|
||||||
int (*show_path)(struct seq_file *sf, struct kernfs_node *kn,
|
int (*show_path)(struct seq_file *sf, struct kernfs_node *kn,
|
||||||
struct kernfs_root *root);
|
struct kernfs_root *root);
|
||||||
|
|
||||||
|
ANDROID_KABI_RESERVE(1);
|
||||||
|
ANDROID_KABI_RESERVE(2);
|
||||||
|
ANDROID_KABI_RESERVE(3);
|
||||||
|
ANDROID_KABI_RESERVE(4);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct kernfs_node *kernfs_root_to_node(struct kernfs_root *root);
|
struct kernfs_node *kernfs_root_to_node(struct kernfs_root *root);
|
||||||
@@ -320,6 +326,9 @@ struct kernfs_ops {
|
|||||||
struct poll_table_struct *pt);
|
struct poll_table_struct *pt);
|
||||||
|
|
||||||
int (*mmap)(struct kernfs_open_file *of, struct vm_area_struct *vma);
|
int (*mmap)(struct kernfs_open_file *of, struct vm_area_struct *vma);
|
||||||
|
|
||||||
|
ANDROID_KABI_RESERVE(1);
|
||||||
|
ANDROID_KABI_RESERVE(2);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user