lkml.org 
[lkml]   [2003]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] drivers/input/input.c compile warning fix
Hi!

$ make allnoconfig
$ make

CC drivers/input/input.o
drivers/input/input.c: In function `input_init':
drivers/input/input.c:687: warning: unused variable `entry'

Perhaps following patch could remove that warning. Linus don't like use
of #ifdefs but they are already used in that file.

Best regards,
Petri Koistinen

--- linux-2.5/drivers/input/input.c.orig 2003-09-05 13:36:19.000000000 +0300
+++ linux-2.5/drivers/input/input.c 2003-09-05 13:36:58.000000000 +0300
@@ -684,7 +684,9 @@

static int __init input_init(void)
{
+#ifdef CONFIG_PROC_FS
struct proc_dir_entry *entry;
+#endif
int retval = -ENOMEM;

class_register(&input_class);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.025 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site