• Olav Kongas's avatar
    [PATCH] ARM: 2649/1: Fix 'sparse -Wbitwise' warnings from MMIO macros · 05f9869b
    Olav Kongas authored
    Patch from Olav Kongas
    
    On ARM, the outX() and writeX() families of macros take the
    result of cpu_to_leYY(), which is of restricted type __leYY,
    and feed it to __raw_writeX(), which expect an argument of
    unrestricted type. This results in 'sparse -Wbitwise'
    warnings about incorrect types in assignments. Analogous
    type mismatch warnings are issued for inX() and readX()
    counterparts. The below patch resolves these warnings by
    adding forced typecasts.
    
    Signed-off-by: Olav Kongas
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    05f9869b
io.h 9.94 KB