From: "Randy.Dunlap" From: Luiz Fernando Capitulino this patch fixes this warning: drivers/ide/pci/amd74xx.c:80: warning: `amd_udma2cyc' defined but not used when !CONFIG_PROC_FS. --- drivers/ide/pci/amd74xx.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/ide/pci/amd74xx.c~janitor-01-amd74xx-fix drivers/ide/pci/amd74xx.c --- 25/drivers/ide/pci/amd74xx.c~janitor-01-amd74xx-fix 2004-01-19 00:04:49.000000000 -0800 +++ 25-akpm/drivers/ide/pci/amd74xx.c 2004-01-19 00:04:49.000000000 -0800 @@ -76,9 +76,8 @@ static ide_pci_device_t *amd_chipset; static unsigned int amd_80w; static unsigned int amd_clock; -static unsigned char amd_cyc2udma[] = { 6, 6, 5, 4, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 7 }; -static unsigned char amd_udma2cyc[] = { 4, 6, 8, 10, 3, 2, 1, 15 }; static char *amd_dma[] = { "MWDMA16", "UDMA33", "UDMA66", "UDMA100", "UDMA133" }; +static unsigned char amd_cyc2udma[] = { 6, 6, 5, 4, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 7 }; /* * AMD /proc entry. @@ -89,6 +88,7 @@ static char *amd_dma[] = { "MWDMA16", "U #include #include +static unsigned char amd_udma2cyc[] = { 4, 6, 8, 10, 3, 2, 1, 15 }; static unsigned long amd_base; static struct pci_dev *bmide_dev; extern int (*amd74xx_display_info)(char *, char **, off_t, int); /* ide-proc.c */ _