diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2011-02-23 11:41:50 -0500 |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2011-03-17 09:46:40 -0400 |
commit | d34a6ecd45c1362d388af8d83ed329c609d1712b (patch) | |
tree | 3a2a8c5fd2a35ae9305c20b0f1ad77e3ebb59207 | |
parent | 8c6717510f8002ea31b309c84b7d7a7f7c15197b (diff) |
amd64_edac: Fix decode_syndrome types
Those should all be unsigned.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
-rw-r--r-- | drivers/edac/amd64_edac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index cc4f887c28f0..0be30e978c85 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
@@ -1700,15 +1700,15 @@ static u16 x8_vectors[] = { | |||
1700 | 0x0100, 0x0200, 0x0400, 0x0800, 0x1000, 0x2000, 0x4000, 0x8000, | 1700 | 0x0100, 0x0200, 0x0400, 0x0800, 0x1000, 0x2000, 0x4000, 0x8000, |
1701 | }; | 1701 | }; |
1702 | 1702 | ||
1703 | static int decode_syndrome(u16 syndrome, u16 *vectors, int num_vecs, | 1703 | static int decode_syndrome(u16 syndrome, u16 *vectors, unsigned num_vecs, |
1704 | int v_dim) | 1704 | unsigned v_dim) |
1705 | { | 1705 | { |
1706 | unsigned int i, err_sym; | 1706 | unsigned int i, err_sym; |
1707 | 1707 | ||
1708 | for (err_sym = 0; err_sym < num_vecs / v_dim; err_sym++) { | 1708 | for (err_sym = 0; err_sym < num_vecs / v_dim; err_sym++) { |
1709 | u16 s = syndrome; | 1709 | u16 s = syndrome; |
1710 | int v_idx = err_sym * v_dim; | 1710 | unsigned v_idx = err_sym * v_dim; |
1711 | int v_end = (err_sym + 1) * v_dim; | 1711 | unsigned v_end = (err_sym + 1) * v_dim; |
1712 | 1712 | ||
1713 | /* walk over all 16 bits of the syndrome */ | 1713 | /* walk over all 16 bits of the syndrome */ |
1714 | for (i = 1; i < (1U << 16); i <<= 1) { | 1714 | for (i = 1; i < (1U << 16); i <<= 1) { |