diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 16:40:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 16:40:20 -0400 |
commit | dc690d8ef842b464f1c429a376ca16cb8dbee6ae (patch) | |
tree | 77955849af5a15755f5e55e24ae4b9c520583a72 /drivers/scsi/lpfc | |
parent | 57399ec9077a4b962b81037aaa279fab52f5e989 (diff) | |
parent | 91a6902958f052358899f58683d44e36228d85c2 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6: (61 commits)
sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes
sysfs: make directory dentries and inodes reclaimable
sysfs: implement sysfs_get_dentry()
sysfs: move sysfs_drop_dentry() to dir.c and make it static
sysfs: restructure add/remove paths and fix inode update
sysfs: use sysfs_mutex to protect the sysfs_dirent tree
sysfs: consolidate sysfs spinlocks
sysfs: make kobj point to sysfs_dirent instead of dentry
sysfs: implement sysfs_find_dirent() and sysfs_get_dirent()
sysfs: implement SYSFS_FLAG_REMOVED flag
sysfs: rename sysfs_dirent->s_type to s_flags and make room for flags
sysfs: make sysfs_drop_dentry() access inodes using ilookup()
sysfs: Fix oops in sysfs_drop_dentry on x86_64
sysfs: use singly-linked list for sysfs_dirent tree
sysfs: slim down sysfs_dirent->s_active
sysfs: move s_active functions to fs/sysfs/dir.c
sysfs: fix root sysfs_dirent -> root dentry association
sysfs: use iget_locked() instead of new_inode()
sysfs: reorganize sysfs_new_indoe() and sysfs_create()
sysfs: fix parent refcounting during rename and move
...
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 95fe77e816f8..5dfda9778c80 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -1133,7 +1133,8 @@ struct class_device_attribute *lpfc_host_attrs[] = { | |||
1133 | }; | 1133 | }; |
1134 | 1134 | ||
1135 | static ssize_t | 1135 | static ssize_t |
1136 | sysfs_ctlreg_write(struct kobject *kobj, char *buf, loff_t off, size_t count) | 1136 | sysfs_ctlreg_write(struct kobject *kobj, struct bin_attribute *bin_attr, |
1137 | char *buf, loff_t off, size_t count) | ||
1137 | { | 1138 | { |
1138 | size_t buf_off; | 1139 | size_t buf_off; |
1139 | struct Scsi_Host *host = class_to_shost(container_of(kobj, | 1140 | struct Scsi_Host *host = class_to_shost(container_of(kobj, |
@@ -1165,7 +1166,8 @@ sysfs_ctlreg_write(struct kobject *kobj, char *buf, loff_t off, size_t count) | |||
1165 | } | 1166 | } |
1166 | 1167 | ||
1167 | static ssize_t | 1168 | static ssize_t |
1168 | sysfs_ctlreg_read(struct kobject *kobj, char *buf, loff_t off, size_t count) | 1169 | sysfs_ctlreg_read(struct kobject *kobj, struct bin_attribute *bin_attr, |
1170 | char *buf, loff_t off, size_t count) | ||
1169 | { | 1171 | { |
1170 | size_t buf_off; | 1172 | size_t buf_off; |
1171 | uint32_t * tmp_ptr; | 1173 | uint32_t * tmp_ptr; |
@@ -1200,7 +1202,6 @@ static struct bin_attribute sysfs_ctlreg_attr = { | |||
1200 | .attr = { | 1202 | .attr = { |
1201 | .name = "ctlreg", | 1203 | .name = "ctlreg", |
1202 | .mode = S_IRUSR | S_IWUSR, | 1204 | .mode = S_IRUSR | S_IWUSR, |
1203 | .owner = THIS_MODULE, | ||
1204 | }, | 1205 | }, |
1205 | .size = 256, | 1206 | .size = 256, |
1206 | .read = sysfs_ctlreg_read, | 1207 | .read = sysfs_ctlreg_read, |
@@ -1222,7 +1223,8 @@ sysfs_mbox_idle (struct lpfc_hba * phba) | |||
1222 | } | 1223 | } |
1223 | 1224 | ||
1224 | static ssize_t | 1225 | static ssize_t |
1225 | sysfs_mbox_write(struct kobject *kobj, char *buf, loff_t off, size_t count) | 1226 | sysfs_mbox_write(struct kobject *kobj, struct bin_attribute *bin_attr, |
1227 | char *buf, loff_t off, size_t count) | ||
1226 | { | 1228 | { |
1227 | struct Scsi_Host * host = | 1229 | struct Scsi_Host * host = |
1228 | class_to_shost(container_of(kobj, struct class_device, kobj)); | 1230 | class_to_shost(container_of(kobj, struct class_device, kobj)); |
@@ -1274,7 +1276,8 @@ sysfs_mbox_write(struct kobject *kobj, char *buf, loff_t off, size_t count) | |||
1274 | } | 1276 | } |
1275 | 1277 | ||
1276 | static ssize_t | 1278 | static ssize_t |
1277 | sysfs_mbox_read(struct kobject *kobj, char *buf, loff_t off, size_t count) | 1279 | sysfs_mbox_read(struct kobject *kobj, struct bin_attribute *bin_attr, |
1280 | char *buf, loff_t off, size_t count) | ||
1278 | { | 1281 | { |
1279 | struct Scsi_Host *host = | 1282 | struct Scsi_Host *host = |
1280 | class_to_shost(container_of(kobj, struct class_device, | 1283 | class_to_shost(container_of(kobj, struct class_device, |
@@ -1422,7 +1425,6 @@ static struct bin_attribute sysfs_mbox_attr = { | |||
1422 | .attr = { | 1425 | .attr = { |
1423 | .name = "mbox", | 1426 | .name = "mbox", |
1424 | .mode = S_IRUSR | S_IWUSR, | 1427 | .mode = S_IRUSR | S_IWUSR, |
1425 | .owner = THIS_MODULE, | ||
1426 | }, | 1428 | }, |
1427 | .size = MAILBOX_CMD_SIZE, | 1429 | .size = MAILBOX_CMD_SIZE, |
1428 | .read = sysfs_mbox_read, | 1430 | .read = sysfs_mbox_read, |