Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2426238pxj; Mon, 10 May 2021 02:40:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw++XzQjaDKw0tKDVSn5O551gEaTDsN7wpYOM0+EkAx8C5P8IYX8m8r2RCGHnuR6H58jBlD X-Received: by 2002:a02:cbad:: with SMTP id v13mr20940404jap.28.1620639607383; Mon, 10 May 2021 02:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620639607; cv=none; d=google.com; s=arc-20160816; b=pqH6A0roDa0rgrwj9S131aFhl0oNE/8MaN8mZyonf2wASrP7yOL72YDJk9SB6OSXu6 kd6uHriYEtT878YABZbJ1f3A4ELjL+x3Y6EF/Z2PA/pKtZY4DImTyiH0q7w41CRvNbVd 9CFhUp6vqyrKbNZTc0598H/Z0p5AMwGd6DiSmYW79DqzH5t0uboB1FsDWOr2KIObs+5k tFwiB3kHa5A63qZa37rPqnUU+HhqUkxrtuaPrtxQyWzl4xLk31vBTzz4j8Txo2I+QMOd 1v+el+xlJZTUQbPCwPq+/JgaD+Wykf6dzUyz2ztxMZ6rV60XgnAHtl6Np7hJP2Hk0N28 79Ow== 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=wimPHDE1PBmTDv9Mm8lW6/58XMiuiqWhBLUuL1Kz3Ox+tbiGILxghwOnQk+btl2oAB Rkz90+KlBfBouLF7UO/ayrOhnHP2yLSO3bzDS+aEktR0tBaNF4q1YDGm8rBUNIO9C/97 rznZZlVJ/2IUAUYTPgltOaOZWTNEVqXL0NuzkbX0fNp0ALEgIJX7vwrUjIu2RqdTV7v9 iNrHDUCoOV5xJ1QkshITa53J1cVBEuhlwHYecYEB9GOGd/ynCOc4TwczTChDHwyESSsZ Kf1v49AoN5TFGq0BIbTu45c4fKrOGv/wh8IYF7REHIQBcAWi7bB3Q+YQPHHS2dDeyggR P3Kw== 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 t17si4867566ilj.128.2021.05.10.02.39.55; Mon, 10 May 2021 02:40:07 -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 S230137AbhEJJkT (ORCPT + 99 others); Mon, 10 May 2021 05:40:19 -0400 Received: from foss.arm.com ([217.140.110.172]:50434 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230093AbhEJJkR (ORCPT ); Mon, 10 May 2021 05:40:17 -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 495A211B3; Mon, 10 May 2021 02:39:13 -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 1CFA23F73B; Mon, 10 May 2021 02:39:09 -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, 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, palmer@dabbelt.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 02/33] locking/atomic: net: use linux/atomic.h for xchg & cmpxchg Date: Mon, 10 May 2021 10:37:22 +0100 Message-Id: <20210510093753.40683-3-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210510093753.40683-1-mark.rutland@arm.com> References: <20210510093753.40683-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