From patchwork Mon Nov 4 22:27:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keren Sun X-Patchwork-Id: 13862180 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26016D1CA06 for ; Mon, 4 Nov 2024 22:28:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A11546B0098; Mon, 4 Nov 2024 17:28:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9C1596B009A; Mon, 4 Nov 2024 17:28:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8890A6B009E; Mon, 4 Nov 2024 17:28:08 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 69B4F6B0098 for ; Mon, 4 Nov 2024 17:28:08 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id E7104120C11 for ; Mon, 4 Nov 2024 22:28:07 +0000 (UTC) X-FDA: 82749849588.17.4AB53D9 Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) by imf08.hostedemail.com (Postfix) with ESMTP id 965BB160029 for ; Mon, 4 Nov 2024 22:27:44 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=1yBg0+v9; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf08.hostedemail.com: domain of 3dUopZwgKCO4aUhUdikdWeeWbU.SecbYdkn-ccalQSa.ehW@flex--kerensun.bounces.google.com designates 209.85.219.202 as permitted sender) smtp.mailfrom=3dUopZwgKCO4aUhUdikdWeeWbU.SecbYdkn-ccalQSa.ehW@flex--kerensun.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730759227; a=rsa-sha256; cv=none; b=RoJivbp0VX7hTQoNIdEh8jOAfD+q71//PHSHzBj8tnnAwUhYhXILym4PGFnzAQESvKvJxG AtjIIm66V7X6jbe2G4eDT1IBMsXi+rGkz93GIk8tXZhIz2WYdudpJspqN/v5NpzjDEy/5C CckUlTYGkBVSekfUFGjyYPb1gvXMoNw= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=1yBg0+v9; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf08.hostedemail.com: domain of 3dUopZwgKCO4aUhUdikdWeeWbU.SecbYdkn-ccalQSa.ehW@flex--kerensun.bounces.google.com designates 209.85.219.202 as permitted sender) smtp.mailfrom=3dUopZwgKCO4aUhUdikdWeeWbU.SecbYdkn-ccalQSa.ehW@flex--kerensun.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730759227; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=9Y1rurBWlXkBJ5QujXdpx9YV8mvueM8qn9kB2Iz3Dps=; b=jrGI3r3OgzAlcYhZZ1xYlEOhk6bD87mG20xPQ7RzHj7DjTwcWugHU9Sr8UQhZHijsAL0mG NvYtqr+KIyYSAn9lEpJgcIUF/7lQFgBoFEi83Lnkpvc2O7RHWLsjqp/xjE7o9+3oP7sWJI bHXeeJXV1FEmbiizD3KgNEkN4s3GP6Y= Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-e290947f6f8so8519850276.2 for ; Mon, 04 Nov 2024 14:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1730759285; x=1731364085; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=9Y1rurBWlXkBJ5QujXdpx9YV8mvueM8qn9kB2Iz3Dps=; b=1yBg0+v9j2gIB56tmglA23RJ/RLEl2JPuJ5+D/BuLtyvkgrS9X1Y7AkofrkR48Cq9J PsucRtuHLXSCucy/XKuSgCK9Jr7nPik+MMEAZi+3XZYoENmS/npwirsVXMPTVwB1ov3Q +fKPTTZTe12wyT9GvJqOM07YwszN2OON4iX+qSGdo/+jQ2MPvMBo3/r8XlIP8PAX9odK stAllgeRGu6SoKWpjtSDEmRAVLZlym2mGcv460vA/5BTvQdfzPjKM1bUXYnVQijwGTF2 chjTweSUAP0B6bJ03P0wMvgfIJgKVOUyyYcLMP4FwrfGZxx00AHu2XYgNqBjnrQh1ZmM 0ZBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730759285; x=1731364085; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9Y1rurBWlXkBJ5QujXdpx9YV8mvueM8qn9kB2Iz3Dps=; b=XnhJV7K24AMhf5lRBr7eMVkDW5OxKtl8RPpxjSZs9j94PVPLtT/pZY7WDtqddTYBTj 6xJKJqmRkgvW+drZx0oklFMv3hFikeRGwcOgOUvmZvX+FsQBre+8f1eXYhe00WC+INE0 KL+v1D9xwf5P6N2hNZcKu7wsudPRdkZAzqnZw/p/Swsao79rXDp6qP+ulOwEU727OILW Kl4dTvwaU+CZI9+X955WG7poeZJ+nZlKc43xq4fhiniRwKbvxC+SwG3G3T0e5scfuBpZ 1MBw4bFNz+D+8P3BNfSjrrfhQCxe5Vl50LmdPrwffUb1k8Vsuo6LqsP2+FPYLHMCa0sP IpSw== X-Forwarded-Encrypted: i=1; AJvYcCW1IgzHAYFjNwvt1L6LyScm9FTMbS0teQRvx4bYnk2ir/oE6BaovT0/qdVYuzZt7U0h1XdGVMnWpA==@kvack.org X-Gm-Message-State: AOJu0Yxm8F+9pEvZHiCxeL07XusWDYIqeDqwcQuvXw3xTNTKIGkKQC5s D8ocYMXKP9uYOTACEsNBoDwuLYH9bl442KUvzX73pDfHUmPFvUuouZ6e+XuYgWDhoXE2SpH9I6Q U6dLjHZA0sw== X-Google-Smtp-Source: AGHT+IFYKOaIjpS8Fz6C5WIVgYJMz0Emr23R1GgYJzZPyhN+IxJ95BqWZNBsDFRPvDl3JbnLJUB3ze0a9JPbmw== X-Received: from kerensun.svl.corp.google.com ([2620:15c:2c5:11:2520:b863:90ba:85bc]) (user=kerensun job=sendgmr) by 2002:a25:b324:0:b0:e1c:ed3d:7bb7 with SMTP id 3f1490d57ef6-e330253c596mr9576276.1.1730759285167; Mon, 04 Nov 2024 14:28:05 -0800 (PST) Date: Mon, 4 Nov 2024 14:27:34 -0800 In-Reply-To: <20241104222737.298130-1-kerensun@google.com> Mime-Version: 1.0 References: <20241104222737.298130-1-kerensun@google.com> X-Mailer: git-send-email 2.47.0.199.ga7371fff76-goog Message-ID: <20241104222737.298130-2-kerensun@google.com> Subject: [PATCH 1/4] mm: fix quoted strings spliting across lines From: Keren Sun To: akpm@linux-foundation.org Cc: roman.gushchin@linux.dev, hannes@cmpxchg.org, mhocko@kernel.org, shakeel.butt@linux.dev, muchun.song@linux.dev, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Keren Sun X-Rspam-User: X-Rspamd-Queue-Id: 965BB160029 X-Rspamd-Server: rspam11 X-Stat-Signature: etzsido9u7scpcqe81qjcbenjd6qjoib X-HE-Tag: 1730759264-434530 X-HE-Meta: U2FsdGVkX1+ZXZyxsO+X2MJwB8m07R29XyPdpjVDse9xsYtxN8eBghmPD/6n74mDcQRMNc79oZo4APSpDG1Ibhq7uVnImK2SPK/asxdyy9QJ5+QxceT7D4sljKZn1iinVJ2uuKPnG34L+K2KKztC2xF2gj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7Q0hKKKSrD6YejGShSmmMmGRMxBRpNIFwOZRuoX6/Jmv9DCxW4kg4+jQ9MW1MVF2tWC/RRl/M4whRUgQo0Iw5BCuYrKMcHRDIgeS2BAfshjShO10+vbwlVDFVO2FV+VOQ8obobUM+geWSfR6Ny+f+l8r7AIXVtuzODFWsp5Wl2kyaSdLtnpLlVXTv9yD9SNjtKjyCTOkPIyiOxW+oNT6wHEDkm2kw5UwwYv7kZNwFlNFWhCbNlpcOzyWIJpWwz+swz6HDtoaFHL2Kh/zjedFfDHRKcdUyej74QWsQXJGK+LLnt+N/UqVWOU4D7iiC0zApfaU7dD4eNmrvtjxf3+VBHsPJai2MVsXufrB9X6FPKNovmZY9ganM6fpftIBSEpLQaeeANWc= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000006, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: This patch fixes quoted strings splitting across lines in pr_warn_once() by putting them into one line. Signed-off-by: Keren Sun --- mm/memcontrol-v1.c | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/mm/memcontrol-v1.c b/mm/memcontrol-v1.c index 81d8819f13cd..3951538bd73f 100644 --- a/mm/memcontrol-v1.c +++ b/mm/memcontrol-v1.c @@ -602,9 +602,7 @@ static int mem_cgroup_move_charge_write(struct cgroup_subsys_state *css, { struct mem_cgroup *memcg = mem_cgroup_from_css(css); - pr_warn_once("Cgroup memory moving (move_charge_at_immigrate) is deprecated. " - "Please report your usecase to linux-mm@kvack.org if you " - "depend on this functionality.\n"); + pr_warn_once("Cgroup memory moving (move_charge_at_immigrate) is deprecated. Please report your usecase to linux-mm@kvack.org if you depend on this functionality.\n"); if (val & ~MOVE_MASK) return -EINVAL; @@ -1994,15 +1992,11 @@ static ssize_t memcg_write_event_control(struct kernfs_open_file *of, event->register_event = mem_cgroup_usage_register_event; event->unregister_event = mem_cgroup_usage_unregister_event; } 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"); + 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"); 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"); + 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"); event->register_event = vmpressure_register_event; event->unregister_event = vmpressure_unregister_event; } else if (!strcmp(name, "memory.memsw.usage_in_bytes")) { @@ -2408,9 +2402,7 @@ static int mem_cgroup_hierarchy_write(struct cgroup_subsys_state *css, if (val == 1) return 0; - pr_warn_once("Non-hierarchical mode is deprecated. " - "Please report your usecase to linux-mm@kvack.org if you " - "depend on this functionality.\n"); + pr_warn_once("Non-hierarchical mode is deprecated. Please report your usecase to linux-mm@kvack.org if you depend on this functionality.\n"); return -EINVAL; } @@ -2533,16 +2525,11 @@ static ssize_t mem_cgroup_write(struct kernfs_open_file *of, ret = mem_cgroup_resize_max(memcg, nr_pages, true); break; case _KMEM: - pr_warn_once("kmem.limit_in_bytes is deprecated and will be removed. " - "Writing any value to this file has no effect. " - "Please report your usecase to linux-mm@kvack.org if you " - "depend on this functionality.\n"); + pr_warn_once("kmem.limit_in_bytes is deprecated and will be removed. Writing any value to this file has no effect. Please report your usecase to linux-mm@kvack.org if you depend on this functionality.\n"); ret = 0; break; case _TCP: - pr_warn_once("kmem.tcp.limit_in_bytes is deprecated and will be removed. " - "Please report your usecase to linux-mm@kvack.org if you " - "depend on this functionality.\n"); + pr_warn_once("kmem.tcp.limit_in_bytes is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality.\n"); ret = memcg_update_tcp_max(memcg, nr_pages); break; } @@ -2551,9 +2538,7 @@ static ssize_t mem_cgroup_write(struct kernfs_open_file *of, if (IS_ENABLED(CONFIG_PREEMPT_RT)) { ret = -EOPNOTSUPP; } else { - pr_warn_once("soft_limit_in_bytes is deprecated and will be removed. " - "Please report your usecase to linux-mm@kvack.org if you " - "depend on this functionality.\n"); + pr_warn_once("soft_limit_in_bytes is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality.\n"); WRITE_ONCE(memcg->soft_limit, nr_pages); ret = 0; } @@ -2847,9 +2832,7 @@ static int mem_cgroup_oom_control_write(struct cgroup_subsys_state *css, { struct mem_cgroup *memcg = mem_cgroup_from_css(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"); + 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"); /* cannot set to root cgroup and only 0 and 1 are allowed */ if (mem_cgroup_is_root(memcg) || !((val == 0) || (val == 1)))