Regarding using 'bool' appropriately
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | security: keys: don't use data type as variable namesecurity/ | +3 | 1 reply | |
| 2/3 | Documentation/CodingStyle: do not use data type names as variable namesDocumentation/ | +3 | 2 replies | |
| 3/3 | bug: use bool for __ret_warn_on in WARN/WARN_ONinclude/ tools/ | +11 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Jarkko Sakkinen |
|---|---|
| 1/3 | R-b |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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