diff options
Diffstat (limited to 'drivers/block/osdblk.c')
-rw-r--r-- | drivers/block/osdblk.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/block/osdblk.c b/drivers/block/osdblk.c index a808b1530b3b..6cd8b705b11b 100644 --- a/drivers/block/osdblk.c +++ b/drivers/block/osdblk.c | |||
@@ -63,6 +63,7 @@ | |||
63 | #include <linux/device.h> | 63 | #include <linux/device.h> |
64 | #include <linux/module.h> | 64 | #include <linux/module.h> |
65 | #include <linux/fs.h> | 65 | #include <linux/fs.h> |
66 | #include <linux/slab.h> | ||
66 | #include <scsi/osd_initiator.h> | 67 | #include <scsi/osd_initiator.h> |
67 | #include <scsi/osd_attributes.h> | 68 | #include <scsi/osd_attributes.h> |
68 | #include <scsi/osd_sec.h> | 69 | #include <scsi/osd_sec.h> |
@@ -476,7 +477,9 @@ static void class_osdblk_release(struct class *cls) | |||
476 | kfree(cls); | 477 | kfree(cls); |
477 | } | 478 | } |
478 | 479 | ||
479 | static ssize_t class_osdblk_list(struct class *c, char *data) | 480 | static ssize_t class_osdblk_list(struct class *c, |
481 | struct class_attribute *attr, | ||
482 | char *data) | ||
480 | { | 483 | { |
481 | int n = 0; | 484 | int n = 0; |
482 | struct list_head *tmp; | 485 | struct list_head *tmp; |
@@ -500,7 +503,9 @@ static ssize_t class_osdblk_list(struct class *c, char *data) | |||
500 | return n; | 503 | return n; |
501 | } | 504 | } |
502 | 505 | ||
503 | static ssize_t class_osdblk_add(struct class *c, const char *buf, size_t count) | 506 | static ssize_t class_osdblk_add(struct class *c, |
507 | struct class_attribute *attr, | ||
508 | const char *buf, size_t count) | ||
504 | { | 509 | { |
505 | struct osdblk_device *osdev; | 510 | struct osdblk_device *osdev; |
506 | ssize_t rc; | 511 | ssize_t rc; |
@@ -592,7 +597,9 @@ err_out_mod: | |||
592 | return rc; | 597 | return rc; |
593 | } | 598 | } |
594 | 599 | ||
595 | static ssize_t class_osdblk_remove(struct class *c, const char *buf, | 600 | static ssize_t class_osdblk_remove(struct class *c, |
601 | struct class_attribute *attr, | ||
602 | const char *buf, | ||
596 | size_t count) | 603 | size_t count) |
597 | { | 604 | { |
598 | struct osdblk_device *osdev = NULL; | 605 | struct osdblk_device *osdev = NULL; |