From patchwork Mon Jul 8 07:42:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alexs@kernel.org X-Patchwork-Id: 13726250 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 3D9FFC3271E for ; Mon, 8 Jul 2024 07:37:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 836946B00A4; Mon, 8 Jul 2024 03:37:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7C1106B00A5; Mon, 8 Jul 2024 03:37:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6873B6B00A7; Mon, 8 Jul 2024 03:37:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 45F766B00A4 for ; Mon, 8 Jul 2024 03:37:49 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id BA5B21C255F for ; Mon, 8 Jul 2024 07:37:48 +0000 (UTC) X-FDA: 82315781016.25.F1689B1 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf21.hostedemail.com (Postfix) with ESMTP id AA4D11C000C for ; Mon, 8 Jul 2024 07:37:45 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=QIpXkjGg; spf=pass (imf21.hostedemail.com: domain of alexs@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=alexs@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1720424251; a=rsa-sha256; cv=none; b=2OJAefQB5P42BinD/rdCc2qDhE5sgIUnMcX+E7oOHh6LQDeZV6Qq1y2d7vU1yC+9VNj4id 36eezhIV/DiJpmocKwH2hdUG3NoZmG7TkiwnCVfwe6M0MCzmWe+H+iuBhhd3HrA7hpzWWp 54cNarLjYsZiLvNgQG2kCgZn2QZb+yY= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=QIpXkjGg; spf=pass (imf21.hostedemail.com: domain of alexs@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=alexs@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1720424251; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=E3h1VMtiJVnmE4rumFsFTJfy55WrAW4KTbzRpx8vUt4=; b=Dxl9vSu9nKYEtT/tF6MsoZCogJYHB65FV4hJ6QuCKtUTPjr1YLrba8tLtQFfQ541FtjI6j XcboveWlO3FkDWearZ2g1WVvP8DHJmZnbG3clHn0O8S4B5qc2r79zjAu4qKk8eU3gNfXbx Yxjxwj2XuRlxwLn0fhsEwC5pnBiWBz8= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 91B71CE0AC1; Mon, 8 Jul 2024 07:37:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0108C116B1; Mon, 8 Jul 2024 07:37:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720424261; bh=0K9mUeoquePkBdTj1AKzZ4BkSOCOLKIg7fSO7Rbw1AI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QIpXkjGgzXgG75tkN8T/XcAZHjFOsAgRcX/s2N+ZOYqnvNpJ5m8Pwg0lOqWeA/rtR i4xEuKJxcxOyokCF5wvSvX99bnYULSNa+Jrz88H12WiFaCW6Xjnm/ljoKX7tT/g28x Fmq/d+aam+tGE3/8maY1ZWSPg5DtVNQbr9Qk0cocIRp44VSgZgaOlSBeXo9UJGaNkM TcqaVP/ditBggBIGFt/Keve6CR95tUJ27tVOEoUnih7rjwyX7/4jDRI1n5deN4bTxr wL47c6gMOxkFblQe7F22BQvSi4cXClOWzoyNhGIFfL2u5HtAy++Ju/sf/01kJjLYGC xz89EtdmSQCzQ== From: alexs@kernel.org To: alexs@kernel.org Cc: 42.hyeyoo@gmail.com, akpm@linux-foundation.org, david@redhat.com, linmiaohe@huawei.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, minchan@kernel.org, nphamcs@gmail.com, senozhatsky@chromium.org, vitaly.wool@konsulko.com, willy@infradead.org, yosryahmed@google.com, kernel test robot Subject: [PATCH] mm/zsmalloc: fix build warning from lkp testing Date: Mon, 8 Jul 2024 15:42:23 +0800 Message-ID: <20240708074223.1113744-1-alexs@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240708063344.1096626-18-alexs@kernel.org> References: <20240708063344.1096626-18-alexs@kernel.org> MIME-Version: 1.0 X-Stat-Signature: ozc3z94ezug1zp3cfqxp8wjp7t4by5j1 X-Rspamd-Queue-Id: AA4D11C000C X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1720424265-808970 X-HE-Meta: U2FsdGVkX1+26ZDx2e6gH6oTQ25G8qxlpYxWoaYLVzm3aRvJw1ixFCOV6rRYZCC5xfxjdiPlLkkFQZGDj2vSsLwa0pBkS3OkEO5ZOf2wI5MqZUG9xJbVgl/qEnOsm4Ds290toqzerYuopww0kj4cWrZ7oR56gpvhZtcpn0Ap+Hi71VxDVOzqYYhX6c5cI6/r+tfeTk6UqJu+l27eZpKfp7RMLrpmUcFPnEfGuaMdMf9E0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6/6cRUou/sTM= 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: List-Subscribe: List-Unsubscribe: From: "Alex Shi (Tencent)" LKP reported the following warning w/o CONFIG_DEBUG_VM: mm/zsmalloc.c:471:12: warning: function 'is_first_zpdesc' is not needed and will not be emitted [-Wunneeded-internal-declaration] To remove this warning, better to incline the function is_first_zpdesc Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202407052102.qbT7nLMK-lkp@intel.com/ Signed-off-by: Alex Shi (Tencent) --- mm/zsmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 7f8e02df4e3e..64e523ae71f8 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -468,7 +468,7 @@ static DEFINE_PER_CPU(struct mapping_area, zs_map_area) = { .lock = INIT_LOCAL_LOCK(lock), }; -static int is_first_zpdesc(struct zpdesc *zpdesc) +static inline bool is_first_zpdesc(struct zpdesc *zpdesc) { return PagePrivate(zpdesc_page(zpdesc)); }