Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7105540rdb; Fri, 15 Dec 2023 19:33:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IF28wThYIXu/uGyvBACkUzoPvMstTdrVBflcnyO5hxEy0/2NgN4W1cgW+1/MKbKyT79PaG2 X-Received: by 2002:a50:d6d3:0:b0:552:f814:7a06 with SMTP id l19-20020a50d6d3000000b00552f8147a06mr279516edj.40.1702697629820; Fri, 15 Dec 2023 19:33:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697629; cv=none; d=google.com; s=arc-20160816; b=cQen3wuVXkGBQ73YS0X/3QY8oI036jbwQBmMmUzBvz6fuXapIm/eqK4eShHsnfQEga ZRdBMnaRggv9dU7YgYcJ+M8p62K1MBfJ6aPfiZeELgw/0kC71JTsFh0KeMVUMcbVo2ES MLERnP3Af1jhH4Qxj/5TaGpZFI9wVPGXk1W7NP1hGidm0VFK0SGcF4GOQQd3cnlaYp1+ pGu1JG6BV985g0R9Vcjh/9kk6oKRVphrQXAGx/CPACFa8kXdI1OHqceU+6KPx21yNQDy xZ0lXEh8WWETctJ/J2IUEs01VRrRl80uQPU0QIQtoonIr+OsiP+eoHlgHNpPUCLbOr4Y Lcog== 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=rjGjj9NDld3cpQFTknyiaa4K8L6pikm/7YzJQsi2quo=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=Na99H/O2i4pszSs6fIr671Z6A/GCtYQqAWvHQ9oSGq3DVIMW1Jj/1Xrp9DWqqzEPNp Tq9/HwQmwplL2D9VWbrfrDZeC4SkNHSFc81lsxg/bNGyeBgKn6vmkxDIq2C55TKnKV8E OV6+dgNkYJ96FtqVCrIveLy6LXPxmfvfrAWdXye7jHaLD/WAZREMTc0B2e2N55z2bF19 gQZ9ViP9WYZ60w7zmZ5whwz0ypxSoCzd1eKd7V0FiRoeKD5OKYgZe6Z7ION2zlVAv4UK b7hd33WZzfbGltDWWKy2UtMc2D6GgFlsKu7GUbo6iCyjLiv611e6BqtPnu5ouqGE5qEo vSYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=jkrCZyYY; spf=pass (google.com: domain of linux-kernel+bounces-2010-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2010-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id df12-20020a05640230ac00b0055306462d27si35089edb.407.2023.12.15.19.33.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:33:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2010-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=jkrCZyYY; spf=pass (google.com: domain of linux-kernel+bounces-2010-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2010-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8E6F91F25B9E for ; Sat, 16 Dec 2023 03:33:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71D8A5670; Sat, 16 Dec 2023 03:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="jkrCZyYY" X-Original-To: linux-kernel@vger.kernel.org Received: from out-187.mta0.migadu.com (out-187.mta0.migadu.com [91.218.175.187]) (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 9AE2C30347 for ; Sat, 16 Dec 2023 03:30:26 +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=1702697425; 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=rjGjj9NDld3cpQFTknyiaa4K8L6pikm/7YzJQsi2quo=; b=jkrCZyYYqYX0PWqqeqIWBMaHBBPf0yFDGel5bxrrPs4u3HAXTF4hjPGU92N7SowauokwnZ JmdYlpe03/qOnMPAlJygeHEmX4G9QfKGkHMHWdQ2nSe7oyrBgmquqotmfQQ8BxXiNGVzCZ l9I0Gv1UNMUiTCJ/TwPpBBHBRTK2xZA= From: Kent Overstreet To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: Kent Overstreet , 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 32/50] ipc: Kill bogus dependency on spinlock.h Date: Fri, 15 Dec 2023 22:29:38 -0500 Message-ID: <20231216032957.3553313-11-kent.overstreet@linux.dev> In-Reply-To: <20231216032957.3553313-1-kent.overstreet@linux.dev> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> <20231216032957.3553313-1-kent.overstreet@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT pruning sched.h dependencies, headers shouldn't pull in more than they need. Signed-off-by: Kent Overstreet --- include/linux/ipc.h | 2 +- include/linux/sched.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/ipc.h b/include/linux/ipc.h index e1c9eea6015b..9b1434247aab 100644 --- a/include/linux/ipc.h +++ b/include/linux/ipc.h @@ -2,7 +2,7 @@ #ifndef _LINUX_IPC_H #define _LINUX_IPC_H -#include +#include #include #include #include diff --git a/include/linux/sched.h b/include/linux/sched.h index 8c230f24688b..3a58d3d7d264 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2139,6 +2139,8 @@ extern bool sched_task_on_rq(struct task_struct *p); extern unsigned long get_wchan(struct task_struct *p); extern struct task_struct *cpu_curr_snapshot(int cpu); +#include + /* * In order to reduce various lock holder preemption latencies provide an * interface to see if a vCPU is currently running or not. -- 2.43.0