]> 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)
commit445d8f92906fd728ba42c814bfa6612bd9641e96
tree35b9919d56890c7c3d04ec24e8c1c427b71786e2
parentf2f8679b80af91943a3f800367aa9baf085c1da5
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