diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-27 14:25:00 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-27 14:25:00 -0400 |
| commit | 064922a805ec7aadfafdd27aa6b4908d737c3c1d (patch) | |
| tree | 922d058f751964ccf73f5705d7c492b6d45a9425 /include | |
| parent | 42cadc86008aae0fd9ff31642dc01ed50723cf32 (diff) | |
| parent | ecc1241e80a0bdc854b1602a44be3ad106753d4f (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (40 commits)
[SCSI] jazz_esp, sgiwd93, sni_53c710, sun3x_esp: fix platform driver hotplug/coldplug
[SCSI] aic7xxx: add const
[SCSI] aic7xxx: add static
[SCSI] aic7xxx: Update _shipped files
[SCSI] aic7xxx: teach aicasm to not emit unused debug code/data
[SCSI] qla2xxx: Update version number to 8.02.01-k2.
[SCSI] qla2xxx: Correct regression in relogin code.
[SCSI] qla2xxx: Correct misc. endian and byte-ordering issues.
[SCSI] qla2xxx: make qla2x00_issue_iocb_timeout() static
[SCSI] qla2xxx: qla_os.c, make 2 functions static
[SCSI] qla2xxx: Re-register FDMI information after a LIP.
[SCSI] qla2xxx: Correct SRB usage-after-completion/free issues.
[SCSI] qla2xxx: Correct ISP84XX verify-chip response handling.
[SCSI] qla2xxx: Wakeup DPC thread to process any deferred-work requests.
[SCSI] qla2xxx: Collapse RISC-RAM retrieval code during a firmware-dump.
[SCSI] m68k: new mac_esp scsi driver
[SCSI] zfcp: Add some statistics provided by the FCP adapter to the sysfs
[SCSI] zfcp: Print some messages only during ERP
[SCSI] zfcp: Wait for free SBAL during exchange config
[SCSI] scsi_transport_fc: fc_user_scan correction
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/bsg.h | 14 | ||||
| -rw-r--r-- | include/linux/sysfs.h | 4 | ||||
| -rw-r--r-- | include/scsi/scsi_device.h | 3 |
3 files changed, 15 insertions, 6 deletions
diff --git a/include/linux/bsg.h b/include/linux/bsg.h index e8406c55c6d3..cf0303a60611 100644 --- a/include/linux/bsg.h +++ b/include/linux/bsg.h | |||
| @@ -56,19 +56,25 @@ struct sg_io_v4 { | |||
| 56 | #if defined(CONFIG_BLK_DEV_BSG) | 56 | #if defined(CONFIG_BLK_DEV_BSG) |
| 57 | struct bsg_class_device { | 57 | struct bsg_class_device { |
| 58 | struct device *class_dev; | 58 | struct device *class_dev; |
| 59 | struct device *dev; | 59 | struct device *parent; |
| 60 | int minor; | 60 | int minor; |
| 61 | struct request_queue *queue; | 61 | struct request_queue *queue; |
| 62 | struct kref ref; | ||
| 63 | void (*release)(struct device *); | ||
| 62 | }; | 64 | }; |
| 63 | 65 | ||
| 64 | extern int bsg_register_queue(struct request_queue *, struct device *, const char *); | 66 | extern int bsg_register_queue(struct request_queue *q, |
| 67 | struct device *parent, const char *name, | ||
| 68 | void (*release)(struct device *)); | ||
| 65 | extern void bsg_unregister_queue(struct request_queue *); | 69 | extern void bsg_unregister_queue(struct request_queue *); |
| 66 | #else | 70 | #else |
| 67 | static inline int bsg_register_queue(struct request_queue * rq, struct device *dev, const char *name) | 71 | static inline int bsg_register_queue(struct request_queue *q, |
| 72 | struct device *parent, const char *name, | ||
| 73 | void (*release)(struct device *)) | ||
| 68 | { | 74 | { |
| 69 | return 0; | 75 | return 0; |
| 70 | } | 76 | } |
| 71 | static inline void bsg_unregister_queue(struct request_queue *rq) | 77 | static inline void bsg_unregister_queue(struct request_queue *q) |
| 72 | { | 78 | { |
| 73 | } | 79 | } |
| 74 | #endif | 80 | #endif |
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 03378e3515b3..add3c5a40827 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
| @@ -32,7 +32,7 @@ struct attribute { | |||
| 32 | 32 | ||
| 33 | struct attribute_group { | 33 | struct attribute_group { |
| 34 | const char *name; | 34 | const char *name; |
| 35 | int (*is_visible)(struct kobject *, | 35 | mode_t (*is_visible)(struct kobject *, |
| 36 | struct attribute *, int); | 36 | struct attribute *, int); |
| 37 | struct attribute **attrs; | 37 | struct attribute **attrs; |
| 38 | }; | 38 | }; |
| @@ -105,6 +105,8 @@ void sysfs_remove_link(struct kobject *kobj, const char *name); | |||
| 105 | 105 | ||
| 106 | int __must_check sysfs_create_group(struct kobject *kobj, | 106 | int __must_check sysfs_create_group(struct kobject *kobj, |
| 107 | const struct attribute_group *grp); | 107 | const struct attribute_group *grp); |
| 108 | int sysfs_update_group(struct kobject *kobj, | ||
| 109 | const struct attribute_group *grp); | ||
| 108 | void sysfs_remove_group(struct kobject *kobj, | 110 | void sysfs_remove_group(struct kobject *kobj, |
| 109 | const struct attribute_group *grp); | 111 | const struct attribute_group *grp); |
| 110 | int sysfs_add_file_to_group(struct kobject *kobj, | 112 | int sysfs_add_file_to_group(struct kobject *kobj, |
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index b8b19e2f57bb..f6a9fe0ef09c 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
| @@ -181,7 +181,8 @@ struct scsi_device { | |||
| 181 | sdev_printk(prefix, (scmd)->device, fmt, ##a) | 181 | sdev_printk(prefix, (scmd)->device, fmt, ##a) |
| 182 | 182 | ||
| 183 | enum scsi_target_state { | 183 | enum scsi_target_state { |
| 184 | STARGET_RUNNING = 1, | 184 | STARGET_CREATED = 1, |
| 185 | STARGET_RUNNING, | ||
| 185 | STARGET_DEL, | 186 | STARGET_DEL, |
| 186 | }; | 187 | }; |
| 187 | 188 | ||
