• Harvey Harrison's avatar
    fbcon: replace mono_col macro with static inline · 22af89aa
    Harvey Harrison authored
    Use __u32 for max_len to match the declaration of length in the struct
    fb_bitfield.
    
    Suppresses sparse shadowed variable warnings from the nested max()
    macros:
    drivers/video/console/fbcon.h:130:8: warning: symbol '_x' shadows an earlier one
    drivers/video/console/fbcon.h:130:8: originally declared here
    drivers/video/console/fbcon.h:130:8: warning: symbol '_x' shadows an earlier one
    drivers/video/console/fbcon.h:130:8: originally declared here
    drivers/video/console/fbcon.h:130:8: warning: symbol '_y' shadows an earlier one
    drivers/video/console/fbcon.h:130:8: originally declared here
    
    [akpm@linux-foundation.org: fix constness]
    Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
    Cc: "Antonino A. Daplas" <adaplas@pol.net>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    22af89aa
fbcon.h 7.16 KB