ext2 statics

ext2 statics

Post by Stephen Rothwel » Fri, 21 Jun 2002 12:00:08



Hi,

This patch just changes some things in ext2 to be static.

I am not sure who the ext2 maintainer is, but I am pretty sure it
is not Remy Card who is listed in the MAINTAINERS file.

--
Cheers,

http://www.canb.auug.org.au/~sfr/

diff -ruN 2.5.23/fs/ext2/balloc.c 2.5.23-sfr.3/fs/ext2/balloc.c
--- 2.5.23/fs/ext2/balloc.c     Sat May 25 21:20:13 2002

        }
 }

-int ext2_group_sparse(int group)
+static int ext2_group_sparse(int group)
 {
        return (test_root(group, 3) || test_root(group, 5) ||
                test_root(group, 7));
diff -ruN 2.5.23/fs/ext2/ext2.h 2.5.23-sfr.3/fs/ext2/ext2.h
--- 2.5.23/fs/ext2/ext2.h       Mon Apr 15 06:13:17 2002

 extern void ext2_warning (struct super_block *, const char *, const char *, ...)
        __attribute__ ((format (printf, 3, 4)));
 extern void ext2_update_dynamic_rev (struct super_block *sb);
-extern void ext2_put_super (struct super_block *);
 extern void ext2_write_super (struct super_block *);
-extern int ext2_remount (struct super_block *, int *, char *);
-extern int ext2_statfs (struct super_block *, struct statfs *);

 /*
  * Inodes and files operations
diff -ruN 2.5.23/fs/ext2/super.c 2.5.23-sfr.3/fs/ext2/super.c
--- 2.5.23/fs/ext2/super.c      Sat May 25 21:20:13 2002

 static void ext2_sync_super(struct super_block *sb,
                            struct ext2_super_block *es);
+static int ext2_remount (struct super_block * sb, int * flags, char * data);
+static int ext2_statfs (struct super_block * sb, struct statfs * buf);

 static char error_buf[1024];

         */
 }

-void ext2_put_super (struct super_block * sb)
+static void ext2_put_super (struct super_block * sb)
 {
        int db_count;

        unlock_kernel();
 }

-int ext2_remount (struct super_block * sb, int * flags, char * data)
+static int ext2_remount (struct super_block * sb, int * flags, char * data)
 {
        struct ext2_sb_info * sbi = EXT2_SB(sb);

        return 0;
 }

-int ext2_statfs (struct super_block * sb, struct statfs * buf)
+static int ext2_statfs (struct super_block * sb, struct statfs * buf)
 {
        struct ext2_sb_info *sbi = EXT2_SB(sb);
        unsigned long overhead;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. ipc/ statics

Hi,

This patch just makes some stuff in ipc/ static.

--
Cheers,

http://www.canb.auug.org.au/~sfr/
 diff -ruN 2.5.24/ipc/msg.c 2.5.24-sfr.2/ipc/msg.c
--- 2.5.24/ipc/msg.c    Sat Sep 15 07:17:00 2001

        return 0;
 }

-int inline pipelined_send(struct msg_queue* msq, struct msg_msg* msg)
+static int inline pipelined_send(struct msg_queue* msq, struct msg_msg* msg)
 {
        struct list_head* tmp;

        return err;
 }

-int inline convert_mode(long* msgtyp, int msgflg)
+static int inline convert_mode(long* msgtyp, int msgflg)
 {
        /*
         *  find message of correct type.
diff -ruN 2.5.24/ipc/sem.c 2.5.24-sfr.2/ipc/sem.c
--- 2.5.24/ipc/sem.c    Thu May 30 05:12:31 2002

        }
 }

-int semctl_nolock(int semid, int semnum, int cmd, int version, union semun arg)
+static int semctl_nolock(int semid, int semnum, int cmd, int version, union semun arg)
 {
        int err = -EINVAL;

        return err;
 }

-int semctl_main(int semid, int semnum, int cmd, int version, union semun arg)
+static int semctl_main(int semid, int semnum, int cmd, int version, union semun arg)
 {
        struct sem_array *sma;

        }
 }

-int semctl_down(int semid, int semnum, int cmd, int version, union semun arg)
+static int semctl_down(int semid, int semnum, int cmd, int version, union semun arg)
 {
        struct sem_array *sma;
        int err;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. maxtor drive overlay

3. Initializing BIG statics with raw data - ld guru needed!

4. Portable Unix shell scripts

5. Statics in Apache mod

6. Qt + ViaVoice

7. ipv6 statics

8. X Window shutdown any monitor?

9. PAS 16 statics problem

10. statics destructing and g++

11. xdb core: global statics

12. EXT2 TOOLS: Read ext2 files from DOS

13. Bugs in LVM and ext2 + suggestion for fix (was: Problem mounting ext2 fs on LVM)