Message ID | 20180611015119.94067-6-luc.vanoostenryck@gmail.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
On 11/06/18 02:51, Luc Van Oostenryck wrote:
> The macro free_ptr_lis() is much longer than 80 columns.
s/free_ptr_lis/free_ptr_list/
ATB,
Ramsay Jones
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/ptrlist.h b/ptrlist.h index cb3e989a3..569ae5179 100644 --- a/ptrlist.h +++ b/ptrlist.h @@ -59,8 +59,10 @@ extern int linearize_ptr_list(struct ptr_list *, void **, int); (__typeof__(&(ptr))) __add_ptr_list_tag(head, ptr, tag); \ }) -#define free_ptr_list(list) \ - do { VRFY_PTR_LIST(*(list)); __free_ptr_list((struct ptr_list **)(list)); } while (0) +#define free_ptr_list(list) do { \ + VRFY_PTR_LIST(*(list)); \ + __free_ptr_list((struct ptr_list **)(list)); \ + } while (0) #define PTR_UNTAG(p) ((void*)(~3UL & (unsigned long)(p))) #define PTR_ENTRY_NOTAG(h,i) ((h)->list[i])
The macro free_ptr_lis() is much longer than 80 columns. Make it more readable by splitting its long definition in three separate lines. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- ptrlist.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)