Commit ecec4cb7 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[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: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 207f36ee
...@@ -6,15 +6,16 @@ ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment