From: Masahiro A. <m-...@aa...> - 2001-07-24 01:08:06
|
Here is the patch to eliminate "unused variable" warning in arch/sh/kernel/setup.c. OK to commit? ----- Index: kernel/ChangeLog =================================================================== RCS file: /cvsroot/linuxsh/kernel/ChangeLog,v retrieving revision 1.277 diff -u -r1.277 ChangeLog --- kernel/ChangeLog 2001/07/23 10:43:42 1.277 +++ kernel/ChangeLog 2001/07/24 00:54:43 @@ -1,3 +1,8 @@ +2001-07-24 Masahiro ABE <m-...@aa...> + + * arch/sh/kernel/setup.c (setup_arch): #ifdef mv_unknown to eliminate + warning. + 2001-07-23 NIIBE Yutaka <gn...@m1...> * arch/sh/kernel/time.c (do_timer_interrupt): Remove #if 0 for Index: kernel/arch/sh/kernel/setup.c =================================================================== RCS file: /cvsroot/linuxsh/kernel/arch/sh/kernel/setup.c,v retrieving revision 1.28 diff -u -r1.28 setup.c --- kernel/arch/sh/kernel/setup.c 2001/07/18 04:24:43 1.28 +++ kernel/arch/sh/kernel/setup.c 2001/07/24 00:54:54 @@ -267,7 +267,9 @@ void __init setup_arch(char **cmdline_p) { +#if defined(CONFIG_SH_GENERIC) || defined(CONFIG_SH_UNKNOWN) extern struct sh_machine_vector mv_unknown; +#endif struct sh_machine_vector *mv = NULL; char mv_name[MV_NAME_SIZE] = ""; unsigned long mv_io_base = 0; ----- ================================= Masahiro ABE, A&D Co., Ltd. Japan |