diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h index 84a6d5f..0ce924a 100644 --- a/include/scsi/scsi.h +++ b/include/scsi/scsi.h @@ -429,10 +429,12 @@ #define SCSI_IOCTL_GET_BUS_NUMBER 0x5386 /* Used to obtain the PCI location of a device */ #define SCSI_IOCTL_GET_PCI 0x5387 +#ifdef __KERNEL__ /* Pull a u32 out of a SCSI message (using BE SCSI conventions) */ static inline u32 scsi_to_u32(u8 *ptr) { return (ptr[0]<<24) + (ptr[1]<<16) + (ptr[2]<<8) + ptr[3]; } +#endif #endif /* _SCSI_SCSI_H */