]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm: remove unnecessary whitespace before a quoted newline
authorKeren Sun <kerensun@google.com>
Fri, 15 Nov 2024 23:57:43 +0000 (15:57 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 14 Jan 2025 06:40:40 +0000 (22:40 -0800)
Remove whitespaces before newlines for strings in pr_warn_once()

Link: https://lkml.kernel.org/r/20241115235744.1419580-3-kerensun@google.com
Signed-off-by: Keren Sun <kerensun@google.com>
Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol-v1.c

index 914fbd5b65c80dfe4d6f92209a393219290c2845..c9fe524d341a59a3b5c1c509d85f2850bf46aee2 100644 (file)
@@ -1040,13 +1040,13 @@ static ssize_t memcg_write_event_control(struct kernfs_open_file *of,
        } else if (!strcmp(name, "memory.oom_control")) {
                pr_warn_once("oom_control is deprecated and will be removed. "
                             "Please report your usecase to linux-mm-@kvack.org"
-                            " if you depend on this functionality. \n");
+                            " if you depend on this functionality.\n");
                event->register_event = mem_cgroup_oom_register_event;
                event->unregister_event = mem_cgroup_oom_unregister_event;
        } else if (!strcmp(name, "memory.pressure_level")) {
                pr_warn_once("pressure_level is deprecated and will be removed. "
                             "Please report your usecase to linux-mm-@kvack.org "
-                            "if you depend on this functionality. \n");
+                            "if you depend on this functionality.\n");
                event->register_event = vmpressure_register_event;
                event->unregister_event = vmpressure_unregister_event;
        } else if (!strcmp(name, "memory.memsw.usage_in_bytes")) {
@@ -1881,7 +1881,7 @@ static int mem_cgroup_oom_control_write(struct cgroup_subsys_state *css,
 
        pr_warn_once("oom_control is deprecated and will be removed. "
                     "Please report your usecase to linux-mm-@kvack.org if you "
-                    "depend on this functionality. \n");
+                    "depend on this functionality.\n");
 
        /* cannot set to root cgroup and only 0 and 1 are allowed */
        if (mem_cgroup_is_root(memcg) || !((val == 0) || (val == 1)))