diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-integrity.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/block/blk-integrity.c b/block/blk-integrity.c index 65f23ef38bbe..4ffa3814f6a9 100644 --- a/block/blk-integrity.c +++ b/block/blk-integrity.c | |||
@@ -178,8 +178,9 @@ static ssize_t integrity_attr_show(struct kobject *kobj, struct attribute *attr, | |||
178 | return entry->show(bi, page); | 178 | return entry->show(bi, page); |
179 | } | 179 | } |
180 | 180 | ||
181 | static ssize_t integrity_attr_store(struct kobject *kobj, struct attribute *attr, | 181 | static ssize_t integrity_attr_store(struct kobject *kobj, |
182 | const char *page, size_t count) | 182 | struct attribute *attr, const char *page, |
183 | size_t count) | ||
183 | { | 184 | { |
184 | struct blk_integrity *bi = | 185 | struct blk_integrity *bi = |
185 | container_of(kobj, struct blk_integrity, kobj); | 186 | container_of(kobj, struct blk_integrity, kobj); |
@@ -326,7 +327,8 @@ int blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) | |||
326 | BUG_ON(template == NULL); | 327 | BUG_ON(template == NULL); |
327 | 328 | ||
328 | if (disk->integrity == NULL) { | 329 | if (disk->integrity == NULL) { |
329 | bi = kmem_cache_alloc(integrity_cachep, GFP_KERNEL | __GFP_ZERO); | 330 | bi = kmem_cache_alloc(integrity_cachep, |
331 | GFP_KERNEL | __GFP_ZERO); | ||
330 | if (!bi) | 332 | if (!bi) |
331 | return -1; | 333 | return -1; |
332 | 334 | ||