* [2.6 patch] ipc/shm.c: make 2 functions static
@ 2007-07-29 15:02 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2007-07-29 15:02 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
This patch makes two needlessly global functions static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch has been sent on:
- 6 Jul 2007
ipc/shm.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- linux-2.6.22-rc6-mm1/ipc/shm.c.old 2007-07-05 16:08:24.000000000 +0200
+++ linux-2.6.22-rc6-mm1/ipc/shm.c 2007-07-05 16:08:44.000000000 +0200
@@ -234,7 +234,7 @@
}
#ifdef CONFIG_NUMA
-int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new)
+static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new)
{
struct file *file = vma->vm_file;
struct shm_file_data *sfd = shm_file_data(file);
@@ -244,7 +244,8 @@
return err;
}
-struct mempolicy *shm_get_policy(struct vm_area_struct *vma, unsigned long addr)
+static struct mempolicy *shm_get_policy(struct vm_area_struct *vma,
+ unsigned long addr)
{
struct file *file = vma->vm_file;
struct shm_file_data *sfd = shm_file_data(file);
^ permalink raw reply [flat|nested] 2+ messages in thread* [2.6 patch] ipc/shm.c: make 2 functions static
@ 2007-07-05 23:23 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2007-07-05 23:23 UTC (permalink / raw)
To: linux-kernel
This patch makes two needlessly global functions static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
ipc/shm.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- linux-2.6.22-rc6-mm1/ipc/shm.c.old 2007-07-05 16:08:24.000000000 +0200
+++ linux-2.6.22-rc6-mm1/ipc/shm.c 2007-07-05 16:08:44.000000000 +0200
@@ -234,7 +234,7 @@
}
#ifdef CONFIG_NUMA
-int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new)
+static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new)
{
struct file *file = vma->vm_file;
struct shm_file_data *sfd = shm_file_data(file);
@@ -244,7 +244,8 @@
return err;
}
-struct mempolicy *shm_get_policy(struct vm_area_struct *vma, unsigned long addr)
+static struct mempolicy *shm_get_policy(struct vm_area_struct *vma,
+ unsigned long addr)
{
struct file *file = vma->vm_file;
struct shm_file_data *sfd = shm_file_data(file);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-29 15:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-29 15:02 [2.6 patch] ipc/shm.c: make 2 functions static Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2007-07-05 23:23 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox