scsi ch.c build fix
PATCH 2/2 scsi ch.c build fix
- workaround for gcc-2.95 macro expansion bug
- fix a warning:
drivers/scsi/ch.c:100: warning: ch_ioctl_compat' declared static' but never defined
Signed-off-by Andrew Morton <[email protected]>
---
25-akpm/drivers/scsi/ch.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-)
drivers/scsi/ch.c renamed from drivers/scsi/ch.c~scsi-ch-build-fix +3 -1
@@ -82,7 +82,7 @@ static char *vendor_labels[CH_TYPES-4] =// module_param_string_array(vendor_labels, NULL, 0444); #define dprintk(fmt, arg...) if (debug) \ - printk(KERN_DEBUG "%s: " fmt, ch->name, ##arg) + printk(KERN_DEBUG "%s: " fmt, ch->name , ##arg) #define vprintk(fmt, arg...) if (verbose) \ printk(KERN_INFO "%s: " fmt, ch->name, ##arg)
@@ -96,8 +96,10 @@ static int ch_open(struct inode * inodestatic int ch_release (struct inode * inode,struct file * filp);static int ch_ioctl (struct inode * inode,struct file * filp,unsigned int cmd,unsigned long arg); +#ifdef CONFIG_COMPAT static long ch_ioctl_compat (struct file * filp,unsigned int cmd,unsigned long arg); +#endif typedef struct { struct list_head list;
_