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 <[EMAIL PROTECTED]>

--- 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to