[2.6 patch] lib/sort.c: small cleanups

From: Adrian Bunk (bunk_at_stusta.de)
Date: 09/03/05

  • Next message: Eric Van Hensbergen: "Re: FUSE merging?"
    Date:	Sat, 3 Sep 2005 15:25:31 +0200
    To: Matt Mackall <mpm@selenic.com>
    
    

    This patch contains the following small cleanups:
    - make two needlessly global functions static
    - every file should #include the header files containing the prototypes
      of it's global functions

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

    --- linux-2.6.13-mm1-full/lib/sort.c.old 2005-09-03 14:02:17.000000000 +0200
    +++ linux-2.6.13-mm1-full/lib/sort.c 2005-09-03 14:03:02.000000000 +0200
    @@ -6,15 +6,16 @@
     
     #include <linux/kernel.h>
     #include <linux/module.h>
    +#include <linux/sort.h>
     
    -void u32_swap(void *a, void *b, int size)
    +static void u32_swap(void *a, void *b, int size)
     {
             u32 t = *(u32 *)a;
             *(u32 *)a = *(u32 *)b;
             *(u32 *)b = t;
     }
     
    -void generic_swap(void *a, void *b, int size)
    +static void generic_swap(void *a, void *b, int size)
     {
             char t;
     

    -
    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: Eric Van Hensbergen: "Re: FUSE merging?"

    Relevant Pages

    • Re: Add identify decoding 4/4
      ... >> big functions in header files. ... That's why libraries were invented ... void big_ugly_func; ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [2.6 patch] IrDA prototype fixes
      ... Every file should #include the header files containing the prototypes of ... it's global functions. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [2.6 patch] net/ipv4/ipconfig.c should #include <linux/nfs_fs.h>
      ... Every file should #include the header files containing the prototypes of ... it's global functions. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [-mm patch] drivers/dlm/: possible cleanups
      ... make needlessly global functions static ... +static int __init dlm_device_init ... +static void __exit dlm_device_exit ... -void dlm_print_lkb(struct dlm_lkb *lkb) ...
      (Linux-Kernel)
    • [-mm patch] drivers/dlm/: possible cleanups
      ... make needlessly global functions static ... +static int __init dlm_device_init ... +static void __exit dlm_device_exit ... -void dlm_print_lkb(struct dlm_lkb *lkb) ...
      (Linux-Kernel)