OSDN Git Service

coding-style: Clarify the expectations around bool
authorJason Gunthorpe <jgg@ziepe.ca>
Fri, 18 Jan 2019 22:50:47 +0000 (15:50 -0700)
committerJonathan Corbet <corbet@lwn.net>
Mon, 21 Jan 2019 02:07:39 +0000 (19:07 -0700)
commit7967656ffbfa493f5546c0f18bf8a28f702c4baa
tree64fc3eaa5ae81d1778891bc47c15a226ba2430df
parentb04c11c988f4fcfba037ce6c356ea5ac9e23df63
coding-style: Clarify the expectations around bool

There has been some confusion since checkpatch started warning about bool
use in structures, and people have been avoiding using it.

Many people feel there is still a legitimate place for bool in structures,
so provide some guidance on bool usage derived from the entire thread that
spawned the checkpatch warning.

Link: https://lkml.kernel.org/r/CA+55aFwVZk1OfB9T2v014PTAKFhtVan_Zj2dOjnCy3x6E4UJfA@mail.gmail.com
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Joe Perches <joe@perches.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Joey Pabalinas <joeypabalinas@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/process/coding-style.rst
scripts/checkpatch.pl