Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101561
b: refs/heads/master
c: 5b635da
h: refs/heads/master
i:
  101559: 4f3e355
v: v3
  • Loading branch information
Martin K. Petersen authored and James Bottomley committed Jul 12, 2008
1 parent f162e77 commit a21f83e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa91696e56a0870db5754610e9f9b937e77507e0
refs/heads/master: 5b635da11e3a6387172abd651d26d8ef54b1fbc7
5 changes: 0 additions & 5 deletions trunk/drivers/scsi/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,6 @@ static int sd_major(int major_idx)
}
}

static inline struct scsi_disk *scsi_disk(struct gendisk *disk)
{
return container_of(disk->private_data, struct scsi_disk, driver);
}

static struct scsi_disk *__scsi_disk_get(struct gendisk *disk)
{
struct scsi_disk *sdkp = NULL;
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/scsi/sd.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ struct scsi_disk {
};
#define to_scsi_disk(obj) container_of(obj,struct scsi_disk,dev)

static inline struct scsi_disk *scsi_disk(struct gendisk *disk)
{
return container_of(disk->private_data, struct scsi_disk, driver);
}

#define sd_printk(prefix, sdsk, fmt, a...) \
(sdsk)->disk ? \
sdev_printk(prefix, (sdsk)->device, "[%s] " fmt, \
Expand Down

0 comments on commit a21f83e

Please sign in to comment.