summaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_sis.c
diff options
context:
space:
mode:
authorAlan2007-02-16 10:40:04 +0100
committerJeff Garzik2007-02-21 10:58:17 +0100
commit4bb64fb98168981d3e5a0e790c077ff511768e84 (patch)
tree0eb8abc40dc6777fb9ee0b98ae988904c2127b6b /drivers/ata/sata_sis.c
parentlibata bugfix: HDIO_DRIVE_TASK (diff)
downloadkernel-qcow2-linux-4bb64fb98168981d3e5a0e790c077ff511768e84.tar.gz
kernel-qcow2-linux-4bb64fb98168981d3e5a0e790c077ff511768e84.tar.xz
kernel-qcow2-linux-4bb64fb98168981d3e5a0e790c077ff511768e84.zip
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 [akpm@linux-foundation.org: create sis.h to avoid extern-decl-in-C] Signed-off-by: Alan Cox <alan@redhat.com> Cc: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/sata_sis.c')
-rw-r--r--drivers/ata/sata_sis.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/sata_sis.c b/drivers/ata/sata_sis.c
index 49c9e2bd706f..fd694b6a6f8a 100644
--- a/drivers/ata/sata_sis.c
+++ b/drivers/ata/sata_sis.c
@@ -40,9 +40,8 @@
#include <linux/device.h>
#include <scsi/scsi_host.h>
#include <linux/libata.h>
-#include "libata.h"
+#include "sis.h"
-#undef DRV_NAME /* already defined in libata.h, for libata-core */
#define DRV_NAME "sata_sis"
#define DRV_VERSION "0.7"