[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>
This commit is contained in:
parent
207f36eec9
commit
ecec4cb7a9
|
@ -6,15 +6,16 @@
|
||||||
|
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/module.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 t = *(u32 *)a;
|
||||||
*(u32 *)a = *(u32 *)b;
|
*(u32 *)a = *(u32 *)b;
|
||||||
*(u32 *)b = t;
|
*(u32 *)b = t;
|
||||||
}
|
}
|
||||||
|
|
||||||
void generic_swap(void *a, void *b, int size)
|
static void generic_swap(void *a, void *b, int size)
|
||||||
{
|
{
|
||||||
char t;
|
char t;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue