From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51028153814; Mon, 6 Jan 2025 15:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736177897; cv=none; b=Ix0BWbQbH5DZzDQHL9LQ0mxLZ6I4W9qqqeun2SVXvOurJYm+GE138t6bkAwYyp+1rxLhCxwS807Na8sBiFjvMgKbZ5TruzSkvoHOqmIWdhe9Y5JsKN/ChGSTqgNls/FvcgD+rHzj9kH5wHhoEyaz2evci/zcNXfu+JwNbdq6hlo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736177897; c=relaxed/simple; bh=qdO9936j/aymQ+lq/Er6DrfqEM5twxyTlhKNwur+5r0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OiLFv9PZHCGRkyDBIeD+xq6vos2659zetNztpM3QChRBJ3J5Txs5XgxUKxK0hAFTS0AMycW5xXRp9I0UkNpP/CoyVqrYojc+B3SfS6LvTcw9mi1ypRHhwAXeJjXJ0GOQZ3iJOuiXi4FONGb2m4TgZBhLGMzp7Nb7nPCe+dO+xPo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n24JPYwM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="n24JPYwM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CADABC4CED2; Mon, 6 Jan 2025 15:38:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736177897; bh=qdO9936j/aymQ+lq/Er6DrfqEM5twxyTlhKNwur+5r0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n24JPYwMNkLSIkE+wgaLxCgnoChJBs1Jil4vNXee0na/4PLQSjkJ3RhKb8uJvf7/O P+VUWhElzvv6BCokAMdEAa6Mh2PN4ZiynN+IcxZYm6f7nz2hmNdDJAScB+RDUYPuJd uHN2aAzkGaVLylCuw6ydo+6/2X8mXKRHXOWH9udo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , "Paul E. McKenney" , linux-snps-arc@lists.infradead.org, Vineet Gupta , Sasha Levin Subject: [PATCH 6.12 094/156] ARC: build: Use __force to suppress per-CPU cmpxchg warnings Date: Mon, 6 Jan 2025 16:16:20 +0100 Message-ID: <20250106151145.265124920@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250106151141.738050441@linuxfoundation.org> References: <20250106151141.738050441@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Paul E. McKenney [ Upstream commit 1e8af9f04346ecc0bccf0c53b728fc8eb3490a28 ] Currently, the cast of the first argument to cmpxchg_emu_u8() drops the __percpu address-space designator, which results in sparse complaints when applying cmpxchg() to per-CPU variables in ARC. Therefore, use __force to suppress these complaints, given that this does not pertain to cmpxchg() semantics, which are plently well-defined on variables in general, whether per-CPU or otherwise. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202409251336.ToC0TvWB-lkp@intel.com/ Signed-off-by: Paul E. McKenney Cc: Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin --- arch/arc/include/asm/cmpxchg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/include/asm/cmpxchg.h b/arch/arc/include/asm/cmpxchg.h index 58045c898340..76f43db0890f 100644 --- a/arch/arc/include/asm/cmpxchg.h +++ b/arch/arc/include/asm/cmpxchg.h @@ -48,7 +48,7 @@ \ switch(sizeof((_p_))) { \ case 1: \ - _prev_ = (__typeof__(*(ptr)))cmpxchg_emu_u8((volatile u8 *)_p_, (uintptr_t)_o_, (uintptr_t)_n_); \ + _prev_ = (__typeof__(*(ptr)))cmpxchg_emu_u8((volatile u8 *__force)_p_, (uintptr_t)_o_, (uintptr_t)_n_); \ break; \ case 4: \ _prev_ = __cmpxchg(_p_, _o_, _n_); \ -- 2.39.5 From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BDAC9E77188 for ; Mon, 6 Jan 2025 15:38:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kf0LTDNI8KhDNmCrfTL5dZkla9nRH0npkt1NF7i2DPc=; b=EBAAe1cOpZ6Rcn WrZQWH5na51JQbbY40g6SegBesZ5JQTuGCHRGldGjdP37hOCQsV51X2GvwvEpbG2DL2EjGmYEts55 Iusys/qvZDuQJNy4+uZO7K8XF/676+5qIL6bHGVGD8KzwgAREo5nDFyCTvqR8XvrBJtRZNaA0D9Ue P3fNsFeiDFTXx5tkx/IrOzySj+ckJqTuTnQyLG1Ao7EMsyxXCD4fmstzeyMPN0wZyBWhvRax7AqOQ 9d7zchT9+vSDIcooMEEV7OBDf4D5sV/BmSNsGkdebVc1tQTVkCnZgIZZ8WkdsUsXGg/HOk3X5IoLM EpOwpVWKo6zpL8G9XMkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tUpBM-00000001ni0-2EPg; Mon, 06 Jan 2025 15:38:20 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tUpBK-00000001nhM-0xzO for linux-snps-arc@lists.infradead.org; Mon, 06 Jan 2025 15:38:19 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id A2198A41989; Mon, 6 Jan 2025 15:36:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CADABC4CED2; Mon, 6 Jan 2025 15:38:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736177897; bh=qdO9936j/aymQ+lq/Er6DrfqEM5twxyTlhKNwur+5r0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n24JPYwMNkLSIkE+wgaLxCgnoChJBs1Jil4vNXee0na/4PLQSjkJ3RhKb8uJvf7/O P+VUWhElzvv6BCokAMdEAa6Mh2PN4ZiynN+IcxZYm6f7nz2hmNdDJAScB+RDUYPuJd uHN2aAzkGaVLylCuw6ydo+6/2X8mXKRHXOWH9udo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , "Paul E. McKenney" , linux-snps-arc@lists.infradead.org, Vineet Gupta , Sasha Levin Subject: [PATCH 6.12 094/156] ARC: build: Use __force to suppress per-CPU cmpxchg warnings Date: Mon, 6 Jan 2025 16:16:20 +0100 Message-ID: <20250106151145.265124920@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250106151141.738050441@linuxfoundation.org> References: <20250106151141.738050441@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250106_073818_334622_7270F6E3 X-CRM114-Status: GOOD ( 13.08 ) X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Paul E. McKenney [ Upstream commit 1e8af9f04346ecc0bccf0c53b728fc8eb3490a28 ] Currently, the cast of the first argument to cmpxchg_emu_u8() drops the __percpu address-space designator, which results in sparse complaints when applying cmpxchg() to per-CPU variables in ARC. Therefore, use __force to suppress these complaints, given that this does not pertain to cmpxchg() semantics, which are plently well-defined on variables in general, whether per-CPU or otherwise. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202409251336.ToC0TvWB-lkp@intel.com/ Signed-off-by: Paul E. McKenney Cc: Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin --- arch/arc/include/asm/cmpxchg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/include/asm/cmpxchg.h b/arch/arc/include/asm/cmpxchg.h index 58045c898340..76f43db0890f 100644 --- a/arch/arc/include/asm/cmpxchg.h +++ b/arch/arc/include/asm/cmpxchg.h @@ -48,7 +48,7 @@ \ switch(sizeof((_p_))) { \ case 1: \ - _prev_ = (__typeof__(*(ptr)))cmpxchg_emu_u8((volatile u8 *)_p_, (uintptr_t)_o_, (uintptr_t)_n_); \ + _prev_ = (__typeof__(*(ptr)))cmpxchg_emu_u8((volatile u8 *__force)_p_, (uintptr_t)_o_, (uintptr_t)_n_); \ break; \ case 4: \ _prev_ = __cmpxchg(_p_, _o_, _n_); \ -- 2.39.5 _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc