From patchwork Mon Jul 29 11:25:33 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: 13744744 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 1A805C3DA61 for ; Mon, 29 Jul 2024 11:21:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B89C06B00BC; Mon, 29 Jul 2024 07:21:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AECDD6B00BA; Mon, 29 Jul 2024 07:21:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 98CC96B00BC; Mon, 29 Jul 2024 07:21:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 795886B0088 for ; Mon, 29 Jul 2024 07:21:29 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 3874C1C0C8C for ; Mon, 29 Jul 2024 11:21:29 +0000 (UTC) X-FDA: 82392549498.15.78361E2 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf18.hostedemail.com (Postfix) with ESMTP id 7AA981C000B for ; Mon, 29 Jul 2024 11:21:27 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Q1CgdvR2; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf18.hostedemail.com: domain of alexs@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=alexs@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722252044; a=rsa-sha256; cv=none; b=evvLv5dPms0/3G2XECl3l8nRgUEbFk46dugO8RyQjAZ0vI0HaVZYFwjgy/9b069Dd/hpbe dE+DmuW/SwkXNd9tMm8KGwzixnHyLbOLAxo2uOjB/jNSVrsbwnxWmANVkiyo4TbCIfrK4D bVUDi5KpKi1zz2QMKfU50vbF3UR4zg0= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Q1CgdvR2; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf18.hostedemail.com: domain of alexs@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=alexs@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722252044; 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=B1n40j21H3rlLYzer+9c9HErHW186d/2a6ccxgSeZtI=; b=o9JkgXNUfcY2g6qq9BGG+7sg5yg/Jo4BndnXKaG+YvLPTQh37IyUJIFDBIzf9qGc5nJ6hY tLtYDtDu27K0UcBBJHqwvjgIeDvoKWj3hAMVJVCwZQpGG1MGiaujkqxKlxKb4ZuLCD9098 bZUc+wIkxxb8GlUjMUM6I3yov2puAe8= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id AA67A617A3; Mon, 29 Jul 2024 11:21:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 707BAC4AF07; Mon, 29 Jul 2024 11:21:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722252086; bh=lHz4+kv9JsOYqs60tdoZ6ATt9ROlCYt2854vH8gmrb4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q1CgdvR29F1u5T1ro7OnwYP8ZI6Z8m5hqoCiuU6o2r6/Llckc5OZClzt+xtMn3slx AFvT91UPiTj2FxS6Alp1vxaZ3e++kWdf5oS7M3Sj3DUCwEoJth7Ceb7JnkuabRtR0l R5iECzCnEGJmmx8aarCKgA4UNXSt71i1vHs3BXW+pArZP4RaS+ZMO6PZT+855B6LaB 9BGgI25HnzxXeJBvgkW+SHFyRqJ+tu43jYM6AEzD62G+fWy02YX00rzqkL0+2y4ACp 7UEsjmUXSG3nhoO+rx5BV2wgsV31LrkbcwddZpOqClNWsrD/liVk7o5QAksSAwuHQZ Db5SyjD/FlHIA== From: alexs@kernel.org To: Vitaly Wool , Miaohe Lin , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, minchan@kernel.org, willy@infradead.org, senozhatsky@chromium.org, david@redhat.com, 42.hyeyoo@gmail.com, Yosry Ahmed , nphamcs@gmail.com Cc: Alex Shi , kernel test robot Subject: [PATCH v4 21/22] mm/zsmalloc: fix build warning from lkp testing Date: Mon, 29 Jul 2024 19:25:33 +0800 Message-ID: <20240729112534.3416707-22-alexs@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240729112534.3416707-1-alexs@kernel.org> References: <20240729112534.3416707-1-alexs@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 7AA981C000B X-Stat-Signature: ma5nyumtf3czpne3as4915awxnw8xq5f X-Rspam-User: X-HE-Tag: 1722252087-566856 X-HE-Meta: U2FsdGVkX1/qtkVydWOIHk3LErW5lU3imj8GF5TfkgN8rZ1t3fC97WzTrerTIkK9iT/XTRm7zHyJLXXpUstiwUN50RR7b5daekkKuPesURkpoohyN6BOcKDmxVJcE35bzMWW5vZlTuCKEPl9qZ4ODYVaCSerJRP+A091CwMcboD3ydEWNF8QRsYy4Mrq9dW8nbgzLW9fVjdBPCUiWCr3D0JPmoDSB2wgbG/yKe30/LvbqvbI1k3QsuG2WD7IKmUZJkQXHcfgAMuf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icity=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 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 --- 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)); }