aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rts5139/rts51x_scsi.h
diff options
context:
space:
mode:
authorRoger Tseng <rogerable@realtek.com>2012-10-19 17:43:34 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-22 15:58:22 -0700
commit355d8ae57be9d3a2fe5764f75e394063022b7866 (patch)
tree499383f0e818bd1745028efbbcc090104742404c /drivers/staging/rts5139/rts51x_scsi.h
parentStaging: ipack/carriers: fix missing include linux/slab.h (diff)
downloadlinux-dev-355d8ae57be9d3a2fe5764f75e394063022b7866.tar.xz
linux-dev-355d8ae57be9d3a2fe5764f75e394063022b7866.zip
staging: rts5139: fixed issues when config to built-in object
Fixed two issues when CONFIG_RTS5139=y : - Makefile doesn't take $(CONFIG_RTS5139). It always uses obj-m and built as a loadable module. - Rename some symbols with prefix 'rts51x_' to prevent symbol name collisions with drivers/staging/rts_pstor when both are configured to be built-in objects. drivers/staging/rts5139/built-in.o: In function `xd_cleanup_work': (.text+0x1435d): multiple definition of `xd_cleanup_work' drivers/staging/rts_pstor/built-in.o:(.text+0x2b96a): first defined here drivers/staging/rts5139/built-in.o: In function `release_xd_card': (.text+0x14393): multiple definition of `release_xd_card' drivers/staging/rts_pstor/built-in.o:(.text+0x2c491): first defined here drivers/staging/rts5139/built-in.o: In function `set_sense_data': (.text+0x1e02): multiple definition of `set_sense_data' drivers/staging/rts_pstor/built-in.o:(.text+0xa79f): first defined here drivers/staging/rts5139/built-in.o: In function `ms_delay_write': ... Signed-off-by: Roger Tseng <rogerable@realtek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rts5139/rts51x_scsi.h')
-rw-r--r--drivers/staging/rts5139/rts51x_scsi.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/rts5139/rts51x_scsi.h b/drivers/staging/rts5139/rts51x_scsi.h
index 9042bc98a9a0..cdfe550371ce 100644
--- a/drivers/staging/rts5139/rts51x_scsi.h
+++ b/drivers/staging/rts5139/rts51x_scsi.h
@@ -133,9 +133,9 @@ struct rts51x_chip;
#define SCSI 0x00 /* Interface ID */
-void scsi_show_command(struct scsi_cmnd *srb);
-void set_sense_type(struct rts51x_chip *chip, unsigned int lun, int sense_type);
-void set_sense_data(struct rts51x_chip *chip, unsigned int lun, u8 err_code,
+void rts51x_scsi_show_command(struct scsi_cmnd *srb);
+void rts51x_set_sense_type(struct rts51x_chip *chip, unsigned int lun, int sense_type);
+void rts51x_set_sense_data(struct rts51x_chip *chip, unsigned int lun, u8 err_code,
u8 sense_key, u32 info, u8 asc, u8 ascq, u8 sns_key_info0,
u16 sns_key_info1);