Commit 586a989d authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] namespace pollution in procfs

From:  Arnd Bergmann <arnd@bergmann-dalldorf.de>

  de_get and de_put are used only in the file they are
  defined in, so make them static
parent 4a7d834b
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
extern void free_proc_entry(struct proc_dir_entry *); extern void free_proc_entry(struct proc_dir_entry *);
struct proc_dir_entry * de_get(struct proc_dir_entry *de) static inline struct proc_dir_entry * de_get(struct proc_dir_entry *de)
{ {
if (de) if (de)
atomic_inc(&de->count); atomic_inc(&de->count);
...@@ -33,7 +33,7 @@ struct proc_dir_entry * de_get(struct proc_dir_entry *de) ...@@ -33,7 +33,7 @@ struct proc_dir_entry * de_get(struct proc_dir_entry *de)
/* /*
* Decrements the use count and checks for deferred deletion. * Decrements the use count and checks for deferred deletion.
*/ */
void de_put(struct proc_dir_entry *de) static void de_put(struct proc_dir_entry *de)
{ {
if (de) { if (de) {
lock_kernel(); lock_kernel();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment