: SiS warning fixes
PATCH 1/1 : SiS warning fixes
Somehow the sis_info133 external definition ended up in libata.h and that was included by both drivers. However libata.h contains libata-* specific internals and clashing defines like DRV_NAME so this makes a mess. Move the extern into the C file and remove the warnings
Signed-off-by Alan Cox <[email protected]>
drivers/ata/libata.h +0 -2
@@ -151,7 +151,5 @@/* libata-sff.c */ extern u8 ata_irq_on (struct ata_port *ap); -/* pata_sis.c */ -extern struct ata_port_info sis_info133;#endif /* __LIBATA_H__ */
drivers/ata/pata_sis.c +0 -1
@@ -32,7 +32,6 @@#include <scsi/scsi_host.h> #include <linux/libata.h> #include <linux/ata.h> -#include "libata.h" #define DRV_NAME "pata_sis"#define DRV_VERSION "0.4.5"
drivers/ata/sata_sis.c +3 -1
@@ -40,11 +40,13 @@#include <linux/device.h> #include <scsi/scsi_host.h> #include <linux/libata.h> -#include "libata.h" #define DRV_NAME "sata_sis"#define DRV_VERSION "0.7" +/* pata_sis.c */ +extern struct ata_port_info sis_info133; +enum { sis_180 =0 ,SIS_SCR_PCI_BAR =5 ,