public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [-mm patch] inotify.c: make code static
@ 2005-01-31 12:42 Adrian Bunk
  2005-01-31 19:18 ` Robert Love
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2005-01-31 12:42 UTC (permalink / raw)
  To: Robert Love; +Cc: linux-kernel

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,


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [-mm patch] inotify.c: make code static
  2005-01-31 12:42 [-mm patch] inotify.c: make code static Adrian Bunk
@ 2005-01-31 19:18 ` Robert Love
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Love @ 2005-01-31 19:18 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

On Mon, 2005-01-31 at 13:42 +0100, Adrian Bunk wrote:

> This patch makes needlessly global code static.
> 
> Signed-off-by: Adrian Bunk <bunk@stusta.de>

Thanks.  I applied this to my inotify tree.

	Robert Love



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-31 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-31 12:42 [-mm patch] inotify.c: make code static Adrian Bunk
2005-01-31 19:18 ` Robert Love

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