linux_compat.h 420 B

123456789101112131415161718
  1. /* drivers/message/fusion/linux_compat.h */
  2. #ifndef FUSION_LINUX_COMPAT_H
  3. #define FUSION_LINUX_COMPAT_H
  4. #include <linux/version.h>
  5. #include <scsi/scsi_device.h>
  6. #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,6))
  7. static int inline scsi_device_online(struct scsi_device *sdev)
  8. {
  9. return sdev->online;
  10. }
  11. #endif
  12. /*}-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
  13. #endif /* _LINUX_COMPAT_H */