提交 ecec4cb7 编写于 作者: A Adrian Bunk 提交者: 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: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 207f36ee
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册