From: Andrew Morton drivers/edac/edac_mc.c: In function `edac_mc_scrub_block': drivers/edac/edac_mc.c:739: warning: unused variable `i' drivers/edac/edac_mc.c: At top level: drivers/edac/edac_mc.c:89: warning: `dimm_labels' defined but not used drivers/edac/edac_mc.c:135: warning: `counter_reset' defined but not used Cc: Alan Cox Signed-off-by: Andrew Morton --- drivers/edac/edac_mc.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff -puN drivers/edac/edac_mc.c~edac-core-edac-support-code-fixes drivers/edac/edac_mc.c --- devel/drivers/edac/edac_mc.c~edac-core-edac-support-code-fixes 2005-10-15 21:58:10.000000000 -0700 +++ devel-akpm/drivers/edac/edac_mc.c 2005-10-15 21:58:10.000000000 -0700 @@ -65,7 +65,10 @@ static DECLARE_MUTEX(mem_ctls_mutex); static struct list_head mc_devices = LIST_HEAD_INIT(mc_devices); -static struct mem_ctl_info * find_mc_by_idx (int idx) +#ifdef CONFIG_SYSCTL + +#if 0 +static struct mem_ctl_info *find_mc_by_idx(int idx) { struct list_head *item; struct mem_ctl_info *mci; @@ -84,7 +87,6 @@ static struct mem_ctl_info * find_mc_by_ return NULL; } -#ifdef CONFIG_SYSCTL static void dimm_labels(char *buf, void *data) { int mcidx, ridx, chidx; @@ -130,7 +132,6 @@ static void dimm_labels(char *buf, void */ } - static void counter_reset(char *buf, void *data) { char *p = buf; @@ -165,7 +166,7 @@ static void counter_reset(char *buf, voi out: up(&mem_ctls_mutex); } - +#endif static ctl_table mc_table[] = { {-1, "panic_on_ue", &panic_on_ue, @@ -736,7 +737,6 @@ void edac_mc_scrub_block(unsigned long p { struct page *pg; unsigned long *virt_addr; - int i; debugf3("MC: " __FILE__ ": %s()\n", __func__); _