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>
Этот коммит содержится в:

коммит произвёл
Linus Torvalds

родитель
4a56758204
Коммит
99764fa4ce
@@ -185,7 +185,7 @@ unsigned long find_iomem(char *driver, unsigned long *len_out)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int setup_iomem(void)
|
||||
static int setup_iomem(void)
|
||||
{
|
||||
struct iomem_region *region = iomem_regions;
|
||||
unsigned long iomem_start = high_physmem + PAGE_SIZE;
|
||||
|
@@ -225,7 +225,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
|
||||
return ret;
|
||||
}
|
||||
|
||||
void send_sigtrap(struct task_struct *tsk, struct uml_pt_regs *regs,
|
||||
static void send_sigtrap(struct task_struct *tsk, struct uml_pt_regs *regs,
|
||||
int error_code)
|
||||
{
|
||||
struct siginfo info;
|
||||
|
@@ -13,14 +13,6 @@
|
||||
#include "kern_util.h"
|
||||
#include "os.h"
|
||||
|
||||
/*
|
||||
* Scheduler clock - returns current time in nanosec units.
|
||||
*/
|
||||
unsigned long long sched_clock(void)
|
||||
{
|
||||
return (unsigned long long)jiffies_64 * (NSEC_PER_SEC / HZ);
|
||||
}
|
||||
|
||||
void timer_handler(int sig, struct uml_pt_regs *regs)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
@@ -12,7 +12,7 @@
|
||||
#include <linux/string.h>
|
||||
#include "os.h"
|
||||
|
||||
void __do_copy(void *to, const void *from, int n)
|
||||
static void __do_copy(void *to, const void *from, int n)
|
||||
{
|
||||
memcpy(to, from, n);
|
||||
}
|
||||
|
Ссылка в новой задаче
Block a user