Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3826918ybt; Tue, 30 Jun 2020 11:58:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhsPfgN2iyKlqnIAIFNKdUTSEOn3Y4JE1tvQOf50rSTAevqkwsOahR48al2QMsOhfh7zHM X-Received: by 2002:a50:9e02:: with SMTP id z2mr23733360ede.87.1593543212066; Tue, 30 Jun 2020 11:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593543212; cv=none; d=google.com; s=arc-20160816; b=wePiCxDx6CWMF78lo4X9k6w41NcbsJz6gI1PA7MI5cCNhI6IsNgbVV6M+Tog6Gh2om DVVxqH3dB5jbblrMtlTJhBhUfj/KiMCEeReR2nGeRPNnAn9Ebp4uCvyCYx1zrVdzbGpH TdPFQyudSZAfAlnVm9317muudPLOdSNJb4rbR71kIL6E9sLReQlM5P610obSvl6ItDfc fk9FfBP8r/4G73s09UE3yBVMp20xxHY9+9sEKFBkAVlGQxlf02ZbEgH0v6eBZDtS1+dU GfWkK3zCyYhsK0ru3pSJkCL1YeWI3BKUC1au/wSBB2WqmfsDrQK2AixPPQpCta3YxOaH AcXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PJv7SQnQcXYcnkYhRPf5UZfsJAHXokZcgt0QRmhJnM4=; b=hdi8zis0ybzsF//WGv6VdoCIthrdgx6H4AKVjMQ+qJ0noMeP/y9uIxtlAyOc/FXlm6 M4kdgDKj28HnTdDm2jHNQm6iqKpljQNa9n2ghNvwAydkqxnrnPpoOPY4GlZm5M74FHpr smU78/V7dFcp+MHE5lN1oTBNWwTPOgahHi087JQV+2RwEZRyzellZgOSSKhQ6XQV7yVA Owx6ponzmtZyX2GoXgKnVKt59mtqP2qMc/uig/AvyLSUZgGoIpO5xMu9RnrnCoBqvQ2v B7PIrBkyc8NJkGJaikH3KCMbI3f11wl1ndX5V9xsByNPQ1UoTymyt4Go+nLPPUEHxB6A y2Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2ri1JGNL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si2234330edq.546.2020.06.30.11.53.09; Tue, 30 Jun 2020 11:53:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2ri1JGNL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390385AbgF3RiT (ORCPT + 99 others); Tue, 30 Jun 2020 13:38:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:51234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390353AbgF3RiS (ORCPT ); Tue, 30 Jun 2020 13:38:18 -0400 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1C95B20809; Tue, 30 Jun 2020 17:38:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593538697; bh=dgjRIkkp8leZF72T6rvgJl6ei7/J97036Gp6l/zm8pU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2ri1JGNLGy9S8joDCHe7dCkFFUbzJ7g4b59+cNyargMdLiVWn7pSarW+9MHxj5UU3 jSlWmEXOQh81NBvBBxES8IzjGvmOMDvb8mn0J0yCdO/jMS06jkWaGk3U6C6MWZVC7U 54TfRPVYf4EgW0AyAnsawnXX5c7OrpDbwc6XQ6mM= From: Will Deacon To: linux-kernel@vger.kernel.org Cc: Will Deacon , Sami Tolvanen , Nick Desaulniers , Kees Cook , Marco Elver , "Paul E. McKenney" , Josh Triplett , Matt Turner , Ivan Kokshaysky , Richard Henderson , Peter Zijlstra , Alan Stern , "Michael S. Tsirkin" , Jason Wang , Arnd Bergmann , Boqun Feng , Catalin Marinas , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-alpha@vger.kernel.org, virtualization@lists.linux-foundation.org, kernel-team@android.com Subject: [PATCH 08/18] locking/barriers: Remove definitions for [smp_]read_barrier_depends() Date: Tue, 30 Jun 2020 18:37:24 +0100 Message-Id: <20200630173734.14057-9-will@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200630173734.14057-1-will@kernel.org> References: <20200630173734.14057-1-will@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are no remaining users of [smp_]read_barrier_depends(), so remove it from the generic implementation of 'barrier.h'. Acked-by: Paul E. McKenney Signed-off-by: Will Deacon --- include/asm-generic/barrier.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/include/asm-generic/barrier.h b/include/asm-generic/barrier.h index 2eacaf7d62f6..24f3f63f23e7 100644 --- a/include/asm-generic/barrier.h +++ b/include/asm-generic/barrier.h @@ -46,10 +46,6 @@ #define dma_wmb() wmb() #endif -#ifndef read_barrier_depends -#define read_barrier_depends() do { } while (0) -#endif - #ifndef __smp_mb #define __smp_mb() mb() #endif @@ -62,10 +58,6 @@ #define __smp_wmb() wmb() #endif -#ifndef __smp_read_barrier_depends -#define __smp_read_barrier_depends() read_barrier_depends() -#endif - #ifdef CONFIG_SMP #ifndef smp_mb @@ -80,10 +72,6 @@ #define smp_wmb() __smp_wmb() #endif -#ifndef smp_read_barrier_depends -#define smp_read_barrier_depends() __smp_read_barrier_depends() -#endif - #else /* !CONFIG_SMP */ #ifndef smp_mb @@ -98,10 +86,6 @@ #define smp_wmb() barrier() #endif -#ifndef smp_read_barrier_depends -#define smp_read_barrier_depends() do { } while (0) -#endif - #endif /* CONFIG_SMP */ #ifndef __smp_store_mb @@ -196,7 +180,6 @@ do { \ #define virt_mb() __smp_mb() #define virt_rmb() __smp_rmb() #define virt_wmb() __smp_wmb() -#define virt_read_barrier_depends() __smp_read_barrier_depends() #define virt_store_mb(var, value) __smp_store_mb(var, value) #define virt_mb__before_atomic() __smp_mb__before_atomic() #define virt_mb__after_atomic() __smp_mb__after_atomic() -- 2.27.0.212.ge8ba1cc988-goog