[-mm patch] inotify.c: make code static

From: Adrian Bunk (bunk_at_stusta.de)
Date: 01/31/05

  • Next message: Matthew Garrett: "Re: [PATCH] Resume from initramfs"
    Date:	Mon, 31 Jan 2005 13:42:23 +0100
    To: Robert Love <rml@novell.com>
    
    

    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,

    -
    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/


  • Next message: Matthew Garrett: "Re: [PATCH] Resume from initramfs"

    Relevant Pages