Skip to content

Regarding using 'bool' appropriately

Wei Wang lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3security: keys: don't use data type as variable namesecurity/keys/trusted-keys/trusted_tpm2.c+3 -21 reply
2/3Documentation/CodingStyle: do not use data type names as variable namesDocumentation/process/coding-style.rst+3 -02 replies
3/3bug: use bool for __ret_warn_on in WARN/WARN_ONinclude/asm-generic/bug.h tools/include/asm/bug.h+11 -110 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchJarkko Sakkinen
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/3] Regarding using 'bool' appropriately

When I'm working on patch 3 to change WARN/WARN_ON to use bool for __ret_warn_on according to the documentation in CodingStyle about using 'bool', compiler reports an error from tpm2_key_encode(), and the root cause is that it names a variable 'bool' which conficts with the data type name 'bool'. So fix it and add a rule in CodingStyle to avoid such naming that causes confusion. This is also the reason that the three patches are grouped into one patchset.

Wei Wang (3):
security: keys: don't use data type as variable name Documentation/CodingStyle: do not use data type names as variable
names
bug: use bool for __ret_warn_on in WARN/WARN_ON

 Documentation/process/coding-style.rst    |  3 +++
 include/asm-generic/bug.h                 | 12 ++++++------
 security/keys/trusted-keys/trusted_tpm2.c |  5 +++--
 tools/include/asm/bug.h                   | 10 +++++-----
 4 files changed, 17 insertions(+), 13 deletions(-)
Signature · 1 line
2.27.0