mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
ANDROID: Replace "PDE_DATA" with "pde_data"
Commit359745d783("proc: remove PDE_DATA() completely") removed PDE_DATA macro in favor of pde_data. So replace all instances of PDE_DATA to use pde_data. Fixes:359745d783("proc: remove PDE_DATA() completely") Signed-off-by: Will McVicker <willmcvicker@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I83ee420b78064500675d9970a4f0e4f0e8cb5baa
This commit is contained in:
parent
177076254a
commit
9b5f1c910c
|
|
@ -381,7 +381,7 @@ static int uid_cputime_show(struct seq_file *m, void *v)
|
|||
|
||||
static int uid_cputime_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
return single_open(file, uid_cputime_show, PDE_DATA(inode));
|
||||
return single_open(file, uid_cputime_show, pde_data(inode));
|
||||
}
|
||||
|
||||
static const struct proc_ops uid_cputime_fops = {
|
||||
|
|
@ -556,7 +556,7 @@ static int uid_io_show(struct seq_file *m, void *v)
|
|||
|
||||
static int uid_io_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
return single_open(file, uid_io_show, PDE_DATA(inode));
|
||||
return single_open(file, uid_io_show, pde_data(inode));
|
||||
}
|
||||
|
||||
static const struct proc_ops uid_io_fops = {
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ static void quota2_log(unsigned int hooknum,
|
|||
static ssize_t quota_proc_read(struct file *file, char __user *buf,
|
||||
size_t size, loff_t *ppos)
|
||||
{
|
||||
struct xt_quota_counter *e = PDE_DATA(file_inode(file));
|
||||
struct xt_quota_counter *e = pde_data(file_inode(file));
|
||||
char tmp[24];
|
||||
size_t tmp_size;
|
||||
|
||||
|
|
@ -147,7 +147,7 @@ static ssize_t quota_proc_read(struct file *file, char __user *buf,
|
|||
static ssize_t quota_proc_write(struct file *file, const char __user *input,
|
||||
size_t size, loff_t *ppos)
|
||||
{
|
||||
struct xt_quota_counter *e = PDE_DATA(file_inode(file));
|
||||
struct xt_quota_counter *e = pde_data(file_inode(file));
|
||||
char buf[sizeof("18446744073709551616")];
|
||||
|
||||
if (size > sizeof(buf))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user