From: Adrian Bunk <bunk@stusta.de> Date: Sat, 10 Sep 2005 07:26:59 +0000 (-0700) Subject: [PATCH] lib/sort.c: small cleanups X-Git-Tag: firefly_0821_release~41332 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ecec4cb7a9df5f61fe00710d2f2c69ce9a3b1d40;p=firefly-linux-kernel-4.4.55.git [PATCH] lib/sort.c: small cleanups 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> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> --- diff --git a/lib/sort.c b/lib/sort.c index b73dbb0e7c83..ddc4d35df289 100644 --- a/lib/sort.c +++ b/lib/sort.c @@ -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;