Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3830032ybt; Tue, 30 Jun 2020 12:01:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ+f1/OP+7l1tjTlxShR5HxRD6+e9CoQbj2BthN+Q7kg/tbW7xkNSd67uRb8OCl39cBrOA X-Received: by 2002:a05:6402:b84:: with SMTP id cf4mr1011239edb.21.1593543250676; Tue, 30 Jun 2020 11:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593543250; cv=none; d=google.com; s=arc-20160816; b=uwgNKXnccBatZPl4V1EMSJ2xPQjGKZnA7tJMUn81VvFD7ZTCwyXaWI3uykP4fgzWyR HfJLx19vQMVSIJkyC+vHOCJpQYcDH7AUi8lhWGZ3Z3fYhowXrJwDLONedm7eW2dCUmsr pZZETUBNMOkhuSg+SSnMjqGf2HJ6WvlrzFOYBoA+p0CsvOLZN6aACjPPdsbXBwKxBEvI mhz4cn9GUN/N5gyCS6aujbWCMdXQxbEOLAURk0tHe1zIjLaaCP0/GeeVSg0Or+sZ/cCN cBknAkRRCvBTBh+Xu7l2LZ4CEi5e26jsR/pAA/q+2ESkLM/JoSLoKSpIiXaGvN6CXk5M TcvQ== 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=Ea9K1awK/GyAS4Ofu65Nhd2eABIOve97nEiCWG6f3ME=; b=sQITyr0pC/7zIFyHCvqTQQHLZpLAk6m9CSlxhuz+lklCPl4b03/gvQ6i5A44jIb60y J2/L1UnqxjUvDceMfP9qc+sGCfXzrSuhOfXf88dnkmvrz1ojkpdvyk9+0LsH7R2Vb5jJ sJiUSA9NxiXXPEF/xzCVJFZ5sAa8lV5gf1ivfITdZOjgXPEKqiTkswgqcB0oklutx/Ax Co68FxQY7AG+AqY7CFFid1kVGJkgdOiBFui+WZuElc6XjiIiOZi0BvwWQFX3ySkfP+P2 kiCKvdbFmZfkUB7sGC/qju4BsKenzAxqb8C77xFK6SajLx3I8hYfaBXiuIJvLDRMNweb Jz1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bpLGiANh; 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 r12si2225976ejz.398.2020.06.30.11.53.47; Tue, 30 Jun 2020 11:54:10 -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=bpLGiANh; 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 S2390436AbgF3Ril (ORCPT + 99 others); Tue, 30 Jun 2020 13:38:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:51786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390427AbgF3Rij (ORCPT ); Tue, 30 Jun 2020 13:38:39 -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 CCA8F207F9; Tue, 30 Jun 2020 17:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593538718; bh=1FGhp5sGfkpSiXhXgfH5nBXKN4fqT4jY7nbDIPuK7X4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bpLGiANhTDJLC7t5bWYwDrB2C0vByZC6qRCHBvONLGHbyWqUjDr91Fhnj0Qfj8ajH b6o2hJwvm0H/J4VMMeXmYx2lzjErEQ+y1AiAsdofaMJowGhiD1x/0r79lPQWnl0rpi KcoNDIgVtCvUFCTCs+tjhL7w1byxja9E2be1+JP4= 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 13/18] checkpatch: Remove checks relating to [smp_]read_barrier_depends() Date: Tue, 30 Jun 2020 18:37:29 +0100 Message-Id: <20200630173734.14057-14-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 The [smp_]read_barrier_depends() macros no longer exist, so we don't need to deal with them in the checkpatch script. Acked-by: Paul E. McKenney Signed-off-by: Will Deacon --- scripts/checkpatch.pl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 4c820607540b..8032f80c5bc7 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -5903,8 +5903,7 @@ sub process { my $barriers = qr{ mb| rmb| - wmb| - read_barrier_depends + wmb }x; my $barrier_stems = qr{ mb__before_atomic| @@ -5953,12 +5952,6 @@ sub process { } } -# check for smp_read_barrier_depends and read_barrier_depends - if (!$file && $line =~ /\b(smp_|)read_barrier_depends\s*\(/) { - WARN("READ_BARRIER_DEPENDS", - "$1read_barrier_depends should only be used in READ_ONCE or DEC Alpha code\n" . $herecurr); - } - # check of hardware specific defines if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@include/asm-@) { CHK("ARCH_DEFINES", -- 2.27.0.212.ge8ba1cc988-goog