Commit 6a435b3b authored by Vikram Narayanan's avatar Vikram Narayanan
Browse files

merge/v4.8/lcd: Fix lock padding in cptr_cache



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: Vikram Narayanan's avatarVikram Narayanan <vikram186@gmail.com>
parent d53b1d9e
......@@ -18,7 +18,7 @@ LIBLCD_BASE_CFLAGS=\
-DCONFIG_LAZY_THC \
-DMODULE \
-DLCD_ISOLATE \
-DCPTR_CACHE_LOCK_PADDING_SIZE=8 \
-DCPTR_CACHE_LOCK_PADDING_SIZE=0 \
-DLIBLCD_FUNC_ATTR=$(LIBLCD_WEAK_ATTR)
LIBLCD_CFLAGS= \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment