Commits
![Bhumika Goyal](https://secure.gravatar.com/avatar/c3ef72c9b31a87b949f0f9800b5ef11f.jpg?s=96&d=mm)
Bhumika Goyal committed e2a83f328f5
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 <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>