lkml.org 
[lkml]   [2004]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] trivial fix for warning in kernel/power/console.c
Ian Campbell <icampbell@arcom.com> wrote:
>
> orig_fgconsole and orig_kmsg are only used in kernel/power/console.c if
> SUSPEND_CONSOLE is defined.
>
> Signed-off-by: Ian Campbell <icampbell@arcom.com>
>
> Index: 2.6-bk/kernel/power/console.c
> ===================================================================
> --- 2.6-bk.orig/kernel/power/console.c 2004-10-07 14:47:25.764724497 +0100
> +++ 2.6-bk/kernel/power/console.c 2004-10-07 14:47:54.241016791 +0100
> @@ -11,7 +11,9 @@
>
> static int new_loglevel = 10;
> static int orig_loglevel;
> +#ifdef SUSPEND_CONSOLE
> static int orig_fgconsole, orig_kmsg;
> +#endif

Not only that, orig_kmsg is assigned to but never read from.


-
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 14:06    [W:0.041 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site