]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit689e380a7bd9d0cb1a6bfe91fc6aa2384ed55729
tree35b9919d56890c7c3d04ec24e8c1c427b71786e2
parent7d94c69223eed09e62d3d1118d9103f9c8188a76
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