aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorBhumika Goyal <[email protected]>2016-03-11 19:33:04 +0530
committerGreg Kroah-Hartman <[email protected]>2016-03-11 22:09:09 -0800
commite2a83f328f55b12b896c1467631ca414ac22980f (patch)
treefe918d8a261cf541542b7d052f0e55a38d704dc5 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent0103fe20a7dd343c43bec6215e01cd6bedddd5eb (diff)
Staging: android: ashmem.c: Redefine macros as static inline functions
Convert macros page_in_range and range_before_page into static inline functions as static inline functions are preferred over macros. The change can be done as the arguments at all call sites have the same type. Also, both the macros have same type of arguments and return values. Done using coccinelle: @r@ identifier f; expression e; @@ #define f(...) e @r1@ identifier r.f; identifier range,page; expression r.e; @@ - #define f(range,page) e + static inline int f(struct ashmem_range *range, size_t page) + { + return e; + } Signed-off-by: Bhumika Goyal <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions