[PATCH bpf-next] selftests/bpf: fix error printing in test_devmap()

2018-12-21 Thread Xiaozhou Liu
As a simple fix, just print the correct map type. Signed-off-by: Xiaozhou Liu --- tools/testing/selftests/bpf/test_maps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/test_maps.c b/tools/testing/selftests/bpf/test_maps.c index 9c79ee017df3

[PATCH v3] Compiler Attributes: don't pollute userspace with macro definitions

2018-12-14 Thread Xiaozhou Liu
when !CONFIG_ENABLE_MUST_CHECK) and noinline_for_stack were once defined in __KERNEL__ only, but we believe that they can be put into !__ASSEMBLY__ too. Acked-by: Nick Desaulniers Signed-off-by: Xiaozhou Liu --- v3: move macros into !__ASSEMBLY__ too. (Miguel Ojeda) v2: update

[PATCH v2] Compiler Attributes: don't pollute userspace with macro definitions

2018-12-08 Thread Xiaozhou Liu
etc. used to be defined within __KERNEL__ too. So just move these macros back into __KERNEL__. v2: update commit message. Signed-off-by: Xiaozhou Liu --- include/linux/compiler_types.h | 4 1 file changed, 4 insertions(+) diff --git a/include/linux/compiler_types.h b/include/linux/compi

Re: [PATCH] Compiler Attributes: move kernel-only attributes into __KERNEL__

2018-12-06 Thread Xiaozhou Liu
On Thu, Nov 29, 2018 at 11:42:11AM +0100, Miguel Ojeda wrote: > Exactly, thanks a lot for clarifying it up (we should put this in the > commit message, I would say). That also answers my question: it is > clear everything should be back into __KERNEL__. The only worry is > that the v4.19 release

[PATCH] Compiler Attributes: move kernel-only attributes into __KERNEL__

2018-11-28 Thread Xiaozhou Liu
re. Fixes: a3f8a30f3f00 ("Compiler Attributes: use feature checks instead of version checks") Signed-off-by: Xiaozhou Liu --- include/linux/compiler_types.h | 4 1 file changed, 4 insertions(+) diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index 4a3f9c

[PATCH] Compiler Attributes: move kernel-only attributes into __KERNEL__

2018-11-28 Thread Xiaozhou Liu
re. Fixes: a3f8a30f3f00 ("Compiler Attributes: use feature checks instead of version checks") Signed-off-by: Xiaozhou Liu --- include/linux/compiler_types.h | 4 1 file changed, 4 insertions(+) diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index 4a3f9c