|
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 |
|
| #
b56e601a |
| 19-Nov-2024 |
R Sundar <[email protected]> |
lib/string_choices: Rearrange functions in sorted order
Rearrange misplaced functions in sorted order.
Suggested-by: Andy Shevchenko <[email protected]> Signed-off-by: R Sundar <prosunoffic
lib/string_choices: Rearrange functions in sorted order
Rearrange misplaced functions in sorted order.
Suggested-by: Andy Shevchenko <[email protected]> Signed-off-by: R Sundar <[email protected]> Reviewed-by: Larysa Zaremba <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
show more ...
|
|
Revision tags: v6.12, v6.12-rc7, v6.12-rc6, v6.12-rc5, v6.12-rc4, v6.12-rc3, v6.12-rc2, v6.12-rc1, v6.11, v6.11-rc7 |
|
| #
c121d5cc |
| 05-Sep-2024 |
Hongbo Li <[email protected]> |
lib/string_choices: Add some comments to make more clear for string choices helpers.
Add some comments to explain why we should use string_choices helpers.
Signed-off-by: Hongbo Li <lihongbo22@huaw
lib/string_choices: Add some comments to make more clear for string choices helpers.
Add some comments to explain why we should use string_choices helpers.
Signed-off-by: Hongbo Li <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
show more ...
|
| #
c2708ba9 |
| 05-Sep-2024 |
Hongbo Li <[email protected]> |
lib/string_choices: Introduce several opposite string choice helpers
Similar to the exists helper: str_enable_disable/ str_enabled_disabled/str_on_off/str_yes_no helpers, we can add the opposite hel
lib/string_choices: Introduce several opposite string choice helpers
Similar to the exists helper: str_enable_disable/ str_enabled_disabled/str_on_off/str_yes_no helpers, we can add the opposite helpers. That's str_disable_enable, str_disabled_enabled, str_off_on and str_no_yes.
There are more than 10 cases currently (expect str_disable_enable now has 3 use cases) exist in the code can be replaced with these helper.
Signed-off-by: Hongbo Li <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
show more ...
|
|
Revision tags: v6.11-rc6 |
|
| #
6ff4cd11 |
| 27-Aug-2024 |
Hongbo Li <[email protected]> |
lib/string_choices: Add str_true_false()/str_false_true() helper
Add str_true_false()/str_false_true() helper to return "true" or "false" string literal.
Signed-off-by: Hongbo Li <lihongbo22@huawei
lib/string_choices: Add str_true_false()/str_false_true() helper
Add str_true_false()/str_false_true() helper to return "true" or "false" string literal.
Signed-off-by: Hongbo Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
show more ...
|
| #
32cebfe1 |
| 27-Aug-2024 |
Hongbo Li <[email protected]> |
lib/string_choices: add str_true_false()/str_false_true() helper
Add str_true_false()/str_false_true() helper to retur a "true" or "false" string literal. We found more than 10 cases currently exis
lib/string_choices: add str_true_false()/str_false_true() helper
Add str_true_false()/str_false_true() helper to retur a "true" or "false" string literal. We found more than 10 cases currently exist in the tree. So these helpers can be used for these cases.
This patch (of 3):
Add str_true_false()/str_false_true() helper to return "true" or "false" string literal.
Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Hongbo Li <[email protected]> Cc: Andy Shevchenko <[email protected]> Cc: Anna Schumaker <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Kees Cook <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Trond Myklebust <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
show more ...
|
|
Revision tags: v6.11-rc5, v6.11-rc4 |
|
| #
f5c1ca3a |
| 12-Aug-2024 |
Kees Cook <[email protected]> |
string_choices: Add wrapper for str_down_up()
The string choice functions which are not clearly true/false synonyms also have inverted wrappers. Add this for str_down_up() as well.
Suggested-by: An
string_choices: Add wrapper for str_down_up()
The string choice functions which are not clearly true/false synonyms also have inverted wrappers. Add this for str_down_up() as well.
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 |
|
| #
a98ae7f0 |
| 25-Jul-2024 |
Michal Wajdeczko <[email protected]> |
lib/string_choices: Add str_up_down() helper
Add str_up_down() helper to return "up" or "down" string literal.
Signed-off-by: Michal Wajdeczko <[email protected]> Link: https://lore.kernel
lib/string_choices: Add str_up_down() helper
Add str_up_down() helper to return "up" or "down" string literal.
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 |
|
| #
9ca5facd |
| 14-Feb-2024 |
Michal Wajdeczko <[email protected]> |
lib/string_choices: Add str_plural() helper
Add str_plural() helper to replace existing open implementations used by many drivers and help improve future user facing messages.
Signed-off-by: Michal
lib/string_choices: Add str_plural() helper
Add str_plural() helper to replace existing open implementations used by many drivers and help improve future user facing messages.
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.8-rc4, v6.8-rc3, v6.8-rc2, v6.8-rc1, v6.7, v6.7-rc8, v6.7-rc7, v6.7-rc6, v6.7-rc5, v6.7-rc4, v6.7-rc3, v6.7-rc2, v6.7-rc1, v6.6, v6.6-rc7, v6.6-rc6, v6.6-rc5, v6.6-rc4, v6.6-rc3, v6.6-rc2, v6.6-rc1, v6.5, v6.5-rc7, v6.5-rc6, v6.5-rc5, v6.5-rc4, v6.5-rc3, v6.5-rc2, v6.5-rc1 |
|
| #
81e4fc67 |
| 03-Jul-2023 |
Andy Shevchenko <[email protected]> |
lib/string_choices: Add str_write_read() helper
Add an inversed variant of str_read_write(), i.e. str_write_read().
Signed-off-by: Andy Shevchenko <[email protected]> Link: https://
lib/string_choices: Add str_write_read() helper
Add an inversed variant of str_read_write(), i.e. str_write_read().
Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
show more ...
|
|
Revision tags: v6.4, v6.4-rc7, v6.4-rc6, v6.4-rc5, v6.4-rc4, v6.4-rc3, v6.4-rc2, v6.4-rc1, v6.3, v6.3-rc7, v6.3-rc6, v6.3-rc5, v6.3-rc4, v6.3-rc3, v6.3-rc2 |
|
| #
a9fc7664 |
| 06-Mar-2023 |
Andy Shevchenko <[email protected]> |
lib/string_choices: Add str_high_low() helper
Add str_high_low() helper to return 'high' or 'low' string literal. Also add an inversed variant, i.e. str_low_high().
All the same for str_hi_low().
lib/string_choices: Add str_high_low() helper
Add str_high_low() helper to return 'high' or 'low' string literal. Also add an inversed variant, i.e. str_low_high().
All the same for str_hi_low().
Signed-off-by: Andy Shevchenko <[email protected]>
show more ...
|
| #
fca76071 |
| 06-Mar-2023 |
Andy Shevchenko <[email protected]> |
lib/string_helpers: Split out string_choices.h
Some users may only need the string choice APIs. Split the respective header, i.e. string_choices.h. Include it in the string_helpers.h for backward co
lib/string_helpers: Split out string_choices.h
Some users may only need the string choice APIs. Split the respective header, i.e. string_choices.h. Include it in the string_helpers.h for backward compatibility.
Signed-off-by: Andy Shevchenko <[email protected]>
show more ...
|