Re: [-mm patch] make ipc/shm.c:shm_nopage() static

2007-02-19 Thread Eric W. Biederman
Adrian Bunk <[EMAIL PROTECTED]> writes:

> On Thu, Feb 15, 2007 at 05:14:08AM -0800, Andrew Morton wrote:
>>...
>> Changes since 2.6.20-rc6-mm3:
>>...
>> +shm-make-sysv-ipc-shared-memory-use-stacked-files.patch
>>...
>>  Misc
>>...
>
>
> shm_nopage() can become static.

Acked-by: Eric W. Biederman <[EMAIL PROTECTED]>


>
> Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
>
> ---
> --- linux-2.6.20-mm2/ipc/shm.c.old2007-02-18 22:58:03.0 +0100
> +++ linux-2.6.20-mm2/ipc/shm.c2007-02-18 22:58:18.0 +0100
> @@ -226,8 +226,8 @@
>   mutex_unlock(_ids(ns).mutex);
>  }
>  
> -struct page *shm_nopage(struct vm_area_struct *vma, unsigned long address,
> - int *type)
> +static struct page *shm_nopage(struct vm_area_struct *vma,
> +unsigned long address, int *type)
>  {
>   struct file *file = vma->vm_file;
>   struct shm_file_data *sfd = shm_file_data(file);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[-mm patch] make ipc/shm.c:shm_nopage() static

2007-02-19 Thread Adrian Bunk
On Thu, Feb 15, 2007 at 05:14:08AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.20-rc6-mm3:
>...
> +shm-make-sysv-ipc-shared-memory-use-stacked-files.patch
>...
>  Misc
>...


shm_nopage() can become static.

Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>

---
--- linux-2.6.20-mm2/ipc/shm.c.old  2007-02-18 22:58:03.0 +0100
+++ linux-2.6.20-mm2/ipc/shm.c  2007-02-18 22:58:18.0 +0100
@@ -226,8 +226,8 @@
mutex_unlock(_ids(ns).mutex);
 }
 
-struct page *shm_nopage(struct vm_area_struct *vma, unsigned long address,
-   int *type)
+static struct page *shm_nopage(struct vm_area_struct *vma,
+  unsigned long address, int *type)
 {
struct file *file = vma->vm_file;
struct shm_file_data *sfd = shm_file_data(file);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[-mm patch] make ipc/shm.c:shm_nopage() static

2007-02-19 Thread Adrian Bunk
On Thu, Feb 15, 2007 at 05:14:08AM -0800, Andrew Morton wrote:
...
 Changes since 2.6.20-rc6-mm3:
...
 +shm-make-sysv-ipc-shared-memory-use-stacked-files.patch
...
  Misc
...


shm_nopage() can become static.

Signed-off-by: Adrian Bunk [EMAIL PROTECTED]

---
--- linux-2.6.20-mm2/ipc/shm.c.old  2007-02-18 22:58:03.0 +0100
+++ linux-2.6.20-mm2/ipc/shm.c  2007-02-18 22:58:18.0 +0100
@@ -226,8 +226,8 @@
mutex_unlock(shm_ids(ns).mutex);
 }
 
-struct page *shm_nopage(struct vm_area_struct *vma, unsigned long address,
-   int *type)
+static struct page *shm_nopage(struct vm_area_struct *vma,
+  unsigned long address, int *type)
 {
struct file *file = vma-vm_file;
struct shm_file_data *sfd = shm_file_data(file);

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [-mm patch] make ipc/shm.c:shm_nopage() static

2007-02-19 Thread Eric W. Biederman
Adrian Bunk [EMAIL PROTECTED] writes:

 On Thu, Feb 15, 2007 at 05:14:08AM -0800, Andrew Morton wrote:
...
 Changes since 2.6.20-rc6-mm3:
...
 +shm-make-sysv-ipc-shared-memory-use-stacked-files.patch
...
  Misc
...


 shm_nopage() can become static.

Acked-by: Eric W. Biederman [EMAIL PROTECTED]



 Signed-off-by: Adrian Bunk [EMAIL PROTECTED]

 ---
 --- linux-2.6.20-mm2/ipc/shm.c.old2007-02-18 22:58:03.0 +0100
 +++ linux-2.6.20-mm2/ipc/shm.c2007-02-18 22:58:18.0 +0100
 @@ -226,8 +226,8 @@
   mutex_unlock(shm_ids(ns).mutex);
  }
  
 -struct page *shm_nopage(struct vm_area_struct *vma, unsigned long address,
 - int *type)
 +static struct page *shm_nopage(struct vm_area_struct *vma,
 +unsigned long address, int *type)
  {
   struct file *file = vma-vm_file;
   struct shm_file_data *sfd = shm_file_data(file);
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/