diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/btree.c | 5 | ||||
| -rw-r--r-- | lib/raid6/recov.c | 7 | ||||
| -rw-r--r-- | lib/raid6/recov_ssse3.c | 7 |
3 files changed, 11 insertions, 8 deletions
diff --git a/lib/btree.c b/lib/btree.c index e5ec1e9c1aa5..f9a484676cb6 100644 --- a/lib/btree.c +++ b/lib/btree.c | |||
| @@ -319,8 +319,8 @@ void *btree_get_prev(struct btree_head *head, struct btree_geo *geo, | |||
| 319 | 319 | ||
| 320 | if (head->height == 0) | 320 | if (head->height == 0) |
| 321 | return NULL; | 321 | return NULL; |
| 322 | retry: | ||
| 323 | longcpy(key, __key, geo->keylen); | 322 | longcpy(key, __key, geo->keylen); |
| 323 | retry: | ||
| 324 | dec_key(geo, key); | 324 | dec_key(geo, key); |
| 325 | 325 | ||
| 326 | node = head->node; | 326 | node = head->node; |
| @@ -351,7 +351,7 @@ retry: | |||
| 351 | } | 351 | } |
| 352 | miss: | 352 | miss: |
| 353 | if (retry_key) { | 353 | if (retry_key) { |
| 354 | __key = retry_key; | 354 | longcpy(key, retry_key, geo->keylen); |
| 355 | retry_key = NULL; | 355 | retry_key = NULL; |
| 356 | goto retry; | 356 | goto retry; |
| 357 | } | 357 | } |
| @@ -509,6 +509,7 @@ retry: | |||
| 509 | int btree_insert(struct btree_head *head, struct btree_geo *geo, | 509 | int btree_insert(struct btree_head *head, struct btree_geo *geo, |
| 510 | unsigned long *key, void *val, gfp_t gfp) | 510 | unsigned long *key, void *val, gfp_t gfp) |
| 511 | { | 511 | { |
| 512 | BUG_ON(!val); | ||
| 512 | return btree_insert_level(head, geo, key, val, 1, gfp); | 513 | return btree_insert_level(head, geo, key, val, 1, gfp); |
| 513 | } | 514 | } |
| 514 | EXPORT_SYMBOL_GPL(btree_insert); | 515 | EXPORT_SYMBOL_GPL(btree_insert); |
diff --git a/lib/raid6/recov.c b/lib/raid6/recov.c index 1805a5cc5daa..a95bccb8497d 100644 --- a/lib/raid6/recov.c +++ b/lib/raid6/recov.c | |||
| @@ -22,8 +22,8 @@ | |||
| 22 | #include <linux/raid/pq.h> | 22 | #include <linux/raid/pq.h> |
| 23 | 23 | ||
| 24 | /* Recover two failed data blocks. */ | 24 | /* Recover two failed data blocks. */ |
| 25 | void raid6_2data_recov_intx1(int disks, size_t bytes, int faila, int failb, | 25 | static void raid6_2data_recov_intx1(int disks, size_t bytes, int faila, |
| 26 | void **ptrs) | 26 | int failb, void **ptrs) |
| 27 | { | 27 | { |
| 28 | u8 *p, *q, *dp, *dq; | 28 | u8 *p, *q, *dp, *dq; |
| 29 | u8 px, qx, db; | 29 | u8 px, qx, db; |
| @@ -66,7 +66,8 @@ void raid6_2data_recov_intx1(int disks, size_t bytes, int faila, int failb, | |||
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | /* Recover failure of one data block plus the P block */ | 68 | /* Recover failure of one data block plus the P block */ |
| 69 | void raid6_datap_recov_intx1(int disks, size_t bytes, int faila, void **ptrs) | 69 | static void raid6_datap_recov_intx1(int disks, size_t bytes, int faila, |
| 70 | void **ptrs) | ||
| 70 | { | 71 | { |
| 71 | u8 *p, *q, *dq; | 72 | u8 *p, *q, *dq; |
| 72 | const u8 *qmul; /* Q multiplier table */ | 73 | const u8 *qmul; /* Q multiplier table */ |
diff --git a/lib/raid6/recov_ssse3.c b/lib/raid6/recov_ssse3.c index 37ae61930559..ecb710c0b4d9 100644 --- a/lib/raid6/recov_ssse3.c +++ b/lib/raid6/recov_ssse3.c | |||
| @@ -19,8 +19,8 @@ static int raid6_has_ssse3(void) | |||
| 19 | boot_cpu_has(X86_FEATURE_SSSE3); | 19 | boot_cpu_has(X86_FEATURE_SSSE3); |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | void raid6_2data_recov_ssse3(int disks, size_t bytes, int faila, int failb, | 22 | static void raid6_2data_recov_ssse3(int disks, size_t bytes, int faila, |
| 23 | void **ptrs) | 23 | int failb, void **ptrs) |
| 24 | { | 24 | { |
| 25 | u8 *p, *q, *dp, *dq; | 25 | u8 *p, *q, *dp, *dq; |
| 26 | const u8 *pbmul; /* P multiplier table for B data */ | 26 | const u8 *pbmul; /* P multiplier table for B data */ |
| @@ -194,7 +194,8 @@ void raid6_2data_recov_ssse3(int disks, size_t bytes, int faila, int failb, | |||
| 194 | } | 194 | } |
| 195 | 195 | ||
| 196 | 196 | ||
| 197 | void raid6_datap_recov_ssse3(int disks, size_t bytes, int faila, void **ptrs) | 197 | static void raid6_datap_recov_ssse3(int disks, size_t bytes, int faila, |
| 198 | void **ptrs) | ||
| 198 | { | 199 | { |
| 199 | u8 *p, *q, *dq; | 200 | u8 *p, *q, *dq; |
| 200 | const u8 *qmul; /* Q multiplier table */ | 201 | const u8 *qmul; /* Q multiplier table */ |
