From: Adrian Bunk <bunk@stusta.de>
To: Andrew Morton <akpm@osdl.org>
Cc: phil.el@wanadoo.fr, oprofile-list@lists.sf.net,
linux-kernel@vger.kernel.org
Subject: [2.6 patch] oprofile: make some code static
Date: Fri, 11 Mar 2005 19:16:32 +0100 [thread overview]
Message-ID: <20050311181632.GJ3723@stusta.de> (raw)
This patch makes some needlessly global code static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch was already sent on:
- 19 Feb 2005
drivers/oprofile/buffer_sync.c | 6 +++---
drivers/oprofile/cpu_buffer.c | 2 +-
drivers/oprofile/event_buffer.c | 7 ++++---
3 files changed, 8 insertions(+), 7 deletions(-)
--- linux-2.6.11-rc3-mm2-full/drivers/oprofile/buffer_sync.c.old 2005-02-17 22:18:31.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/oprofile/buffer_sync.c 2005-02-17 22:19:25.000000000 +0100
@@ -34,9 +34,9 @@
static LIST_HEAD(dying_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);
-void process_task_mortuary(void);
+static void process_task_mortuary(void);
/* Take ownership of the task struct and place it on the
@@ -422,7 +422,7 @@
* and to have reached the list, it must have gone through
* one full sync already.
*/
-void process_task_mortuary(void)
+static void process_task_mortuary(void)
{
struct list_head * pos;
struct list_head * pos2;
--- linux-2.6.11-rc3-mm2-full/drivers/oprofile/cpu_buffer.c.old 2005-02-17 22:20:01.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/oprofile/cpu_buffer.c 2005-02-17 22:20:10.000000000 +0100
@@ -32,7 +32,7 @@
static void wq_sync_buffer(void *);
#define DEFAULT_TIMER_EXPIRE (HZ / 10)
-int work_enabled;
+static int work_enabled;
void free_cpu_buffers(void)
{
--- linux-2.6.11-rc3-mm2-full/drivers/oprofile/event_buffer.c.old 2005-02-17 22:20:45.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/oprofile/event_buffer.c 2005-02-17 22:21:38.000000000 +0100
@@ -94,7 +94,7 @@
}
-int event_buffer_open(struct inode * inode, struct file * file)
+static int event_buffer_open(struct inode * inode, struct file * file)
{
int err = -EPERM;
@@ -130,7 +130,7 @@
}
-int event_buffer_release(struct inode * inode, struct file * file)
+static int event_buffer_release(struct inode * inode, struct file * file)
{
oprofile_stop();
oprofile_shutdown();
@@ -142,7 +142,8 @@
}
-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;
size_t const max = buffer_size * sizeof(unsigned long);
next reply other threads:[~2005-03-11 18:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-11 18:16 Adrian Bunk [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-02-18 23:48 [2.6 patch] oprofile: make some code static Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050311181632.GJ3723@stusta.de \
--to=bunk@stusta.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oprofile-list@lists.sf.net \
--cc=phil.el@wanadoo.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox