Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;