From patchwork Sat Dec 16 03:29:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kent Overstreet X-Patchwork-Id: 179774 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp16868dyi; Fri, 15 Dec 2023 19:34:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHO/+UGkOkKaMFqm55RML4gLetVL3Nj1b13MOC7s17urhj0dQn0MPF/WGZQTfL3xar9i/iP X-Received: by 2002:a05:620a:2544:b0:77f:7f49:5e4e with SMTP id s4-20020a05620a254400b0077f7f495e4emr13090876qko.10.1702697644211; Fri, 15 Dec 2023 19:34:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697644; cv=none; d=google.com; s=arc-20160816; b=X0wGiuDQ4CIBo+i03KMyffq5c3SZY6vDR9VSSFt4mHYsTCSplzdoPV2WCkLOBQzg3t cLg1kT3KtTGU9BUk/nB4Ys7sggFLc7kRLly0LE9OIhF0e1UnCz1E3m1bhfueqrPvYqRs a2A1QVhy+js3PgWiuiuE0T8J1/Mh0s/YdXnwDXEuYMmLRctZ42rpFS8g+NsvZPdPw9PW fGhyHlne9Mz/p9MIJtztkXPDJCgj/wlbBcbTVHybQ9ZBwNHepUsb7mwejJe5rbnrvwYF ZV+T+rAk5QUdVNxJXCkeV52kBvD85jFYYWvcy2evS+r9x5YMXZ3N0uJafT6EgY06zFBX je+Q== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2010-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h13-20020a05620a284d00b0077d6046fc74si10071957qkp.577.2023.12.15.19.34.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:34:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2010-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2010-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0509E1C24A33 for ; Sat, 16 Dec 2023 03:34:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B855A14AA5; Sat, 16 Dec 2023 03:30:36 +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 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785407885017519843 X-GMAIL-MSGID: 1785407885017519843 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.