OSDN Git Service

macro: introduce COUNT_ARGS() macro
authorAlexei Starovoitov <ast@kernel.org>
Wed, 28 Mar 2018 19:05:36 +0000 (12:05 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 28 Mar 2018 20:55:19 +0000 (22:55 +0200)
commitcf14f27f82af78e713f8a57c477cf9233faf8b30
tree35b9919d56890c7c3d04ec24e8c1c427b71786e2
parent4fe43c2c00349557fdf4e6d61a67ebbe670412b8
macro: introduce COUNT_ARGS() macro

move COUNT_ARGS() macro from apparmor to generic header and extend it
to count till twelve.

COUNT() was an alternative name for this logic, but it's used for
different purpose in many other places.

Similarly for CONCATENATE() macro.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/linux/kernel.h
security/apparmor/include/path.h