[PATCH 0/1] staging: android: ashmem: convert range macros to inlines and clean-up

2016-12-05 Thread Guillaume Tucker
le so it's probably not the most pressing thing to fix in the kernel but it's the first patch I'm sending so I thought I'd pick something easy to start with and put me through my paces. I hope it'll be useful anyway. Guillaume Tucker (1): staging: android: ashmem: conve

[PATCH 1/1] staging: android: ashmem: convert range macros to inlines and clean-up

2016-12-05 Thread Guillaume Tucker
Convert ashmem_range related macros to inline functions to fix checkpatch errors. Clean up the code in related existing inline functions. Signed-off-by: Guillaume Tucker --- drivers/staging/android/ashmem.c | 40 ++-- 1 file changed, 22 insertions(+), 18

[PATCH v2 0/2] staging: android: ashmem: convert range macros to inlines and clean-up

2016-12-05 Thread Guillaume Tucker
le so it's probably not the most pressing thing to fix in the kernel but it's the first patch I'm sending so I thought I'd pick something easy to start with and put me through my paces. I hope it'll be useful anyway. Guillaume Tucker (2): staging: android: ashmem: c

[PATCH v2 1/2] staging: android: ashmem: convert range macros to inlines

2016-12-05 Thread Guillaume Tucker
Convert range_size and range_on_lru macros to inline functions to fix checkpatch check: CHECK: Macro argument reuse 'range' - possible side-effects? Signed-off-by: Guillaume Tucker --- drivers/staging/android/ashmem.c | 12 1 file changed, 8 insertions(+), 4 deletion

[PATCH v2 2/2] staging: android: ashmem: clean up range inline functions

2016-12-05 Thread Guillaume Tucker
Clean up the code in inline functions that deal with page and range addresses. Use bool instead of int for boolean return types and remove superfluous brackets. Signed-off-by: Guillaume Tucker --- drivers/staging/android/ashmem.c | 28 ++-- 1 file changed, 14 insertions

Re: [PATCH 1/1] staging: android: ashmem: convert range macros to inlines and clean-up

2016-12-05 Thread Guillaume Tucker
On 12/05/16 18:08, Greg Kroah-Hartman wrote: > On Mon, Dec 05, 2016 at 05:34:15PM +0000, Guillaume Tucker wrote: >> Convert ashmem_range related macros to inline functions to fix >> checkpatch errors. Clean up the code in related existing inline >> functions. > > How

Re: [PATCH 1/1] staging: android: ashmem: convert range macros to inlines and clean-up

2016-12-06 Thread Guillaume Tucker
On 12/06/16 07:39, Greg Kroah-Hartman wrote: > On Mon, Dec 05, 2016 at 08:01:35PM +0000, Guillaume Tucker wrote: >> On 12/05/16 18:08, Greg Kroah-Hartman wrote: >>> On Mon, Dec 05, 2016 at 05:34:15PM +, Guillaume Tucker wrote: >>>> Convert ashmem_range related mac