public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Robert Love <rml@novell.com>
Cc: linux-kernel@vger.kernel.org
Subject: [-mm patch] inotify.c: make code static
Date: Mon, 31 Jan 2005 13:42:23 +0100	[thread overview]
Message-ID: <20050131124223.GF18316@stusta.de> (raw)

This patch makes needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.11-rc2-mm2-full/drivers/char/inotify.c.old	2005-01-31 13:14:31.000000000 +0100
+++ linux-2.6.11-rc2-mm2-full/drivers/char/inotify.c	2005-01-31 13:15:59.000000000 +0100
@@ -201,8 +201,8 @@
 	return error;
 }
 
-struct inotify_kernel_event * kernel_event(s32 wd, u32 mask, u32 cookie,
-					   const char *filename)
+static struct inotify_kernel_event * kernel_event(s32 wd, u32 mask, u32 cookie,
+						  const char *filename)
 {
 	struct inotify_kernel_event *kevent;
 
@@ -1032,7 +1032,7 @@
 	.ioctl		= inotify_ioctl,
 };
 
-struct miscdevice inotify_device = {
+static struct miscdevice inotify_device = {
 	.minor  = MISC_DYNAMIC_MINOR,
 	.name	= "inotify",
 	.fops	= &inotify_fops,


             reply	other threads:[~2005-01-31 12:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-31 12:42 Adrian Bunk [this message]
2005-01-31 19:18 ` [-mm patch] inotify.c: make code static Robert Love

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=20050131124223.GF18316@stusta.de \
    --to=bunk@stusta.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rml@novell.com \
    /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