Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf intlist: Rename for_each() macros to for_each_entry()

To match the semantics for list.h in the kernel, that are the
interface we use in them.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Taeung Song <treeze.taeung@gmail.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-mdp1heu9xjjc12zebh91232l@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+5 -5
+4 -4
tools/perf/util/intlist.h
··· 57 57 } 58 58 59 59 /** 60 - * intlist_for_each - iterate over a intlist 60 + * intlist__for_each_entry - iterate over a intlist 61 61 * @pos: the &struct int_node to use as a loop cursor. 62 62 * @ilist: the &struct intlist for loop. 63 63 */ 64 - #define intlist__for_each(pos, ilist) \ 64 + #define intlist__for_each_entry(pos, ilist) \ 65 65 for (pos = intlist__first(ilist); pos; pos = intlist__next(pos)) 66 66 67 67 /** 68 - * intlist_for_each_safe - iterate over a intlist safe against removal of 68 + * intlist__for_each_entry_safe - iterate over a intlist safe against removal of 69 69 * int_node 70 70 * @pos: the &struct int_node to use as a loop cursor. 71 71 * @n: another &struct int_node to use as temporary storage. 72 72 * @ilist: the &struct intlist for loop. 73 73 */ 74 - #define intlist__for_each_safe(pos, n, ilist) \ 74 + #define intlist__for_each_entry_safe(pos, n, ilist) \ 75 75 for (pos = intlist__first(ilist), n = intlist__next(pos); pos;\ 76 76 pos = n, n = intlist__next(n)) 77 77 #endif /* __PERF_INTLIST_H */
+1 -1
tools/perf/util/probe-event.c
··· 896 896 goto end; 897 897 } 898 898 899 - intlist__for_each(ln, lr->line_list) { 899 + intlist__for_each_entry(ln, lr->line_list) { 900 900 for (; ln->i > l; l++) { 901 901 ret = show_one_line(fp, l - lr->offset); 902 902 if (ret < 0)