[merged mm-nonmm-stable] lib-string_choices-add-str_true_false-str_false_true-helper.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The quilt patch titled
     Subject: lib/string_choices: add str_true_false()/str_false_true() helper
has been removed from the -mm tree.  Its filename was
     lib-string_choices-add-str_true_false-str_false_true-helper.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Hongbo Li <lihongbo22@xxxxxxxxxx>
Subject: lib/string_choices: add str_true_false()/str_false_true() helper
Date: Tue, 27 Aug 2024 10:45:15 +0800

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/20240827024517.914100-1-lihongbo22@xxxxxxxxxx
Link: https://lkml.kernel.org/r/20240827024517.914100-2-lihongbo22@xxxxxxxxxx
Signed-off-by: Hongbo Li <lihongbo22@xxxxxxxxxx>
Cc: Andy Shevchenko <andy@xxxxxxxxxx>
Cc: Anna Schumaker <anna@xxxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: Kees Cook <kees@xxxxxxxxxx>
Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx>
Cc: Trond Myklebust <trondmy@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/string_choices.h |    6 ++++++
 1 file changed, 6 insertions(+)

--- a/include/linux/string_choices.h~lib-string_choices-add-str_true_false-str_false_true-helper
+++ a/include/linux/string_choices.h
@@ -42,6 +42,12 @@ static inline const char *str_yes_no(boo
 	return v ? "yes" : "no";
 }
 
+static inline const char *str_true_false(bool v)
+{
+	return v ? "true" : "false";
+}
+#define str_false_true(v)		str_true_false(!(v))
+
 /**
  * str_plural - Return the simple pluralization based on English counts
  * @num: Number used for deciding pluralization
_

Patches currently in -mm which might be from lihongbo22@xxxxxxxxxx are

mm-make-use-of-the-helper-macro-list_head.patch





[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux