Message ID | 20231216032957.3553313-5-kent.overstreet@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-2004-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp16508dyi; Fri, 15 Dec 2023 19:32:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFan2bWdu68o7IVircLiTPQE9CYaijC/SN2PE3FV4pLu93EhXBMcCpuCykmXEFJf4PT84Vd X-Received: by 2002:a05:620a:66c:b0:77f:367a:94b2 with SMTP id a12-20020a05620a066c00b0077f367a94b2mr11952535qkh.24.1702697550906; Fri, 15 Dec 2023 19:32:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697550; cv=none; d=google.com; s=arc-20160816; b=Zl8J81RqR0fIwCf8/yZ1SKevpl6D/3H3MPo+I+s4A2+pC38tYsv8J6qmoxlsnHdtPy ewUGwbyIwmDM23a6UkCC+dRhuG/HNlA3mjjXOmwzN3sp+3gsi0HwhN6rN2HKHA0u9jpU fZHkjMMLcHEPZ2WXO7whgDe7zOTlVKtT40FyCLL8lhQHSqOJjGs5u3oQIzsJ4fir2+Qf R+3XNqbNLMrRRgg+XkosbG22VYrfInfkfRdhPtkI5SWjqY7VTKMxK7NpBhrbKZxJizps 154ou7RZcAVSDFABG7m7Ysl05GvTpct0WroodA1aGAjq54OgtcgH8iSnz2dZk6Rhb/ub fJ2A== 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=rtDUoALwqI+g2qj/syyUKIfkTgVXczGUzidLREHShN8=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=ALCZyhvQUvvBQtTTU+iFVv2XVut0ERTNQc5Ad6srd2nRayobdomX7g/YZqhn67Dhg0 KS7t0CoNcxNMCt7PvVY/l//RCnlEpBKszx4ZTxmgi9iWpNVyD/vxjghZandzrzMdjf9+ sJrgl2L+CSqi44bi3kY2etfU1qRU+3FkOBDnj0TmtZvhaAg1aOWoJ3F/shcbmvieqf8Q QdCtYLi4upKnNjxu8pcS0EmJIA1DOo1RQ31MWonvAXFWWxvAUP57j8Gp+HInAHZFsReZ ibPcjM+Fg5OWHenUINO9cEECeaA/Q/jYmPoKFxcmMSwJUnaa7/PxRcRquQEZT/AIv2Cy +ihw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=HpkGGFTL; spf=pass (google.com: domain of linux-kernel+bounces-2004-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2004-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.32.30 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:32:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2004-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=HpkGGFTL; spf=pass (google.com: domain of linux-kernel+bounces-2004-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2004-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 A301E1C249B2 for <ouuuleilei@gmail.com>; Sat, 16 Dec 2023 03:32:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A308B1E49C; Sat, 16 Dec 2023 03:30:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="HpkGGFTL" X-Original-To: linux-kernel@vger.kernel.org Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (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 0D6E4154A9 for <linux-kernel@vger.kernel.org>; Sat, 16 Dec 2023 03:30:15 +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=1702697414; 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=rtDUoALwqI+g2qj/syyUKIfkTgVXczGUzidLREHShN8=; b=HpkGGFTLmnIEAldznXmIuzcl6WhaQmAB+S6Ghz59tnYFRB1sf6EOvUkriIWqguZMy9GIkA bJjNoFlkPecsXXAZMvgQnZ0JeCyu4NyhHnQyKv6CTFVDMv+U4IsvwJk+EAuBLO3Rxt8y/J MLPI5ObUrctIN0OaCmfNPnGXSA9Uhb8= 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 26/50] rslib: kill bogus dependency on list.h Date: Fri, 15 Dec 2023 22:29:32 -0500 Message-ID: <20231216032957.3553313-5-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: <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: 1785407787460081853 X-GMAIL-MSGID: 1785407787460081853 |
Series |
big header dependency cleanup targeting sched.h
|
|
Commit Message
Kent Overstreet
Dec. 16, 2023, 3:29 a.m. UTC
list_head is defined in types.h, not list.h - this kills a sched.h
dependency.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
---
include/linux/rslib.h | 1 -
1 file changed, 1 deletion(-)
Comments
On 12/15/23 19:29, Kent Overstreet wrote: > list_head is defined in types.h, not list.h - this kills a sched.h > dependency. > > Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> > --- > include/linux/rslib.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/include/linux/rslib.h b/include/linux/rslib.h > index 238bb85243d3..a04dacbdc8ae 100644 > --- a/include/linux/rslib.h > +++ b/include/linux/rslib.h > @@ -10,7 +10,6 @@ > #ifndef _RSLIB_H_ > #define _RSLIB_H_ > > -#include <linux/list.h> > #include <linux/types.h> /* for gfp_t */ > #include <linux/gfp.h> /* for GFP_KERNEL */ > What about line 47? 47 struct list_head list;
On Sat, Dec 16, 2023 at 11:05:08AM -0800, Randy Dunlap wrote: > > > On 12/15/23 19:29, Kent Overstreet wrote: > > list_head is defined in types.h, not list.h - this kills a sched.h > > dependency. > > > > Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> > > --- > > include/linux/rslib.h | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/include/linux/rslib.h b/include/linux/rslib.h > > index 238bb85243d3..a04dacbdc8ae 100644 > > --- a/include/linux/rslib.h > > +++ b/include/linux/rslib.h > > @@ -10,7 +10,6 @@ > > #ifndef _RSLIB_H_ > > #define _RSLIB_H_ > > > > -#include <linux/list.h> > > #include <linux/types.h> /* for gfp_t */ > > #include <linux/gfp.h> /* for GFP_KERNEL */ > > > > What about line 47? > > 47 struct list_head list; It's in types.h.
On 12/16/23 11:05, Randy Dunlap wrote: > > > On 12/15/23 19:29, Kent Overstreet wrote: >> list_head is defined in types.h, not list.h - this kills a sched.h >> dependency. >> >> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> >> --- >> include/linux/rslib.h | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/include/linux/rslib.h b/include/linux/rslib.h >> index 238bb85243d3..a04dacbdc8ae 100644 >> --- a/include/linux/rslib.h >> +++ b/include/linux/rslib.h >> @@ -10,7 +10,6 @@ >> #ifndef _RSLIB_H_ >> #define _RSLIB_H_ >> >> -#include <linux/list.h> >> #include <linux/types.h> /* for gfp_t */ >> #include <linux/gfp.h> /* for GFP_KERNEL */ >> > > What about line 47? > > 47 struct list_head list; > I see. :) it's in types.h, not list.h, as you explained!
diff --git a/include/linux/rslib.h b/include/linux/rslib.h index 238bb85243d3..a04dacbdc8ae 100644 --- a/include/linux/rslib.h +++ b/include/linux/rslib.h @@ -10,7 +10,6 @@ #ifndef _RSLIB_H_ #define _RSLIB_H_ -#include <linux/list.h> #include <linux/types.h> /* for gfp_t */ #include <linux/gfp.h> /* for GFP_KERNEL */