mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] namespaces: Move get_mq() inside #ifdef CONFIG_SYSCTL
@ 2009-04-09 10:04 Geert Uytterhoeven
  2009-04-09 14:04 ` Serge E. Hallyn
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2009-04-09 10:04 UTC (permalink / raw)
  To: Serge E. Hallyn, Andrew Morton; +Cc: Linux Kernel Development

| ipc/mq_sysctl.c:26: warning: 'get_mq' defined but not used

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
---
 ipc/mq_sysctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ipc/mq_sysctl.c b/ipc/mq_sysctl.c
index 89f60ec..24ae46d 100644
--- a/ipc/mq_sysctl.c
+++ b/ipc/mq_sysctl.c
@@ -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;
@@ -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)
 {
-- 
1.6.0.4

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Techsoft Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] namespaces: Move get_mq() inside #ifdef CONFIG_SYSCTL
  2009-04-09 10:04 [PATCH] namespaces: Move get_mq() inside #ifdef CONFIG_SYSCTL Geert Uytterhoeven
@ 2009-04-09 14:04 ` Serge E. Hallyn
  0 siblings, 0 replies; 2+ messages in thread
From: Serge E. Hallyn @ 2009-04-09 14:04 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Andrew Morton, Linux Kernel Development

Quoting Geert Uytterhoeven (Geert.Uytterhoeven@sonycom.com):
> | ipc/mq_sysctl.c:26: warning: 'get_mq' defined but not used
> 
> Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>

Yup

Acked-by: Serge Hallyn <serue@us.ibm.com>

thanks,
-serge

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-09 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-09 10:04 [PATCH] namespaces: Move get_mq() inside #ifdef CONFIG_SYSCTL Geert Uytterhoeven
2009-04-09 14:04 ` Serge E. Hallyn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®