mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
proc: remove PDE_DATA() completely
Remove PDE_DATA() completely and replace it with pde_data(). [akpm@linux-foundation.org: fix naming clash in drivers/nubus/proc.c] [akpm@linux-foundation.org: now fix it properly] Link: https://lkml.kernel.org/r/20211124081956.87711-2-songmuchun@bytedance.com Signed-off-by: Muchun Song <songmuchun@bytedance.com> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: Alexey Gladkov <gladkov.alexey@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
6dfbbae14a
commit
359745d783
50 changed files with 178 additions and 180 deletions
|
@ -120,8 +120,6 @@ static inline void *pde_data(const struct inode *inode)
|
|||
return inode->i_private;
|
||||
}
|
||||
|
||||
#define PDE_DATA(i) pde_data(i)
|
||||
|
||||
extern void *proc_get_parent_data(const struct inode *);
|
||||
extern void proc_remove(struct proc_dir_entry *);
|
||||
extern void remove_proc_entry(const char *, struct proc_dir_entry *);
|
||||
|
@ -202,7 +200,7 @@ proc_create_data(const char *name, umode_t mode, struct proc_dir_entry *parent,
|
|||
|
||||
static inline void proc_set_size(struct proc_dir_entry *de, loff_t size) {}
|
||||
static inline void proc_set_user(struct proc_dir_entry *de, kuid_t uid, kgid_t gid) {}
|
||||
static inline void *PDE_DATA(const struct inode *inode) {BUG(); return NULL;}
|
||||
static inline void *pde_data(const struct inode *inode) {BUG(); return NULL;}
|
||||
static inline void *proc_get_parent_data(const struct inode *inode) { BUG(); return NULL; }
|
||||
|
||||
static inline void proc_remove(struct proc_dir_entry *de) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue