mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [TRIVIAL] namespace pollution in procfs
@ 2003-01-06  3:20 Rusty Trivial Russell
  0 siblings, 0 replies; only message in thread
From: Rusty Trivial Russell @ 2003-01-06  3:20 UTC (permalink / raw)
  To: viro, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-06  4:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-06  3:20 [TRIVIAL] namespace pollution in procfs Rusty Trivial Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome