Skip to content
  • Vikram Narayanan's avatar
    merge/v4.8/lcd: Fix lock padding in cptr_cache · 6a435b3b
    Vikram Narayanan authored
    
    
    struct cptr_cache in libcap has struct mutex as a member. In its original
    definition struct mutex has ifdef'd members, depending on the config chosen.
    Since, liblcd build undef's certain config's explicitly (such as CONFIG_SMP),
    this alters the size of struct mutex inside liblcd. To make the struct mutexes
    equal in size, padding was introduced.
    
    with 4.8, there is no difference in struct mutex size inside liblcd. So, make
    this padding to zero for proper functioning of libcap.
    
    Signed-off-by: default avatarVikram Narayanan <vikram186@gmail.com>
    6a435b3b