Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7106669rdb; Fri, 15 Dec 2023 19:38:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPYx6cr0t7nWge4V0qWejNLkOj6INcCOMi7NXdPRje0FmIOx0Q/7ewUauHNaAW5pslgGqY X-Received: by 2002:a17:903:22c7:b0:1cf:e9b5:90ee with SMTP id y7-20020a17090322c700b001cfe9b590eemr17640282plg.24.1702697885308; Fri, 15 Dec 2023 19:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697885; cv=none; d=google.com; s=arc-20160816; b=l3yEcmdsOUIhc6tMLFRRLEykPYH1d5ZarE0WQBmqCmqFk3ORFIPrmsUcGmfevL0QR4 Y00wF2KwRf6RdRmiHm321ZI1g4GGvi7SUIgJqsrJTiskNZbZiOZuMyw/JEzaQ+X7xE6/ eFEy0RN1FJB0qpfxl8LHzb7psAIDEUYgYnOzQ2ucbLAOBPgU3jjQIK/MicSdWHrL478j SYoqTaALXS3eDlgxj+OBKnRliSr5f3SLJkCvsUPzEgbD5OkqoMuJFG6dYTIqO5zdY0Yd HLuAfrQnpU6JfikCBZXML2ecRKonyDsCbR2fNMDkfKmrmdw7Vi8zFo2r6ly+21a7Tmbg XTAQ== 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=OUqwYAx0DDPud63nNEdLEk98WtGqrjOdsdwrtUhwy7M=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=lpyDWsllEXSOhfmCPTCL8tK76w+Noywr4762EIXTLaEcYMP6kyQRDFdHDT56hhumSZ TSmCOfVUSplQSjU4SfAGZOaixOGwk9wWZlc9vTUogCjy6nef/N7mIab+bMgx8J1KCh5C 5grHefly6Ls0vRdcXAjPaXNRjwP3d7gK6dX1ozptqfPi0xIx2qEzPjjlD52el+HtGEDt lL4tDzgJiTpa8P1B0vOd6njScPhiQaPxAkOVzDiR7UFA03dAaL3VmO+66d6uYihCQ/kk hto7wdHE9jSIpKzY1YMn9RhagIwNd3RogIaJ2PA+IqaD44qItlryR+G/b04tsra0jNIC Q/Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="RK/hF5+q"; spf=pass (google.com: domain of linux-kernel+bounces-2025-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x7-20020a170902ec8700b001d09249f030si14405362plg.415.2023.12.15.19.38.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:38:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2025-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="RK/hF5+q"; spf=pass (google.com: domain of linux-kernel+bounces-2025-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2025-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5417EB20BFD for ; Sat, 16 Dec 2023 03:38:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B33810789; Sat, 16 Dec 2023 03:36:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="RK/hF5+q" X-Original-To: linux-kernel@vger.kernel.org Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) (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 3EE465670 for ; Sat, 16 Dec 2023 03:36:08 +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=1702697767; 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=OUqwYAx0DDPud63nNEdLEk98WtGqrjOdsdwrtUhwy7M=; b=RK/hF5+qNAuTN//SAOHI3R7Lu9Lf4KKbYrkcT/9G7ZF0d+mCv64pZGUkMRZpfq0PJil7/G 9K/J6HudIs1uYCuuQDHxAZkUyBklxOtXfa5qhuihA7RRVwaGkztuPBEywhIYYfGrmFaPOT 3b5Jx+8IMm2SxDqdLfIJPieW5co+7gU= 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 46/50] preempt.h: Kill dependency on list.h Date: Fri, 15 Dec 2023 22:35:47 -0500 Message-ID: <20231216033552.3553579-3-kent.overstreet@linux.dev> In-Reply-To: <20231216033552.3553579-1-kent.overstreet@linux.dev> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> <20231216033552.3553579-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 We really only need types.h, list.h is big. Signed-off-by: Kent Overstreet --- include/linux/preempt.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/preempt.h b/include/linux/preempt.h index 9aa6358a1a16..7233e9cf1bab 100644 --- a/include/linux/preempt.h +++ b/include/linux/preempt.h @@ -9,7 +9,7 @@ #include #include -#include +#include /* * We put the hardirq and softirq counter into the preemption @@ -360,7 +360,9 @@ void preempt_notifier_unregister(struct preempt_notifier *notifier); static inline void preempt_notifier_init(struct preempt_notifier *notifier, struct preempt_ops *ops) { - INIT_HLIST_NODE(¬ifier->link); + /* INIT_HLIST_NODE() open coded, to avoid dependency on list.h */ + notifier->link.next = NULL; + notifier->link.pprev = NULL; notifier->ops = ops; } -- 2.43.0