All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged mm-nonmm-stable] mm-make-use-of-str_true_false-helper.patch removed from -mm tree
@ 2024-09-02  3:47 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2024-09-02  3:47 UTC (permalink / raw)
  To: mm-commits, willy, trondmy, kees, gregkh, anna, andy, lihongbo22,
	akpm


The quilt patch titled
     Subject: mm: make use of str_true_false helper
has been removed from the -mm tree.  Its filename was
     mm-make-use-of-str_true_false-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@huawei.com>
Subject: mm: make use of str_true_false helper
Date: Tue, 27 Aug 2024 10:45:16 +0800

The helper str_true_false() was introduced to return "true/false" string
literal.  We can simplify this format by str_true_false.

Link: https://lkml.kernel.org/r/20240827024517.914100-3-lihongbo22@huawei.com
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Cc: Andy Shevchenko <andy@kernel.org>
Cc: Anna Schumaker <anna@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Kees Cook <kees@kernel.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Trond Myklebust <trondmy@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/memory-tiers.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/mm/memory-tiers.c~mm-make-use-of-str_true_false-helper
+++ a/mm/memory-tiers.c
@@ -921,8 +921,7 @@ bool numa_demotion_enabled = false;
 static ssize_t demotion_enabled_show(struct kobject *kobj,
 				     struct kobj_attribute *attr, char *buf)
 {
-	return sysfs_emit(buf, "%s\n",
-			  numa_demotion_enabled ? "true" : "false");
+	return sysfs_emit(buf, "%s\n", str_true_false(numa_demotion_enabled));
 }
 
 static ssize_t demotion_enabled_store(struct kobject *kobj,
_

Patches currently in -mm which might be from lihongbo22@huawei.com are

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-02  3:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-02  3:47 [merged mm-nonmm-stable] mm-make-use-of-str_true_false-helper.patch removed from -mm tree Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.