|
Revision tags: v6.15, v6.15-rc7, v6.15-rc6, v6.15-rc5, v6.15-rc4, v6.15-rc3, v6.15-rc2, v6.15-rc1, v6.14, v6.14-rc7, v6.14-rc6, v6.14-rc5, v6.14-rc4, v6.14-rc3, v6.14-rc2, v6.14-rc1, v6.13, v6.13-rc7, v6.13-rc6, v6.13-rc5, v6.13-rc4, v6.13-rc3, v6.13-rc2, v6.13-rc1, v6.12, v6.12-rc7, v6.12-rc6, v6.12-rc5, v6.12-rc4, v6.12-rc3, v6.12-rc2, v6.12-rc1 |
|
| #
4003ba66 |
| 28-Sep-2024 |
Julia Lawall <[email protected]> |
Reduce Coccinelle choices in string_choices.cocci
The isomorphism neg_if_exp negates the test of a ?: conditional, making it unnecessary to have an explicit case for a negated test with the branches
Reduce Coccinelle choices in string_choices.cocci
The isomorphism neg_if_exp negates the test of a ?: conditional, making it unnecessary to have an explicit case for a negated test with the branches inverted.
At the same time, we can disable neg_if_exp in cases where a different API function may be more suitable for a negated test.
Finally, in the non-patch cases, E matches an expression with parentheses around it, so there is no need to mention () explicitly in the pattern. The () are still needed in the patch cases, because we want to drop them, if they are present.
Signed-off-by: Julia Lawall <[email protected]>
show more ...
|
|
Revision tags: v6.11 |
|
| #
f584e375 |
| 11-Sep-2024 |
Hongbo Li <[email protected]> |
coccinelle: Remove unnecessary parentheses for only one possible change.
The parentheses are only needed if there is a disjunction, ie a set of possible changes. If there is only one pattern, we can
coccinelle: Remove unnecessary parentheses for only one possible change.
The parentheses are only needed if there is a disjunction, ie a set of possible changes. If there is only one pattern, we can remove these parentheses. Just like the format:
- x + y
not:
( - x + y )
Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
show more ...
|
| #
253244cd |
| 11-Sep-2024 |
Hongbo Li <[email protected]> |
coccinelle: Add rules to find str_yes_no() replacements
As other rules done, we add rules for str_yes_no() to check the relative opportunities.
Signed-off-by: Hongbo Li <[email protected]> Sign
coccinelle: Add rules to find str_yes_no() replacements
As other rules done, we add rules for str_yes_no() to check the relative opportunities.
Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
show more ...
|
| #
9b5b4810 |
| 11-Sep-2024 |
Hongbo Li <[email protected]> |
coccinelle: Add rules to find str_on_off() replacements
As other rules done, we add rules for str_on_off() to check the relative opportunities.
Signed-off-by: Hongbo Li <[email protected]> Sign
coccinelle: Add rules to find str_on_off() replacements
As other rules done, we add rules for str_on_off() to check the relative opportunities.
Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
show more ...
|
| #
c81ca023 |
| 11-Sep-2024 |
Hongbo Li <[email protected]> |
coccinelle: Add rules to find str_write_read() replacements
As other rules done, we add rules for str_write_read() to check the relative opportunities.
Signed-off-by: Hongbo Li <[email protected]
coccinelle: Add rules to find str_write_read() replacements
As other rules done, we add rules for str_write_read() to check the relative opportunities.
Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
show more ...
|
| #
ba4b514a |
| 11-Sep-2024 |
Hongbo Li <[email protected]> |
coccinelle: Add rules to find str_read_write() replacements
As other rules done, we add rules for str_read_write() to check the relative opportunities.
Signed-off-by: Hongbo Li <[email protected]
coccinelle: Add rules to find str_read_write() replacements
As other rules done, we add rules for str_read_write() to check the relative opportunities.
Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
show more ...
|
| #
dd2275d3 |
| 11-Sep-2024 |
Hongbo Li <[email protected]> |
coccinelle: Add rules to find str_enable{d}_disable{d}() replacements
As other rules done, we add rules for str_enable{d}_ disable{d}() to check the relative opportunities.
Signed-off-by: Hongbo Li
coccinelle: Add rules to find str_enable{d}_disable{d}() replacements
As other rules done, we add rules for str_enable{d}_ disable{d}() to check the relative opportunities.
Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
show more ...
|
| #
5b7ca450 |
| 11-Sep-2024 |
Hongbo Li <[email protected]> |
coccinelle: Add rules to find str_lo{w}_hi{gh}() replacements
As other rules done, we add rules for str_lo{w}_hi{gh}() to check the relative opportunities.
Signed-off-by: Hongbo Li <lihongbo22@huaw
coccinelle: Add rules to find str_lo{w}_hi{gh}() replacements
As other rules done, we add rules for str_lo{w}_hi{gh}() to check the relative opportunities.
Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
show more ...
|
| #
d4c75440 |
| 11-Sep-2024 |
Hongbo Li <[email protected]> |
coccinelle: Add rules to find str_hi{gh}_lo{w}() replacements
As other rules done, we add rules for str_hi{gh}_lo{w}() to check the relative opportunities.
Signed-off-by: Hongbo Li <lihongbo22@huaw
coccinelle: Add rules to find str_hi{gh}_lo{w}() replacements
As other rules done, we add rules for str_hi{gh}_lo{w}() to check the relative opportunities.
Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
show more ...
|
| #
8a0236ba |
| 11-Sep-2024 |
Hongbo Li <[email protected]> |
coccinelle: Add rules to find str_false_true() replacements
As done with str_true_false(), add checks for str_false_true() opportunities. A simple test can find over 9 cases currently exist in the t
coccinelle: Add rules to find str_false_true() replacements
As done with str_true_false(), add checks for str_false_true() opportunities. A simple test can find over 9 cases currently exist in the tree.
Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
show more ...
|
| #
716bf84e |
| 11-Sep-2024 |
Hongbo Li <[email protected]> |
coccinelle: Add rules to find str_true_false() replacements
After str_true_false() has been introduced in the tree, we can add rules for finding places where str_true_false() can be used. A simple t
coccinelle: Add rules to find str_true_false() replacements
After str_true_false() has been introduced in the tree, we can add rules for finding places where str_true_false() can be used. A simple test can find over 10 locations.
Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
show more ...
|
|
Revision tags: v6.11-rc7, v6.11-rc6, v6.11-rc5, v6.11-rc4 |
|
| #
0336f898 |
| 12-Aug-2024 |
Kees Cook <[email protected]> |
coccinelle: Add rules to find str_down_up() replacements
As done with str_up_down(), add checks for str_down_up() opportunities. 5 cases currently exist in the tree.
Suggested-by: Andy Shevchenko <
coccinelle: Add rules to find str_down_up() replacements
As done with str_up_down(), add checks for str_down_up() opportunities. 5 cases currently exist in the tree.
Suggested-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Kees Cook <[email protected]>
show more ...
|
|
Revision tags: v6.11-rc3, v6.11-rc2, v6.11-rc1 |
|
| #
9b97452b |
| 25-Jul-2024 |
Michal Wajdeczko <[email protected]> |
coccinelle: Add rules to find str_up_down() replacements
Add rules for finding places where str_up_down() can be used. This currently finds over 20 locations.
Signed-off-by: Michal Wajdeczko <micha
coccinelle: Add rules to find str_up_down() replacements
Add rules for finding places where str_up_down() can be used. This currently finds over 20 locations.
Signed-off-by: Michal Wajdeczko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
show more ...
|
|
Revision tags: v6.10, v6.10-rc7, v6.10-rc6, v6.10-rc5, v6.10-rc4, v6.10-rc3, v6.10-rc2, v6.10-rc1, v6.9, v6.9-rc7, v6.9-rc6, v6.9-rc5, v6.9-rc4, v6.9-rc3, v6.9-rc2, v6.9-rc1, v6.8, v6.8-rc7, v6.8-rc6, v6.8-rc5 |
|
| #
1d02f252 |
| 15-Feb-2024 |
Kees Cook <[email protected]> |
coccinelle: Add rules to find str_plural() replacements
Add rules for finding places where str_plural() can be used. This currently finds: 54 files changed, 62 insertions(+), 61 deletions(-)
Co-de
coccinelle: Add rules to find str_plural() replacements
Add rules for finding places where str_plural() can be used. This currently finds: 54 files changed, 62 insertions(+), 61 deletions(-)
Co-developed-by: Michal Wajdeczko <[email protected]> Signed-off-by: Michal Wajdeczko <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Kees Cook <[email protected]>
show more ...
|