Message ID | 20240814064437.940162-1-ubizjak@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 07C49C3DA4A for <linux-mm@archiver.kernel.org>; Wed, 14 Aug 2024 06:44:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 65D906B0082; Wed, 14 Aug 2024 02:44:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 60E216B0083; Wed, 14 Aug 2024 02:44:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4FCB56B0085; Wed, 14 Aug 2024 02:44:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 376236B0082 for <linux-mm@kvack.org>; Wed, 14 Aug 2024 02:44:46 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id A64ED160C9D for <linux-mm@kvack.org>; Wed, 14 Aug 2024 06:44:45 +0000 (UTC) X-FDA: 82449912930.03.6E3D3DA Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) by imf27.hostedemail.com (Postfix) with ESMTP id DD8D240007 for <linux-mm@kvack.org>; Wed, 14 Aug 2024 06:44:43 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GcKpJjPE; spf=pass (imf27.hostedemail.com: domain of ubizjak@gmail.com designates 209.85.218.49 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=1723617812; 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=disicnMbwYkjy8JboJFLoo9d06xO3eMp583K8UkezmY=; b=T8eMYttPBhHDbDPzvS+0mdp+izLX3K69Qq5IodKmXeZh32TJgCg5VY3Ax9+yjf6nmY9sXu Bw2ZATg/hy1d+yzcp/ejM63OE1bB0tm+6OTtzYj2DgW4ldkphSQqn5oAVYF95Y6qEAhDxB w+1ZSX2BzuplYrh5hQiV0pljMwXroFM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1723617812; a=rsa-sha256; cv=none; b=phsWcVDYhrsYsfedU6Eqtk0rgANvefzO4e+/8iSr6oUrFUVaAD6GCGJNdNFgjhYSUBnrXR PIzBJODZ4CEBnrvy5AuueXRT0F/l/dN+SlC7eFxalR9ukz5geAlo1bWe0zQigFMUODWCLa r19zCrcoWxeNvgF9Eb2sSUk/8Nypk2E= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GcKpJjPE; spf=pass (imf27.hostedemail.com: domain of ubizjak@gmail.com designates 209.85.218.49 as permitted sender) smtp.mailfrom=ubizjak@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a83597ce5beso87634266b.1 for <linux-mm@kvack.org>; Tue, 13 Aug 2024 23:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723617882; x=1724222682; 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=disicnMbwYkjy8JboJFLoo9d06xO3eMp583K8UkezmY=; b=GcKpJjPEsdJAMVL7QDXCkqh3Vqtdi5MT7VfzsK7Ab1bOek8TwVGzXinkIDWnD0wywQ NH+H8UGQu4gH3KuAJol0EU1gcs5aGU21UgIHtX1LGSh0ZmPuCvhOCHZq/SalTBFeXxZd sPkiAlGT/ygbah6WQsH9E6nm/bjxHHLoj2RpemoeqCeFHMXtn8t6avya3SBz656Z1xMJ 9Y+oclrrQEk3EZRK4pMkF9cjqq6gA7rwSpVklwTcL0+HN2Li7FTsDN7O8a6yJUrMLCma K15pZ0UQhx8JjGv3qBgAvJjMD3nHrYVE6ND5dh1Z69IPLpmKeBJuVn6qR/prodAmvdtk EJLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723617882; x=1724222682; 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=disicnMbwYkjy8JboJFLoo9d06xO3eMp583K8UkezmY=; b=YY5E3mCJbYXhM0SIR8HH8eVsJ2a6dvh9BuY88/ui1ACEpFV7E5B7yYu3NubO1hP1xA SnhHXsKzyG5+BP4l+RUGdlqY9KO0jqWJeK0ecEJS+iU9veePht5W8uymusIvtU1Oa5GC AQnZoXXwuAuLWw0es+PNhOoBKa+pFUfMECY3YkYyPpCfOrndTCF9wXNlsbgYSEXQHtkE haswiaem/S0v9BVRbc1wdjAzkD6khC7afirVDn+mFBdFbM7lJ8kvvLdqzbFZ+CbfdqGQ p7A4J+m+8f9X8i0UO1odAyVZh2BynT6afnXStpi/kDfI6wdSK/33i/LPR7EPkUgyJo8Y FCDg== X-Gm-Message-State: AOJu0YyslJcEC+HqPmplthy9uNBI34ClSUPu1Dd7ZvqKhPzYdkZhRQqw IizF0ndTHu9TsBhpSGgfQxc5RiJCUhXrozGYYNY/kqiP7++kcyfuW2w2PSP3 X-Google-Smtp-Source: AGHT+IHEbQYiFE69V75FNh6J8biCD/Uo1nJq3/aXKk5m2YQ4JkN4gYaQS1etWnwkwxFAHrlcOMOvWQ== X-Received: by 2002:a17:907:7faa:b0:a80:c0ed:2145 with SMTP id a640c23a62f3a-a836ab73c52mr120410266b.2.1723617881570; Tue, 13 Aug 2024 23:44:41 -0700 (PDT) Received: from fedora.iskraemeco.si ([193.77.86.250]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a80f414e46csm136293466b.180.2024.08.13.23.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Aug 2024 23:44:41 -0700 (PDT) From: Uros Bizjak <ubizjak@gmail.com> To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Uros Bizjak <ubizjak@gmail.com>, Andrew Morton <akpm@linux-foundation.org>, Dennis Zhou <dennis@kernel.org>, Tejun Heo <tj@kernel.org>, Christoph Lameter <cl@linux.com> Subject: [PATCH] lib/percpu_counter: Add missing __percpu qualifier to a cast Date: Wed, 14 Aug 2024 08:44:13 +0200 Message-ID: <20240814064437.940162-1-ubizjak@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: DD8D240007 X-Stat-Signature: a4fd84pobmcnuznqmpt7r1zh5qduxzn4 X-HE-Tag: 1723617883-645589 X-HE-Meta: U2FsdGVkX199FRyQTsrcFPqBb95Yz/0MXeLaOWbcBTauj+8InBJG0JvG42kjhB3d4M84uleCfpHZG7R8VqCgqFmslzyA5/WO7dVJOffnlTkfNBYd2YR8785rIqCY/37Q4re2252eF1v9a/NBlmffOE4sA0wJdu+6HWmn9mRmdP+xyZC4snSphuNofWLaWsfCbS9PEdG2FK6+1IUItHuWcCFhCpX5Kxx0vZMqaV+RmL3u8GRkjgsMnAYwBg3VBitLc1IPev2X+O6uMq/Z150TnSpYqp9C91OtZ33ONbPcE92f2QE05MkSCb0ECcqyuETgwBZwEB1C1F19ykGj9XeWwj7fNANv7HLNz5Jg1QhViX6hIjXcQX9MC+7BKBDHaf5QrYkEdgaxLzI6mZ/h5Qc1b7e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GWtISL6skg1JECTN/3S0nwkNn0zW6w90bP5U1IkCucu7nuCr3Zpnb6eIGddKNEy5x6grr+0+NjYUB2eAspsvT6eVJyjB 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
lib/percpu_counter: Add missing __percpu qualifier to a cast
|
expand
|
diff --git a/lib/percpu_counter.c b/lib/percpu_counter.c index 51bc5246986d..2891f94a11c6 100644 --- a/lib/percpu_counter.c +++ b/lib/percpu_counter.c @@ -209,7 +209,7 @@ int __percpu_counter_init_many(struct percpu_counter *fbc, s64 amount, INIT_LIST_HEAD(&fbc[i].list); #endif fbc[i].count = amount; - fbc[i].counters = (void *)counters + (i * counter_size); + fbc[i].counters = (void __percpu *)counters + i * counter_size; debug_percpu_counter_activate(&fbc[i]); }
Add missing __percpu qualifier to a (void *) cast to fix percpu_counter.c:212:36: warning: cast removes address space '__percpu' of expression percpu_counter.c:212:33: warning: incorrect type in assignment (different address spaces) percpu_counter.c:212:33: expected signed int [noderef] [usertype] __percpu *counters percpu_counter.c:212:33: got void * sparse warnings. Found by GCC's named address space checks. There were no changes in the resulting object file. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Dennis Zhou <dennis@kernel.org> Cc: Tejun Heo <tj@kernel.org> Cc: Christoph Lameter <cl@linux.com> --- lib/percpu_counter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)