Message ID | 20231216024834.3510073-4-kent.overstreet@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-1966-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp4772dyi; Fri, 15 Dec 2023 18:52:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1tOZaNB/LnCI66sJM3HvEI7H3G8Q+4gH2uXN3mVVjIYbA3FZXB5fqdVOGCdLpFrdJzWHW X-Received: by 2002:a17:902:e789:b0:1d0:6ffe:9f5 with SMTP id cp9-20020a170902e78900b001d06ffe09f5mr14575951plb.83.1702695124343; Fri, 15 Dec 2023 18:52:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702695124; cv=none; d=google.com; s=arc-20160816; b=QQDW4aigvfIiwcD8br3bWx5miAOpqdMwEOjVHfrZby/jBl3OfUGbVjM0tmMuqnNIbq UOTqkwmtWe3h7g56CrusFUBmv8Xvje0c81bgWEmtCZLCJso+IFgAJfKcjTXOny7merFA qQ2Cf8D9CTbE2QlAudIsLNmUAhOQrVXI9D38K8/1fs1vd2LmwVIa61eKXM9Xit/ctloY PepOTXWbX7O0PcD8cpQ792BuYHQX2YtrlPlaDBcF4cMvcJFDhKcfbNxPOytQAbwbSWH6 85RyEfBXO2Ian1lnRUcMVfsD73f2dpk4pyFEfr/P7Z99b+nOOIj6hxxWbxw5sFCz3ygI HQPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=adc0sNIM7gQ4trdre1K6cbqGQoob6WcBiJ3dUIPudMk=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=M8jqMzs7EbM6ljrw5nmLQGhq7cHIlVHHwtzq9dbZXfrPEcAN5qHX/HYWxHdz6O8oe0 Fwy7Jbll2gVqzVvnCnrEUvOeZc9gEigN5AIgewHr6jNZDGg1ahS/BsReMTbtFxlewTrj s1YuOIT5ArwJxN6td5DjcLTsR1lQbIClfsayTwnCKWJaAtlU/W5LeAu/2lxfpb7Gfe1d 3m5NlElVcD5UIZ1eICiAYTVMlc/ubTZE2zu956xBiR2Mvdvg24urjJJdeBmTaAzS0DVK Uj/3NfC9991li6Bo/1FkhSO1Csk/cKo4uaSq4tkqtgPaGAc94i80HRqNSONruQWejitr V9mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uOPZ6KP7; spf=pass (google.com: domain of linux-kernel+bounces-1966-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1966-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id mu3-20020a17090b388300b0028adf4a8694si5921459pjb.2.2023.12.15.18.52.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 18:52:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1966-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uOPZ6KP7; spf=pass (google.com: domain of linux-kernel+bounces-1966-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1966-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 94C71B24A17 for <ouuuleilei@gmail.com>; Sat, 16 Dec 2023 02:50:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 850F110A1B; Sat, 16 Dec 2023 02:48:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="uOPZ6KP7" X-Original-To: linux-kernel@vger.kernel.org Received: from out-175.mta1.migadu.com (out-175.mta1.migadu.com [95.215.58.175]) (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 5988E63B0 for <linux-kernel@vger.kernel.org>; Sat, 16 Dec 2023 02:48:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702694928; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=adc0sNIM7gQ4trdre1K6cbqGQoob6WcBiJ3dUIPudMk=; b=uOPZ6KP7ychMoKw8qtR/0qfWiQ8j9jkHkMD1SK35PVi+vFoj3X/OLCoqJUaIcYeIqu41/q ou7avzvpSAIlOW44jhZr4JYW24u6/QLdr8koxyghwIIaZLIQknvEo1WSBT50/ruKuYe0qj egaJK3764sLrvSCuHsyr5L9g/D8dUOU= From: Kent Overstreet <kent.overstreet@linux.dev> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: Kent Overstreet <kent.overstreet@linux.dev>, tglx@linutronix.de, x86@kernel.org, tj@kernel.org, peterz@infradead.org, mathieu.desnoyers@efficios.com, paulmck@kernel.org, keescook@chromium.org, dave.hansen@linux.intel.com, mingo@redhat.com, will@kernel.org, longman@redhat.com, boqun.feng@gmail.com, brauner@kernel.org Subject: [PATCH 03/50] x86/lib/cache-smp.c: fix missing include Date: Fri, 15 Dec 2023 21:47:44 -0500 Message-ID: <20231216024834.3510073-4-kent.overstreet@linux.dev> In-Reply-To: <20231216024834.3510073-1-kent.overstreet@linux.dev> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785405242423068556 X-GMAIL-MSGID: 1785405242423068556 |
Series |
big header dependency cleanup targeting sched.h
|
|
Commit Message
Kent Overstreet
Dec. 16, 2023, 2:47 a.m. UTC
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
---
arch/x86/lib/cache-smp.c | 1 +
1 file changed, 1 insertion(+)
Comments
> diff --git a/arch/x86/lib/cache-smp.c b/arch/x86/lib/cache-smp.c > index 7c48ff4ae8d1..7af743bd3b13 100644 > --- a/arch/x86/lib/cache-smp.c > +++ b/arch/x86/lib/cache-smp.c > @@ -1,4 +1,5 @@ > // SPDX-License-Identifier: GPL-2.0 > +#include <asm/paravirt.h> > #include <linux/smp.h> > #include <linux/export.h> > I believe the norm is to have the linux/ includes first, followed by the the asm/ ones. Shouldn't this case be the same? Sohil
On Mon, Dec 18, 2023 at 04:18:29PM +0530, Sohil Mehta wrote: > > diff --git a/arch/x86/lib/cache-smp.c b/arch/x86/lib/cache-smp.c > > index 7c48ff4ae8d1..7af743bd3b13 100644 > > --- a/arch/x86/lib/cache-smp.c > > +++ b/arch/x86/lib/cache-smp.c > > @@ -1,4 +1,5 @@ > > // SPDX-License-Identifier: GPL-2.0 > > +#include <asm/paravirt.h> > > #include <linux/smp.h> > > #include <linux/export.h> > > > > I believe the norm is to have the linux/ includes first, followed by the > the asm/ ones. Shouldn't this case be the same? I haven't seen that? I generally do the reverse, simpler includes first, not that I have any reason for that...
On 12/19/2023 7:36 AM, Kent Overstreet wrote: > On Mon, Dec 18, 2023 at 04:18:29PM +0530, Sohil Mehta wrote: >> I believe the norm is to have the linux/ includes first, followed by the >> the asm/ ones. Shouldn't this case be the same? > > I haven't seen that? I generally do the reverse, simpler includes first, > not that I have any reason for that... I couldn't find a kernel Documentation link handy. But, I found this email from Boris: https://lore.kernel.org/lkml/20190411135547.GH30080@zn.tnic/ I believe at least arch/x86 follows this for the most part. One simple reason is to make it easier to find headers when a ton of them are included in the same file. Sohil
diff --git a/arch/x86/lib/cache-smp.c b/arch/x86/lib/cache-smp.c index 7c48ff4ae8d1..7af743bd3b13 100644 --- a/arch/x86/lib/cache-smp.c +++ b/arch/x86/lib/cache-smp.c @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 +#include <asm/paravirt.h> #include <linux/smp.h> #include <linux/export.h>