lkml.org 
[lkml]   [2003]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[TRIVIAL] namespace pollution in procfs
Date
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/
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.032 / U:2.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site