[2.6 patch] jffs/jffs2: remove wrong function prototypes

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

  • Next message: Alex Williamson: "Re: long delays (possibly infinite) in time_interpolator_get_counter"
    Date:	Sun, 31 Jul 2005 19:00:29 +0200
    To: dwmw2@infradead.org
    
    

    This patch removes prototypes for the generic_file_open and
    generic_file_llseek functions.

    Besides being superfluous because they are already present in fs.h, they
    were also wrong because the actual functions aren't weak functions.

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

    ---
     fs/jffs/inode-v23.c |    3 ---
     fs/jffs2/file.c     |    3 ---
     2 files changed, 6 deletions(-)
    --- linux-2.6.13-rc4-mm1-full/fs/jffs/inode-v23.c.old	2005-07-31 18:43:46.000000000 +0200
    +++ linux-2.6.13-rc4-mm1-full/fs/jffs/inode-v23.c	2005-07-31 18:44:15.000000000 +0200
    @@ -1629,9 +1629,6 @@
     }
     
     
    -extern int generic_file_open(struct inode *, struct file *) __attribute__((weak));
    -extern loff_t generic_file_llseek(struct file *, loff_t, int) __attribute__((weak));
    -
     static struct file_operations jffs_file_operations =
     {
     	.open		= generic_file_open,
    --- linux-2.6.13-rc4-mm1-full/fs/jffs2/file.c.old	2005-07-31 18:44:31.000000000 +0200
    +++ linux-2.6.13-rc4-mm1-full/fs/jffs2/file.c	2005-07-31 18:44:40.000000000 +0200
    @@ -21,9 +21,6 @@
     #include <linux/jffs2.h>
     #include "nodelist.h"
     
    -extern int generic_file_open(struct inode *, struct file *) __attribute__((weak));
    -extern loff_t generic_file_llseek(struct file *file, loff_t offset, int origin) __attribute__((weak));
    -
     static int jffs2_commit_write (struct file *filp, struct page *pg,
     			       unsigned start, unsigned end);
     static int jffs2_prepare_write (struct file *filp, struct page *pg,
    -
    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: Alex Williamson: "Re: long delays (possibly infinite) in time_interpolator_get_counter"

    Relevant Pages

    • RE: Error mounting root fs on 72:01 using Promise FastTrak TX2000 (PDC20271)
      ... I think the patch should be included in the official kernel ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • [2.6 patch] cdrom.c: make several functions static (fwd)
      ... The patch forwarded below still applies and compiles against ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ... There had been need of rain for many days. ...
      (Linux-Kernel)
    • [2.6 patch] some parport_pc.c cleanups (fwd)
      ... The patch forwarded below still applies and compiles against ... extern struct parport *parport_pc_probe_port (unsigned long base, ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • RE: kernel BUG at kernel/timer.c:370!
      ... Subject: kernel BUG at kernel/timer.c:370! ... Could you please apply the below patch, wait for the problem to reoccur, ... Please read the FAQ at http://www.tux.org/lkml/ ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [stable] [2.6 patch] airo.c/airo_cs.c: correct prototypes
      ... > This patch creates a file airo.h containing prototypes of the global ... > If you got strange problems with either airo_cs devices or in any other ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)