From patchwork Tue Jul 30 12:34:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 13747347 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 1A00CC3DA7E for ; Tue, 30 Jul 2024 12:35:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8329A6B0083; Tue, 30 Jul 2024 08:35:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E28B6B0085; Tue, 30 Jul 2024 08:35:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6D1126B0088; Tue, 30 Jul 2024 08:35:01 -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 4E1F06B0083 for ; Tue, 30 Jul 2024 08:35:01 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id EB9B6A0299 for ; Tue, 30 Jul 2024 12:35:00 +0000 (UTC) X-FDA: 82396363560.02.D38CEFF Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by imf20.hostedemail.com (Postfix) with ESMTP id 313D41C0010 for ; Tue, 30 Jul 2024 12:34:58 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cFSia0dP; spf=pass (imf20.hostedemail.com: domain of ubizjak@gmail.com designates 209.85.218.52 as permitted sender) smtp.mailfrom=ubizjak@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722342856; 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:references:dkim-signature; bh=nLI0Gp0XhbBdVYY0KCB9wI3IWm4WXL6Bchcon2mCV3c=; b=iAuIa1TqJqV8VKNlYFYxfBrRv5CgkT71X24qdcx24fQ/TdcnuJBQo4G3s39DbzRwLIepyn t2nOkXBbs6mvEGO82bSGSFz3liPQci2lK3KKxFfJnilBNNm7Hu79oP0vi+LMzSzX/zRuK5 2DG0/YO24one96q4llKwfV6cWkQW0io= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cFSia0dP; spf=pass (imf20.hostedemail.com: domain of ubizjak@gmail.com designates 209.85.218.52 as permitted sender) smtp.mailfrom=ubizjak@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722342856; a=rsa-sha256; cv=none; b=Ls453Wz4HHEX9BTX/zhBnCvKxCJVjRQ0doNuHoCHO8BR5Cl37Rau3oJg3fPvQ/1c4GWLev svQoJQK9TKvnWlOS6ojU+FVGBj7Opvlp7Jg8inxKIhYCb4njsAZawVECxj7rSroIK7ASJ9 4cRpORgfoi9j/GqxPpgGAg6rTXz3A2k= Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a7a9cf7d3f3so534490766b.1 for ; Tue, 30 Jul 2024 05:34:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722342897; x=1722947697; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nLI0Gp0XhbBdVYY0KCB9wI3IWm4WXL6Bchcon2mCV3c=; b=cFSia0dPNb3vnYl4m1o8Xib4hHxIXHH9l0H1my4ek50aNUx9Vmt2icAwUjS2OmM3HZ YDDS+/ZiHVwdle0E941AKkJpbt7e6Wi9gSwsHSrY70FVD7cYNnKA+MpGud2bwiEPaoid I3FK5Os3RFMQmFWEPa/ZWdkLzkNUoyacPM5p1XMM8m+k8mB5XnlPghkyDv2hV507XCOE ox/Vs7L+62ftG2rLXucnk/g+C6oFAXE8y7TsBd6YECARZpbFy/18D0JSXyF0AZb1uxm0 4Dis68YcXT/DxQTDMy1pdJ6e0Que/OX+8y+02eth8FbSl5fJFsGzTs+qKFnAbLJ4O984 kctA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722342897; x=1722947697; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nLI0Gp0XhbBdVYY0KCB9wI3IWm4WXL6Bchcon2mCV3c=; b=Zw0Zezs7cQib0ggA0MrDYDjwB3TuIY/KuOM9acMlZdmBiblVKRgMtXYISZIRUOsC4G 6pq/CsD0qfjnS9DaVVm3Rf9qO23Vi8v4PWphIiQ3dymnYO1EEaP3Sg91IWUKDpgG2iFC /S9PNFepJ/d4o3CgvSE85Ehgm5LB43JGcv+ABdP/YDjt8IvunLFkULi/ob9pZOMPkO1d jMk/DPURR5MdDIAY+yVaeUMYF4UNk4ZuzP254Gxi3pYdWroWMYWGYIwyC5uv9tMvIqUe syjufeyPy4sDr4s3nGGmqoGEBMj/DLEV0cT8x1lfX+oVyB/8bCUG6QgWy5IP0uDlOPsA fZhA== X-Gm-Message-State: AOJu0YyUui6pWQzm4mU8Y1zaxgwaQ9kQQaODKJ6C596xDYZgPZXmG6It Udt9AHan1gxoaU1f6YuC8QD32VpGoUwcEcA0HGKCpv4Mv9b0lfLrwWXhig== X-Google-Smtp-Source: AGHT+IFJtDD5DJfLtCJSd2Wgv+RHdYMTSm8PvQx9eEYwTfX+WWDBmTdo9xQCQUn/uNc0tXh6MU4yxg== X-Received: by 2002:a17:906:99c2:b0:a77:cb7d:f356 with SMTP id a640c23a62f3a-a7d40112387mr826769766b.51.1722342897032; Tue, 30 Jul 2024 05:34:57 -0700 (PDT) Received: from localhost.localdomain (93-103-32-68.dynamic.t-2.net. [93.103.32.68]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acad414e2sm638429466b.127.2024.07.30.05.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jul 2024 05:34:56 -0700 (PDT) From: Uros Bizjak To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Uros Bizjak , Vitaly Wool , Miaohe Lin , Andrew Morton Subject: [PATCH] mm/z3fold: Add __percpu annotation to *unbuddied pointer in struct z3fold_pool Date: Tue, 30 Jul 2024 14:34:17 +0200 Message-ID: <20240730123445.5875-1-ubizjak@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Stat-Signature: idqdi81ugcuxauimcxfwgdhuc84tshh5 X-Rspam-User: X-Rspamd-Queue-Id: 313D41C0010 X-Rspamd-Server: rspam02 X-HE-Tag: 1722342898-791943 X-HE-Meta: U2FsdGVkX18D3zx58w1ajdLN7WDuDHaOSQpmQxJgEoxI+yPE+voclCsnO6pjMGNJz23q3JXnIf8iWblkYphKSUmlQdrbm4rU0h0zuVb2dTOgxSXtAF7Ut4rHoKI9R6ROsPOQG/u3xnjXz5TdHNtFe4zfimHwN8Focbxi8IH2AKLWn+zIvo7wStG1R1VHCABoa+KszGkwMN7IegfJqaBoKJGVKgC28vfSEPqzdY2EjSF+AbeyZSzMUezEDUFThPWjyet16rWThmnAEsAyofRHpsY921G48BUkTysVFMaOflctCL0GTPzKT49U1RjUvRJE5vijYi5cKwJcBc4ffmBNBGX83BiWpcGe73wRPgywLhUaKSSGvjfFF5qJ4TcFPB85IwZYciwe7r65/FLXIXixQ202Y2HEMfoC9QTxYDsr8EVp0JeqAoVw9ay+V9ocSx3nBX6d7czy0Lnv+cs4EAD7cpsMfjcGOr2u/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=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: Compiling z3fold.c results in several sparse warnings: z3fold.c:797:21: warning: incorrect type in initializer (different address spaces) z3fold.c:797:21: expected void const [noderef] __percpu *__vpp_verify z3fold.c:797:21: got struct list_head * z3fold.c:852:37: warning: incorrect type in initializer (different address spaces) z3fold.c:852:37: expected void const [noderef] __percpu *__vpp_verify z3fold.c:852:37: got struct list_head * z3fold.c:924:25: warning: incorrect type in assignment (different address spaces) z3fold.c:924:25: expected struct list_head *unbuddied z3fold.c:924:25: got void [noderef] __percpu *_res z3fold.c:930:33: warning: incorrect type in initializer (different address spaces) z3fold.c:930:33: expected void const [noderef] __percpu *__vpp_verify z3fold.c:930:33: got struct list_head * z3fold.c:949:25: warning: incorrect type in argument 1 (different address spaces) z3fold.c:949:25: expected void [noderef] __percpu *__pdata z3fold.c:949:25: got struct list_head *unbuddied z3fold.c:979:25: warning: incorrect type in argument 1 (different address spaces) z3fold.c:979:25: expected void [noderef] __percpu *__pdata z3fold.c:979:25: got struct list_head *unbuddied Add __percpu annotation to *unbuddied pointer to fix these warnings. Signed-off-by: Uros Bizjak Cc: Vitaly Wool Cc: Miaohe Lin Cc: Andrew Morton Reviewed-by: Miaohe Lin --- mm/z3fold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/z3fold.c b/mm/z3fold.c index 2ebfed32871b..379d24b4fef9 100644 --- a/mm/z3fold.c +++ b/mm/z3fold.c @@ -144,7 +144,7 @@ struct z3fold_pool { const char *name; spinlock_t lock; spinlock_t stale_lock; - struct list_head *unbuddied; + struct list_head __percpu *unbuddied; struct list_head stale; atomic64_t pages_nr; struct kmem_cache *c_handle;