From: Rusty Trivial Russell <rusty@rustcorp.com.au>
To: viro@math.psu.edu, linux-kernel@vger.kernel.org
Subject: [TRIVIAL] namespace pollution in procfs
Date: Mon, 06 Jan 2003 14:20:22 +1100 [thread overview]
Message-ID: <20030106041153.858382C2D3@lists.samba.org> (raw)
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
reply other threads:[~2003-01-06 4:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030106041153.858382C2D3@lists.samba.org \
--to=rusty@rustcorp.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@math.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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