Skip to content

Commit 02f10ba

Browse files
mauelshaMike Snitzer
authored andcommitted
dm: add argument identifier names
Signed-off-by: Heinz Mauelshagen <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 8ca817c commit 02f10ba

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

drivers/md/dm-bufio.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ struct dm_bufio_client {
9292
struct block_device *bdev;
9393
unsigned int block_size;
9494
s8 sectors_per_block_bits;
95-
void (*alloc_callback)(struct dm_buffer *);
96-
void (*write_callback)(struct dm_buffer *);
95+
void (*alloc_callback)(struct dm_buffer *buf);
96+
void (*write_callback)(struct dm_buffer *buf);
9797
struct kmem_cache *slab_buffer;
9898
struct kmem_cache *slab_cache;
9999
struct dm_io_client *dm_io;
@@ -156,7 +156,7 @@ struct dm_buffer {
156156
unsigned int write_end;
157157
struct dm_bufio_client *c;
158158
struct list_head write_list;
159-
void (*end_io)(struct dm_buffer *, blk_status_t);
159+
void (*end_io)(struct dm_buffer *buf, blk_status_t stat);
160160
#ifdef CONFIG_DM_DEBUG_BLOCK_STACK_TRACING
161161
#define MAX_STACK 10
162162
unsigned int stack_len;

drivers/md/dm-core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ struct dm_table {
217217
struct list_head devices;
218218

219219
/* events get handed up using this callback */
220-
void (*event_fn)(void *);
220+
void (*event_fn)(void *data);
221221
void *event_context;
222222

223223
struct dm_md_mempools *mempools;

drivers/md/dm-era-target.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ struct digest {
682682
__le32 value;
683683
struct dm_disk_bitset info;
684684

685-
int (*step)(struct era_metadata *, struct digest *);
685+
int (*step)(struct era_metadata *md, struct digest *d);
686686
};
687687

688688
static int metadata_digest_lookup_writeset(struct era_metadata *md,
@@ -1193,8 +1193,8 @@ struct era {
11931193
struct rpc {
11941194
struct list_head list;
11951195

1196-
int (*fn0)(struct era_metadata *);
1197-
int (*fn1)(struct era_metadata *, void *);
1196+
int (*fn0)(struct era_metadata *md);
1197+
int (*fn1)(struct era_metadata *md, void *ref);
11981198
void *arg;
11991199
int result;
12001200

@@ -1388,7 +1388,7 @@ static int perform_rpc(struct era *era, struct rpc *rpc)
13881388
return rpc->result;
13891389
}
13901390

1391-
static int in_worker0(struct era *era, int (*fn)(struct era_metadata *))
1391+
static int in_worker0(struct era *era, int (*fn)(struct era_metadata *md))
13921392
{
13931393
struct rpc rpc;
13941394
rpc.fn0 = fn;
@@ -1398,7 +1398,7 @@ static int in_worker0(struct era *era, int (*fn)(struct era_metadata *))
13981398
}
13991399

14001400
static int in_worker1(struct era *era,
1401-
int (*fn)(struct era_metadata *, void *), void *arg)
1401+
int (*fn)(struct era_metadata *md, void *ref), void *arg)
14021402
{
14031403
struct rpc rpc;
14041404
rpc.fn0 = NULL;

drivers/md/dm-snap-persistent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ struct core_exception {
9595
};
9696

9797
struct commit_callback {
98-
void (*callback)(void *, int success);
98+
void (*callback)(void *ref, int success);
9999
void *context;
100100
};
101101

drivers/md/dm-sysfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
struct dm_sysfs_attr {
1414
struct attribute attr;
15-
ssize_t (*show)(struct mapped_device *, char *);
16-
ssize_t (*store)(struct mapped_device *, const char *, size_t count);
15+
ssize_t (*show)(struct mapped_device *md, char *p);
16+
ssize_t (*store)(struct mapped_device *md, const char *p, size_t count);
1717
};
1818

1919
#define DM_ATTR_RO(_name) \

0 commit comments

Comments
 (0)