Re: [PATCH] llist: clang: introduce member_address_is_nonnull()

2017-07-19 Thread Sodagudi Prasad
Hi All, Observed boot up crash with clang in kerne/sched/core.c file sched_ttwu_pending() function, because it is using llist_for_each_entry_safe(). After pulling patch from “https://lkml.org/lkml/2017/7/19/1169, no crash observed. Tested-by: Sodagudi Prasad -Thanks, Prasad -- The Qualcom

[PATCH] llist: clang: introduce member_address_is_nonnull()

2017-07-19 Thread Alexander Potapenko
Currently llist_for_each_entry() and llist_for_each_entry_safe() iterate until &pos->member != NULL. But when building the kernel with Clang, the compiler assumes &pos->member cannot be NULL if the member's offset is greater than 0 (which would be equivalent to the object being non-contiguous in m