Re: [PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-23 Thread David Miller
From: Nicolai Stange Date: Mon, 22 Jun 2015 15:47:12 +0200 > Richard Weinberger writes: >> While riding the bus to my office I've materialized that idea. >> Nicolai, can you please give the attached patch a try? > W/o my test_bpf patch applied, w/ your patch applied: > - linux mainline: um

Re: [PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-23 Thread David Miller
From: Nicolai Stange Date: Sun, 21 Jun 2015 21:41:03 +0200 > Fix compilation failer with allmodconfig on ARCH=um: > lib/test_bpf.c:50:0: warning: "R8" redefined >#define R8 BPF_REG_8 >^ > In file included from arch/um/include/asm/ptrace-generic.h:11:0, >from

Re: [PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-23 Thread David Miller
From: Nicolai Stange nicsta...@gmail.com Date: Sun, 21 Jun 2015 21:41:03 +0200 Fix compilation failer with allmodconfig on ARCH=um: lib/test_bpf.c:50:0: warning: R8 redefined #define R8 BPF_REG_8 ^ In file included from arch/um/include/asm/ptrace-generic.h:11:0,

Re: [PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-23 Thread David Miller
From: Nicolai Stange nicsta...@gmail.com Date: Mon, 22 Jun 2015 15:47:12 +0200 Richard Weinberger rich...@nod.at writes: While riding the bus to my office I've materialized that idea. Nicolai, can you please give the attached patch a try? W/o my test_bpf patch applied, w/ your patch applied:

Re: [PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-22 Thread Nicolai Stange
Richard Weinberger writes: > While riding the bus to my office I've materialized that idea. > Nicolai, can you please give the attached patch a try? W/o my test_bpf patch applied, w/ your patch applied: - linux mainline: um compiles - linux-next: um compiles up to this mfd/syscon issue

Re: [PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-22 Thread Richard Weinberger
Am 22.06.2015 um 08:52 schrieb Richard Weinberger: > Am 22.06.2015 um 08:05 schrieb Alexei Starovoitov: >> to get rid of warning you proposing to do 1k line renames?! >> Just add: >> +#undef R8 >> +#undef R9 >> +#undef R10 >> #define R0 BPF_REG_0 > > This would be also just another

Re: [PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-22 Thread Richard Weinberger
Am 22.06.2015 um 08:05 schrieb Alexei Starovoitov: > to get rid of warning you proposing to do 1k line renames?! > Just add: > +#undef R8 > +#undef R9 > +#undef R10 > #define R0 BPF_REG_0 This would be also just another hack. > Though I think the better fix woud be to clean up: >

Re: [PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-22 Thread Alexei Starovoitov
On Sun, Jun 21, 2015 at 09:41:03PM +0200, Nicolai Stange wrote: > Fix compilation failer with allmodconfig on ARCH=um: > lib/test_bpf.c:50:0: warning: "R8" redefined >#define R8 BPF_REG_8 >^ > In file included from arch/um/include/asm/ptrace-generic.h:11:0, >from

Re: [PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-22 Thread Richard Weinberger
Am 22.06.2015 um 08:52 schrieb Richard Weinberger: Am 22.06.2015 um 08:05 schrieb Alexei Starovoitov: to get rid of warning you proposing to do 1k line renames?! Just add: +#undef R8 +#undef R9 +#undef R10 #define R0 BPF_REG_0 This would be also just another hack. Though

Re: [PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-22 Thread Alexei Starovoitov
On Sun, Jun 21, 2015 at 09:41:03PM +0200, Nicolai Stange wrote: Fix compilation failer with allmodconfig on ARCH=um: lib/test_bpf.c:50:0: warning: R8 redefined #define R8 BPF_REG_8 ^ In file included from arch/um/include/asm/ptrace-generic.h:11:0, from

Re: [PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-22 Thread Richard Weinberger
Am 22.06.2015 um 08:05 schrieb Alexei Starovoitov: to get rid of warning you proposing to do 1k line renames?! Just add: +#undef R8 +#undef R9 +#undef R10 #define R0 BPF_REG_0 This would be also just another hack. Though I think the better fix woud be to clean up:

Re: [PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-22 Thread Nicolai Stange
Richard Weinberger rich...@nod.at writes: While riding the bus to my office I've materialized that idea. Nicolai, can you please give the attached patch a try? W/o my test_bpf patch applied, w/ your patch applied: - linux mainline: um compiles - linux-next: um compiles up to this mfd/syscon

[PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-21 Thread Nicolai Stange
Fix compilation failer with allmodconfig on ARCH=um: lib/test_bpf.c:50:0: warning: "R8" redefined #define R8 BPF_REG_8 ^ In file included from arch/um/include/asm/ptrace-generic.h:11:0, from arch/x86/um/asm/ptrace.h:8, from

[PATCH] lib: test_bpf: purge CPP register redefinitions

2015-06-21 Thread Nicolai Stange
Fix compilation failer with allmodconfig on ARCH=um: lib/test_bpf.c:50:0: warning: R8 redefined #define R8 BPF_REG_8 ^ In file included from arch/um/include/asm/ptrace-generic.h:11:0, from arch/x86/um/asm/ptrace.h:8, from