Skip to content

Commit

Permalink
namespaces: move get_mq() inside #ifdef CONFIG_SYSCTL
Browse files Browse the repository at this point in the history
| ipc/mq_sysctl.c:26: warning: 'get_mq' defined but not used

Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Serge Hallyn <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Geert Uytterhoeven authored and torvalds committed Apr 13, 2009
1 parent 17a5138 commit f26ec5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipc/mq_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define MIN_MSGSIZEMAX 128 /* min value for msgsize_max */
#define MAX_MSGSIZEMAX (8192*128) /* max value for msgsize_max */

#ifdef CONFIG_PROC_SYSCTL
static void *get_mq(ctl_table *table)
{
char *which = table->data;
Expand All @@ -30,7 +31,6 @@ static void *get_mq(ctl_table *table)
return which;
}

#ifdef CONFIG_PROC_SYSCTL
static int proc_mq_dointvec(ctl_table *table, int write, struct file *filp,
void __user *buffer, size_t *lenp, loff_t *ppos)
{
Expand Down

0 comments on commit f26ec5b

Please sign in to comment.