Repository navigation
Commit 7967656
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>1 parent b04c11c commit 7967656
2 files changed
Lines changed: 34 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
938 | 938 | | |
939 | 939 | | |
940 | 940 | | |
941 | | - | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
942 | 972 | | |
943 | 973 | | |
944 | 974 | | |
| |||
961 | 991 | | |
962 | 992 | | |
963 | 993 | | |
964 | | - | |
| 994 | + | |
965 | 995 | | |
966 | 996 | | |
967 | 997 | | |
| |||
995 | 1025 | | |
996 | 1026 | | |
997 | 1027 | | |
998 | | - | |
| 1028 | + | |
999 | 1029 | | |
1000 | 1030 | | |
1001 | 1031 | | |
| |||
1027 | 1057 | | |
1028 | 1058 | | |
1029 | 1059 | | |
1030 | | - | |
| 1060 | + | |
1031 | 1061 | | |
1032 | 1062 | | |
1033 | 1063 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6368 | 6368 | | |
6369 | 6369 | | |
6370 | 6370 | | |
6371 | | - | |
6372 | | - | |
6373 | | - | |
6374 | | - | |
6375 | | - | |
6376 | | - | |
6377 | | - | |
6378 | | - | |
6379 | | - | |
6380 | | - | |
6381 | | - | |
6382 | | - | |
6383 | | - | |
6384 | 6371 | | |
6385 | 6372 | | |
6386 | 6373 | | |
| |||
0 commit comments