From patchwork Fri Dec 10 22:46:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12671277 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 63A11C433EF for ; Fri, 10 Dec 2021 22:51:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 715D06B0082; Fri, 10 Dec 2021 17:46:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6C4216B0083; Fri, 10 Dec 2021 17:46:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5E7646B0085; Fri, 10 Dec 2021 17:46:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0164.hostedemail.com [216.40.44.164]) by kanga.kvack.org (Postfix) with ESMTP id 4DA0E6B0082 for ; Fri, 10 Dec 2021 17:46:53 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 158618249980 for ; Fri, 10 Dec 2021 22:46:43 +0000 (UTC) X-FDA: 78903370686.18.054B92D Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf11.hostedemail.com (Postfix) with ESMTP id 502FE40008 for ; Fri, 10 Dec 2021 22:46:41 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 059EFCE2B7D; Fri, 10 Dec 2021 22:46:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA8BCC00446; Fri, 10 Dec 2021 22:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1639176398; bh=71xGL9H+mdfTWjOejoxh0aqBq/VbnI2nHzhdMkv6eqQ=; h=Date:From:To:Subject:In-Reply-To:From; b=U8mtuS2F5dhSBiD4CMDAXSoFLfZ4BCOLFITcAAAefeLwj4LXrHlHY6cqMD+Z1H9L2 TqYqs4RYF6/nd2LoiwZvlkl5dRqpwlHYdDgAyBCiv/gE7ZPiWbMNdQN28y3CF7WdDK 4mfCW6Znvzihpteh7E6Kgy804fT9BDY1aYKfkZBs= Date: Fri, 10 Dec 2021 14:46:37 -0800 From: Andrew Morton To: akpm@linux-foundation.org, brendanhiggins@google.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, shuah@kernel.org, sj@kernel.org, songmuchun@bytedance.com, torvalds@linux-foundation.org Subject: [patch 10/21] mm/damon/vaddr: remove an unnecessary warning message Message-ID: <20211210224637.SG3gpIFY6%akpm@linux-foundation.org> In-Reply-To: <20211210144539.663efee2c80d8450e6180230@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 502FE40008 X-Stat-Signature: c5atcsudgnr7mdg1nxbihe8a9dtftcqo Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=U8mtuS2F; spf=pass (imf11.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-HE-Tag: 1639176401-470942 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: SeongJae Park Subject: mm/damon/vaddr: remove an unnecessary warning message The DAMON virtual address space monitoring primitive prints a warning message for wrong DAMOS action. However, it is not essential as the code returns appropriate failure in the case. This commit removes the message to make the log clean. Link: https://lkml.kernel.org/r/20211201150440.1088-5-sj@kernel.org Fixes: 6dea8add4d28 ("mm/damon/vaddr: support DAMON-based Operation Schemes") Signed-off-by: SeongJae Park Reviewed-by: Muchun Song Cc: Brendan Higgins Cc: Shuah Khan Signed-off-by: Andrew Morton --- mm/damon/vaddr.c | 1 - 1 file changed, 1 deletion(-) --- a/mm/damon/vaddr.c~mm-damon-vaddr-remove-an-unnecessary-warning-message +++ a/mm/damon/vaddr.c @@ -627,7 +627,6 @@ int damon_va_apply_scheme(struct damon_c case DAMOS_STAT: return 0; default: - pr_warn("Wrong action %d\n", scheme->action); return -EINVAL; }