UML: make several more things static
- Make some variables and functions static, since they don't need to be global. - Remove an unused function - arch/um/kernel/time.c::sched_clock(). - Clean the style a bit as complained by checkpatch.pl. Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: WANG Cong <wangcong@zeuux.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include "sysdep/ptrace.h"
|
||||
|
||||
/* Set during early boot */
|
||||
int host_has_cmov = 1;
|
||||
static int host_has_cmov = 1;
|
||||
static jmp_buf cmov_test_return;
|
||||
|
||||
static void cmov_sigill_test_handler(int sig)
|
||||
|
@@ -243,13 +243,12 @@ unsigned int csum_partial_copy_generic (const char *src, char *dst,
|
||||
.previous
|
||||
|
||||
.align 4
|
||||
.globl csum_partial_copy_generic_i386
|
||||
|
||||
|
||||
#ifndef CONFIG_X86_USE_PPRO_CHECKSUM
|
||||
|
||||
#define ARGBASE 16
|
||||
#define FP 12
|
||||
|
||||
|
||||
csum_partial_copy_generic_i386:
|
||||
subl $4,%esp
|
||||
pushl %edi
|
||||
|
@@ -14,8 +14,8 @@
|
||||
|
||||
extern int modify_ldt(int func, void *ptr, unsigned long bytecount);
|
||||
|
||||
long write_ldt_entry(struct mm_id * mm_idp, int func, struct user_desc * desc,
|
||||
void **addr, int done)
|
||||
static long write_ldt_entry(struct mm_id *mm_idp, int func,
|
||||
struct user_desc *desc, void **addr, int done)
|
||||
{
|
||||
long res;
|
||||
|
||||
|
Reference in New Issue
Block a user