Silence some clang -Wshorten-64-to-32 warnings
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 10 repliesIn review
- v15 patches 4 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | bitfield: Silence a clang -Wshorten-64-to-32 warninginclude/ | +1 | 1 reply | |
| 2/5 | bitmap: Silence a clang -Wshorten-64-to-32 warninginclude/ | +1 | 4 replies | |
| 3/5 | bitops: Silence a clang -Wshorten-64-to-32 warninginclude/ | +1 | 0 replies | |
| 4/5 | math64: Silence a clang -Wshorten-64-to-32 warninginclude/ | +1 | 5 replies | |
| 5/5 | hash.h: Silence a clang -Wshorten-64-to-32 warninginclude/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/5] Silence some clang -Wshorten-64-to-32 warnings
Clang's shorten-64-to-32 can be useful to spot certain kinds of bugs that can be more prevalent in C code due to implicit 64 to 32-bit casting. Add some explicit casts to header files so as to avoid the warning when these headers are used.
This patch started out as a single patch in a series for the perf tool where a bug could have been identified were -Wshorten-64-to-32 enabled:
https://lore.kernel.org/lkml/[email protected]/
v2: Rebase and try to address Arnd Bergmann's comments wrt the commit
message. Arnd also mentioned doing larger refactors, changing return types and adding helper functions. I've held off doing this given concerns over breaking printf flags.
Ian Rogers (5):
bitfield: Silence a clang -Wshorten-64-to-32 warning
bitmap: Silence a clang -Wshorten-64-to-32 warning
bitops: Silence a clang -Wshorten-64-to-32 warning
math64: Silence a clang -Wshorten-64-to-32 warning hash.h: Silence a clang -Wshorten-64-to-32 warning
include/asm-generic/bitops/fls64.h | 2 +- include/linux/bitfield.h | 2 +- include/linux/bitmap.h | 2 +- include/linux/hash.h | 2 +- include/linux/math64.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.49.0.906.g1f30a19c02-goog