* + mm-memcontrol-assign-boolean-values-to-a-bool-variable.patch added to -mm tree
@ 2020-11-18 23:58 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2020-11-18 23:58 UTC (permalink / raw)
To: hannes, jrdr.linux, kaixuxia, mhocko, mm-commits,
tencent_os_robot, vdavydov.dev
The patch titled
Subject: mm: memcontrol: Assign boolean values to a bool variable
has been added to the -mm tree. Its filename is
mm-memcontrol-assign-boolean-values-to-a-bool-variable.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-memcontrol-assign-boolean-values-to-a-bool-variable.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-memcontrol-assign-boolean-values-to-a-bool-variable.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Kaixu Xia <kaixuxia@tencent.com>
Subject: mm: memcontrol: Assign boolean values to a bool variable
Fix the following coccinelle warnings:
./mm/memcontrol.c:7341:2-22: WARNING: Assignment of 0/1 to bool variable
./mm/memcontrol.c:7343:2-22: WARNING: Assignment of 0/1 to bool variable
Link: https://lkml.kernel.org/r/1604737495-6418-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reported-by: Tosk Robot <tencent_os_robot@tencent.com>
Acked-by: Souptick Joarder <jrdr.linux@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/memcontrol.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/mm/memcontrol.c~mm-memcontrol-assign-boolean-values-to-a-bool-variable
+++ a/mm/memcontrol.c
@@ -7340,9 +7340,9 @@ bool mem_cgroup_swap_full(struct page *p
static int __init setup_swap_account(char *s)
{
if (!strcmp(s, "1"))
- cgroup_memory_noswap = 0;
+ cgroup_memory_noswap = false;
else if (!strcmp(s, "0"))
- cgroup_memory_noswap = 1;
+ cgroup_memory_noswap = true;
return 1;
}
__setup("swapaccount=", setup_swap_account);
_
Patches currently in -mm which might be from kaixuxia@tencent.com are
mm-memcontrol-assign-boolean-values-to-a-bool-variable.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-18 23:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-18 23:58 + mm-memcontrol-assign-boolean-values-to-a-bool-variable.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).