mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
drivers/block/null_blk_main.c: fix layout
Each line here overflows 80 cols by exactly one character. Delete one tab per line to fix. Cc: Shaohua Li <shli@fb.com> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
889b331724
commit
ca0a95a6ac
@ -263,34 +263,34 @@ static ssize_t nullb_device_bool_attr_store(bool *val, const char *page,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* The following macro should only be used with TYPE = {uint, ulong, bool}. */
|
/* The following macro should only be used with TYPE = {uint, ulong, bool}. */
|
||||||
#define NULLB_DEVICE_ATTR(NAME, TYPE, APPLY) \
|
#define NULLB_DEVICE_ATTR(NAME, TYPE, APPLY) \
|
||||||
static ssize_t \
|
static ssize_t \
|
||||||
nullb_device_##NAME##_show(struct config_item *item, char *page) \
|
nullb_device_##NAME##_show(struct config_item *item, char *page) \
|
||||||
{ \
|
{ \
|
||||||
return nullb_device_##TYPE##_attr_show( \
|
return nullb_device_##TYPE##_attr_show( \
|
||||||
to_nullb_device(item)->NAME, page); \
|
to_nullb_device(item)->NAME, page); \
|
||||||
} \
|
} \
|
||||||
static ssize_t \
|
static ssize_t \
|
||||||
nullb_device_##NAME##_store(struct config_item *item, const char *page, \
|
nullb_device_##NAME##_store(struct config_item *item, const char *page, \
|
||||||
size_t count) \
|
size_t count) \
|
||||||
{ \
|
{ \
|
||||||
int (*apply_fn)(struct nullb_device *dev, TYPE new_value) = APPLY; \
|
int (*apply_fn)(struct nullb_device *dev, TYPE new_value) = APPLY;\
|
||||||
struct nullb_device *dev = to_nullb_device(item); \
|
struct nullb_device *dev = to_nullb_device(item); \
|
||||||
TYPE new_value; \
|
TYPE new_value; \
|
||||||
int ret; \
|
int ret; \
|
||||||
\
|
\
|
||||||
ret = nullb_device_##TYPE##_attr_store(&new_value, page, count); \
|
ret = nullb_device_##TYPE##_attr_store(&new_value, page, count);\
|
||||||
if (ret < 0) \
|
if (ret < 0) \
|
||||||
return ret; \
|
return ret; \
|
||||||
if (apply_fn) \
|
if (apply_fn) \
|
||||||
ret = apply_fn(dev, new_value); \
|
ret = apply_fn(dev, new_value); \
|
||||||
else if (test_bit(NULLB_DEV_FL_CONFIGURED, &dev->flags)) \
|
else if (test_bit(NULLB_DEV_FL_CONFIGURED, &dev->flags)) \
|
||||||
ret = -EBUSY; \
|
ret = -EBUSY; \
|
||||||
if (ret < 0) \
|
if (ret < 0) \
|
||||||
return ret; \
|
return ret; \
|
||||||
dev->NAME = new_value; \
|
dev->NAME = new_value; \
|
||||||
return count; \
|
return count; \
|
||||||
} \
|
} \
|
||||||
CONFIGFS_ATTR(nullb_device_, NAME);
|
CONFIGFS_ATTR(nullb_device_, NAME);
|
||||||
|
|
||||||
static int nullb_apply_submit_queues(struct nullb_device *dev,
|
static int nullb_apply_submit_queues(struct nullb_device *dev,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user