mbox series

[0/4] edac_align_ptr() bug fix and refactoring

Message ID 20220113100622.12783-1-farbere@amazon.com (mailing list archive)
Headers show
Series edac_align_ptr() bug fix and refactoring | expand

Message

Eliav Farber Jan. 13, 2022, 10:06 a.m. UTC
Fix address alignment and return value casting, modify data types
and refactor the flow to be more clear and readable.

Eliav Farber (4):
  EDAC: Fix calculation of returned address and next offset in
    edac_align_ptr()
  EDAC: Remove unnecessary cast to char* in edac_align_ptr() function
  EDAC: Refactor edac_align_ptr() to use u8/u16/u32/u64 data types
  EDAC: Refactor edac_align_ptr() flow

 drivers/edac/edac_mc.c | 41 ++++++++++++++++++++---------------------
 1 file changed, 20 insertions(+), 21 deletions(-)