This is a wrapper around pseudo_user_list_size() which can directly be used on a pseudo. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- linearize.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linearize.h b/linearize.h index 0a08c602e..15a6be9c9 100644 --- a/linearize.h +++ b/linearize.h @@ -330,6 +330,11 @@ static inline int pseudo_user_list_size(struct pseudo_user_list *list) return ptr_list_size((struct ptr_list *)list); } +static inline int has_users(pseudo_t p) +{ + return pseudo_user_list_size(p->users) != 0; +} + static inline struct pseudo_user *alloc_pseudo_user(struct instruction *insn, pseudo_t *pp) { struct pseudo_user *user = __alloc_pseudo_user(0); -- 2.16.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html