taint: convert to indexed initialization
authorKees Cook <[email protected]>
Tue, 10 Apr 2018 23:32:26 +0000 (16:32 -0700)
committerLinus Torvalds <[email protected]>
Wed, 11 Apr 2018 17:28:34 +0000 (10:28 -0700)
commit47d4b263a2f7324fb3cb641ca00b2725dd12dea0
tree3f6b15dcff528dffc236fee044f45b5b7c2a0b6b
parent1f5bd0547654ada423b184e22f320d76c0fac49e
taint: convert to indexed initialization

This converts to using indexed initializers instead of comments, adds a
comment on why the taint flags can't be an enum, and make sure that no
one forgets to update the taint_flags when adding new bits.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/kernel.h
kernel/panic.c