Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 350753 | Differences between
and this patch

Collapse All | Expand All

(-)a/vhba-module/vhba.c (-2 / +8 lines)
Lines 27-32 Link Here
27
#include <linux/miscdevice.h>
27
#include <linux/miscdevice.h>
28
#include <linux/poll.h>
28
#include <linux/poll.h>
29
#include <linux/slab.h>
29
#include <linux/slab.h>
30
#include <linux/version.h>
30
#ifdef CONFIG_COMPAT
31
#ifdef CONFIG_COMPAT
31
#include <linux/compat.h>
32
#include <linux/compat.h>
32
#endif
33
#endif
Lines 363-369 static void vhba_free_command(struct vhba_command *vcmd) Link Here
363
        spin_unlock_irqrestore(&vhost->cmd_lock, flags);
364
        spin_unlock_irqrestore(&vhost->cmd_lock, flags);
364
}
365
}
365
366
366
static int vhba_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *))
367
static int vhba_queuecommand_lck(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *))
367
{
368
{
368
        struct vhba_device *vdev;
369
        struct vhba_device *vdev;
369
        int retval;
370
        int retval;
Lines 388-393 static int vhba_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmn Link Here
388
        return retval;
389
        return retval;
389
}
390
}
390
391
392
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
393
DEF_SCSI_QCMD(vhba_queuecommand)
394
#else
395
#define vhba_queuecommand vhba_queuecommand_lck
396
#endif
397
391
static int vhba_abort(struct scsi_cmnd *cmd)
398
static int vhba_abort(struct scsi_cmnd *cmd)
392
{
399
{
393
        struct vhba_device *vdev;
400
        struct vhba_device *vdev;
394
- 

Return to bug 350753