Commit 57fcd109 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] oprofile: make some code static

This patch makes some needlessly global code static.
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 2425d5f4
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
static LIST_HEAD(dying_tasks); static LIST_HEAD(dying_tasks);
static LIST_HEAD(dead_tasks); static LIST_HEAD(dead_tasks);
cpumask_t marked_cpus = CPU_MASK_NONE; static cpumask_t marked_cpus = CPU_MASK_NONE;
static DEFINE_SPINLOCK(task_mortuary); static DEFINE_SPINLOCK(task_mortuary);
void process_task_mortuary(void); static void process_task_mortuary(void);
/* Take ownership of the task struct and place it on the /* Take ownership of the task struct and place it on the
...@@ -422,7 +422,7 @@ static void increment_tail(struct oprofile_cpu_buffer * b) ...@@ -422,7 +422,7 @@ static void increment_tail(struct oprofile_cpu_buffer * b)
* and to have reached the list, it must have gone through * and to have reached the list, it must have gone through
* one full sync already. * one full sync already.
*/ */
void process_task_mortuary(void) static void process_task_mortuary(void)
{ {
struct list_head * pos; struct list_head * pos;
struct list_head * pos2; struct list_head * pos2;
......
...@@ -32,7 +32,7 @@ struct oprofile_cpu_buffer cpu_buffer[NR_CPUS] __cacheline_aligned; ...@@ -32,7 +32,7 @@ struct oprofile_cpu_buffer cpu_buffer[NR_CPUS] __cacheline_aligned;
static void wq_sync_buffer(void *); static void wq_sync_buffer(void *);
#define DEFAULT_TIMER_EXPIRE (HZ / 10) #define DEFAULT_TIMER_EXPIRE (HZ / 10)
int work_enabled; static int work_enabled;
void free_cpu_buffers(void) void free_cpu_buffers(void)
{ {
......
...@@ -94,7 +94,7 @@ void free_event_buffer(void) ...@@ -94,7 +94,7 @@ void free_event_buffer(void)
} }
int event_buffer_open(struct inode * inode, struct file * file) static int event_buffer_open(struct inode * inode, struct file * file)
{ {
int err = -EPERM; int err = -EPERM;
...@@ -130,7 +130,7 @@ int event_buffer_open(struct inode * inode, struct file * file) ...@@ -130,7 +130,7 @@ int event_buffer_open(struct inode * inode, struct file * file)
} }
int event_buffer_release(struct inode * inode, struct file * file) static int event_buffer_release(struct inode * inode, struct file * file)
{ {
oprofile_stop(); oprofile_stop();
oprofile_shutdown(); oprofile_shutdown();
...@@ -142,7 +142,8 @@ int event_buffer_release(struct inode * inode, struct file * file) ...@@ -142,7 +142,8 @@ int event_buffer_release(struct inode * inode, struct file * file)
} }
ssize_t event_buffer_read(struct file * file, char __user * buf, size_t count, loff_t * offset) static ssize_t event_buffer_read(struct file * file, char __user * buf,
size_t count, loff_t * offset)
{ {
int retval = -EINVAL; int retval = -EINVAL;
size_t const max = buffer_size * sizeof(unsigned long); size_t const max = buffer_size * sizeof(unsigned long);
......
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