summaryrefslogtreecommitdiffstats
path: root/drivers/edac/i82443bxgx_edac.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-04-16 15:18:12 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-29 00:10:59 +0200
commit93e4fe64ece4eccf0ff4ac69bceb389290b8ab7c (patch)
tree5794c15f0d2c47568e49379b56e9a8d139532050 /drivers/edac/i82443bxgx_edac.c
parentedac: move nr_pages to dimm struct (diff)
downloadlinux-93e4fe64ece4eccf0ff4ac69bceb389290b8ab7c.tar.xz
linux-93e4fe64ece4eccf0ff4ac69bceb389290b8ab7c.zip
edac: rewrite edac_align_ptr()
The edac_align_ptr() function is used to prepare data for a single memory allocation kzalloc() call. It counts how many bytes are needed by some data structure. Using it as-is is not that trivial, as the quantity of memory elements reserved is not there, but, instead, it is on a next call. In order to avoid mistakes when using it, move the number of allocated elements into it, making easier to use it. Reviewed-by: Borislav Petkov <bp@amd64.org> Cc: Aristeu Rozanski <arozansk@redhat.com> Cc: Doug Thompson <norsk5@yahoo.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/i82443bxgx_edac.c')
0 files changed, 0 insertions, 0 deletions