Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4394219pxj; Tue, 25 May 2021 07:05:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6zTdL5FWBMNoX6hfw+ssgHj35/2mIoe3JbGHF4YyVMsl0Q72JCrJWDCG+H60mIt3e8yrq X-Received: by 2002:a17:906:7c4b:: with SMTP id g11mr28781671ejp.461.1621951531560; Tue, 25 May 2021 07:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621951531; cv=none; d=google.com; s=arc-20160816; b=fvUQFTcb3fzPwb4ARq2EwZbCWqr8Ea8nEUEcGuKlBEv3wpaZ7nFLQViqTA0JYVuPiD oXCAVOZxFBN0uKRwIdTO5Ainva0UihnVXOqQBe89P891sH66/iQ//r7Su7s3awWpxCuc IT06ut3YARe8tK6i5jcsyGyYWbIPCXJ0RfPjC5Ue5jysaTlSWxY3akgnyxUzTMGrfnHZ Cl8kj435xIpHGyQxcS4cReKIAL9tF0kVC3awXWLbDmxko3NxcSM4k59ia74pK087FxY6 sAwtiYuw0FZzCtyv5b9HsmHz11XRDvM1hjtOfqWcvysizDF4izTqWRShc+5seQ/YW0Qu 98ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=7Pm1qM+w7doNf5XJz7GGdsKr3VA+Z5IgQaO1QP/jHao=; b=mMULwIcE0PoHsC8Yt5aTIqBigOlh2cjQJzEVDm633kHMQnWQra+0FLLVAvk8XbfSDS 3V60vNv91qq5pvRq1wXPLPKzXXE1TPXRDMN4x5/xTvZnpCDvnlWSX8FBqU2u44LFwGzX JcKv9xhVHK0gkiuANPlYDB3Ch8vmHd70MSc2CAy4AzVu7DVYi/gjP1aFp6Aeg8H1Zu9l hiSQACh7oVomuZFPjNc+nLAqwdRr9aa2BXqRQPRTGnBlq94sOnqVE0sl7IdxRAZf2daK K0Y9PEfXeuMMzz9CmWgD1FwUU5irx++9GEc78wnAw4c7ercG5ix+1RkmWWYxQ0dqmsfI 1wRA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si16189602ejz.6.2021.05.25.07.05.08; Tue, 25 May 2021 07:05:31 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233507AbhEYOFX (ORCPT + 99 others); Tue, 25 May 2021 10:05:23 -0400 Received: from foss.arm.com ([217.140.110.172]:56648 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233510AbhEYOFW (ORCPT ); Tue, 25 May 2021 10:05:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1A9F61042; Tue, 25 May 2021 07:03:53 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C7D023F73D; Tue, 25 May 2021 07:03:48 -0700 (PDT) From: Mark Rutland To: linux-kernel@vger.kernel.org, will@kernel.org, boqun.feng@gmail.com, peterz@infradead.org Cc: aou@eecs.berkeley.edu, arnd@arndb.de, bcain@codeaurora.org, benh@kernel.crashing.org, chris@zankel.net, dalias@libc.org, davem@davemloft.net, deanbo422@gmail.com, deller@gmx.de, geert@linux-m68k.org, gerg@linux-m68k.org, green.hu@gmail.com, guoren@kernel.org, ink@jurassic.park.msu.ru, James.Bottomley@HansenPartnership.com, jcmvbkbc@gmail.com, jonas@southpole.se, ley.foon.tan@intel.com, linux@armlinux.org.uk, mark.rutland@arm.com, mattst88@gmail.com, monstr@monstr.eu, mpe@ellerman.id.au, nickhu@andestech.com, palmerdabbelt@google.com, paulus@samba.org, paul.walmsley@sifive.com, rth@twiddle.net, shorne@gmail.com, stefan.kristiansson@saunalahti.fi, tsbogend@alpha.franken.de, vgupta@synopsys.com, ysato@users.sourceforge.jp Subject: [PATCH v2 02/33] locking/atomic: net: use linux/atomic.h for xchg & cmpxchg Date: Tue, 25 May 2021 15:02:01 +0100 Message-Id: <20210525140232.53872-3-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210525140232.53872-1-mark.rutland@arm.com> References: <20210525140232.53872-1-mark.rutland@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As xchg*() and cmpxchg*() may be instrumented by atomic-instrumented.h, it's necessary to include to use these, rather than , which is effectively an arch-internal header. In a couple of places we include , but get away with this as gets pulled in inidrectly by another include. Before we convert more architectures to use atomic-instrumented.h, let's fix these up to use so that we don't make things more fragile. Signed-off-by: Mark Rutland Cc: Boqun Feng Cc: Peter Zijlstra Cc: Will Deacon --- net/core/filter.c | 2 +- net/sunrpc/xprtmultipath.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/core/filter.c b/net/core/filter.c index cae56d08a670..ce4ae1a19a71 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -17,6 +17,7 @@ * Kris Katterjohn - Added many additional checks in bpf_check_classic() */ +#include #include #include #include @@ -41,7 +42,6 @@ #include #include #include -#include #include #include #include diff --git a/net/sunrpc/xprtmultipath.c b/net/sunrpc/xprtmultipath.c index 78c075a68c04..1b4073131c6f 100644 --- a/net/sunrpc/xprtmultipath.c +++ b/net/sunrpc/xprtmultipath.c @@ -7,13 +7,13 @@ * Trond Myklebust * */ +#include #include #include #include #include #include #include -#include #include #include #include -- 2.11.0