From: Mauro Carvalho Chehab Date: Mon, 16 Apr 2012 13:18:12 +0000 (-0300) Subject: edac: rewrite edac_align_ptr() X-Git-Tag: v3.5-rc1~46^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93e4fe64ece4eccf0ff4ac69bceb389290b8ab7c;p=pandora-kernel.git 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 Cc: Aristeu Rozanski Cc: Doug Thompson Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed