Browse Source

[IA64] mca.c:121: warning: 'cpe_poll_timer' defined but not used

Only shows up while building sim_defconfig because CONFIG_ACPI=n
there, and all of the uses of cpe_poll_timer are inside #ifdef CONFIG_ACPI.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Tony Luck 18 năm trước cách đây
mục cha
commit
34eac2abcb
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      arch/ia64/kernel/mca.c

+ 2 - 0
arch/ia64/kernel/mca.c

@@ -118,7 +118,9 @@ static ia64_mc_info_t		ia64_mc_info;
 #define CPE_HISTORY_LENGTH    5
 #define CMC_HISTORY_LENGTH    5
 
+#ifdef CONFIG_ACPI
 static struct timer_list cpe_poll_timer;
+#endif
 static struct timer_list cmc_poll_timer;
 /*
  * This variable tells whether we are currently in polling mode.