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
===== fs/proc/inode.c 1.18 vs edited =====
--- trivial-2.5-bk/fs/proc/inode.c.orig 2003-01-06 14:08:23.000000000 +1100
+++ trivial-2.5-bk/fs/proc/inode.c 2003-01-06 14:08:23.000000000 +1100
@@ -23,7 +23,7 @@
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)
atomic_inc(&de->count);
@@ -33,7 +33,7 @@
/*
* 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) {
lock_kernel();
-- Don't blame me: the Monkey is driving File: Arnd Bergmann <arnd@bergmann-dalldorf.de>: [PATCH] namespace pollution in procfs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Jan 07 2003 - 22:00:30 EST