restripe: fix compilation of "make test"
Signed-off-by: NeilBrown <neilb@suse.com>
This commit is contained in:
parent
b3774a48db
commit
ef639064b6
2
Makefile
2
Makefile
|
@ -211,7 +211,7 @@ mdmon : $(MON_OBJS) | check_rundir
|
||||||
msg.o: msg.c msg.h
|
msg.o: msg.c msg.h
|
||||||
|
|
||||||
test_stripe : restripe.c xmalloc.o mdadm.h
|
test_stripe : restripe.c xmalloc.o mdadm.h
|
||||||
$(CC) $(CXFLAGS) $(LDFLAGS) -o test_stripe xmalloc.o -DMAIN restripe.c
|
$(CC) $(CFLAGS) $(CXFLAGS) $(LDFLAGS) -o test_stripe xmalloc.o -DMAIN restripe.c
|
||||||
|
|
||||||
raid6check : raid6check.o mdadm.h $(CHECK_OBJS)
|
raid6check : raid6check.o mdadm.h $(CHECK_OBJS)
|
||||||
$(CC) $(CXFLAGS) $(LDFLAGS) -o raid6check raid6check.o $(CHECK_OBJS)
|
$(CC) $(CXFLAGS) $(LDFLAGS) -o raid6check raid6check.o $(CHECK_OBJS)
|
||||||
|
|
|
@ -434,7 +434,7 @@ void raid6_datap_recov(int disks, size_t bytes, int faila, uint8_t **ptrs,
|
||||||
/* Try to find out if a specific disk has a problem */
|
/* Try to find out if a specific disk has a problem */
|
||||||
int raid6_check_disks(int data_disks, int start, int chunk_size,
|
int raid6_check_disks(int data_disks, int start, int chunk_size,
|
||||||
int level, int layout, int diskP, int diskQ,
|
int level, int layout, int diskP, int diskQ,
|
||||||
char *p, char *q, char **stripes)
|
uint8_t *p, uint8_t *q, char **stripes)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int data_id, diskD;
|
int data_id, diskD;
|
||||||
|
@ -827,8 +827,8 @@ int test_stripes(int *source, unsigned long long *offsets,
|
||||||
char *stripe_buf = xmalloc(raid_disks * chunk_size);
|
char *stripe_buf = xmalloc(raid_disks * chunk_size);
|
||||||
char **stripes = xmalloc(raid_disks * sizeof(char*));
|
char **stripes = xmalloc(raid_disks * sizeof(char*));
|
||||||
char **blocks = xmalloc(raid_disks * sizeof(char*));
|
char **blocks = xmalloc(raid_disks * sizeof(char*));
|
||||||
char *p = xmalloc(chunk_size);
|
uint8_t *p = xmalloc(chunk_size);
|
||||||
char *q = xmalloc(chunk_size);
|
uint8_t *q = xmalloc(chunk_size);
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
int diskP, diskQ;
|
int diskP, diskQ;
|
||||||
|
|
Loading…
Reference in New Issue