2007-10-24 16:28:46

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] make ipc/util.c:sysvipc_find_ipc() static

sysvipc_find_ipc() can become static.

Signed-off-by: Adrian Bunk <[email protected]>

---
daadf1bd4c81e8b88cfc690cecace9adc8b783f0
diff --git a/ipc/util.c b/ipc/util.c
index 1aa0ebf..76c1f34 100644
--- a/ipc/util.c
+++ b/ipc/util.c
@@ -802,8 +802,8 @@ struct ipc_proc_iter {
/*
* This routine locks the ipc structure found at least at position pos.
*/
-struct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t pos,
- loff_t *new_pos)
+static struct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t pos,
+ loff_t *new_pos)
{
struct kern_ipc_perm *ipc;
int total, id;


2007-10-25 08:23:13

by Nadia Derbey

[permalink] [raw]
Subject: Re: [2.6 patch] make ipc/util.c:sysvipc_find_ipc() static

Adrian Bunk wrote:
> sysvipc_find_ipc() can become static.
>
> Signed-off-by: Adrian Bunk <[email protected]>
>
> ---
> daadf1bd4c81e8b88cfc690cecace9adc8b783f0
> diff --git a/ipc/util.c b/ipc/util.c
> index 1aa0ebf..76c1f34 100644
> --- a/ipc/util.c
> +++ b/ipc/util.c
> @@ -802,8 +802,8 @@ struct ipc_proc_iter {
> /*
> * This routine locks the ipc structure found at least at position pos.
> */
> -struct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t pos,
> - loff_t *new_pos)
> +static struct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t pos,
> + loff_t *new_pos)
> {
> struct kern_ipc_perm *ipc;
> int total, id;
>
>

Acked-by: Nadia Derbey <[email protected]>