Re: [PATCH] proc: fixup map_files test on arm

2018-11-12 Thread Rafael David Tinoco
On 11/12/18 1:55 PM, Cyrill Gorcunov wrote: On Mon, Nov 12, 2018 at 05:14:57PM +0300, Alexey Dobriyan wrote: ... int main(void) { const unsigned int PAGE_SIZE = sysconf(_SC_PAGESIZE); +#ifdef __arm__ + unsigned long va = 2 * PAGE_SIZE; +#else + unsigned long va = 0; +#end

Re: [PATCH] proc: fixup map_files test on arm

2018-11-12 Thread Cyrill Gorcunov
On Mon, Nov 12, 2018 at 05:14:57PM +0300, Alexey Dobriyan wrote: ... > > > int main(void) > > > { > > > const unsigned int PAGE_SIZE = sysconf(_SC_PAGESIZE); > > > +#ifdef __arm__ > > > + unsigned long va = 2 * PAGE_SIZE; > > > +#else > > > + unsigned long va = 0; > > > +#endif ... > > > > I h

Re: [PATCH] proc: fixup map_files test on arm

2018-11-12 Thread Alexey Dobriyan
On Sun, Nov 11, 2018 at 12:48:47AM -0200, Rafael David Tinoco wrote: > Including Shuah and kselftest list... > > On Sat, Nov 10, 2018, at 4:49 PM, Alexey Dobriyan wrote: > > https://bugs.linaro.org/show_bug.cgi?id=3782 > > > > Turns out arm doesn't allow to map address 0, so try minimum virtual >

Re: [PATCH] proc: fixup map_files test on arm

2018-11-10 Thread Rafael David Tinoco
Including Shuah and kselftest list... On Sat, Nov 10, 2018, at 4:49 PM, Alexey Dobriyan wrote: > https://bugs.linaro.org/show_bug.cgi?id=3782 > > Turns out arm doesn't allow to map address 0, so try minimum virtual > address instead. > > Reported-by: Rafael David Tinoco > Signed-off-by: Alexey

[PATCH] proc: fixup map_files test on arm

2018-11-10 Thread Alexey Dobriyan
https://bugs.linaro.org/show_bug.cgi?id=3782 Turns out arm doesn't allow to map address 0, so try minimum virtual address instead. Reported-by: Rafael David Tinoco Signed-off-by: Alexey Dobriyan --- tools/testing/selftests/proc/proc-self-map-files-002.c |9 +++-- 1 file changed, 7 ins