amd64_edac: Sanitize syndrome extraction
authorBorislav Petkov <borislav.petkov@amd.com>
Tue, 9 Mar 2010 11:46:00 +0000 (12:46 +0100)
committerBorislav Petkov <borislav.petkov@amd.com>
Tue, 3 Aug 2010 14:13:31 +0000 (16:13 +0200)
commitad6a32e96939a0eb0eb382e7d78dbf33457aed1a
tree62824540584ff79cde370edc3730d2b592a5a0d9
parent9fe6206f400646a2322096b56c59891d530e8d51
amd64_edac: Sanitize syndrome extraction

Remove the two syndrome extraction macros and add a single function
which does the same thing but with proper typechecking. While at it,
make sure to cache ECC syndrome size and dump it in debug output.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h