From patchwork Sat Dec 16 03:35:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kent Overstreet X-Patchwork-Id: 13495440 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CC8FC4332F for ; Sat, 16 Dec 2023 03:36:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D05A58D015E; Fri, 15 Dec 2023 22:36:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C8DDB8D015C; Fri, 15 Dec 2023 22:36:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ADFAD8D015E; Fri, 15 Dec 2023 22:36:10 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 9CE438D015C for ; Fri, 15 Dec 2023 22:36:10 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 7AC8D16032E for ; Sat, 16 Dec 2023 03:36:10 +0000 (UTC) X-FDA: 81571268100.24.9E09313 Received: from out-187.mta1.migadu.com (out-187.mta1.migadu.com [95.215.58.187]) by imf13.hostedemail.com (Postfix) with ESMTP id DA06D20008 for ; Sat, 16 Dec 2023 03:36:08 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b="RK/hF5+q"; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf13.hostedemail.com: domain of kent.overstreet@linux.dev designates 95.215.58.187 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702697769; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=OUqwYAx0DDPud63nNEdLEk98WtGqrjOdsdwrtUhwy7M=; b=mbX3X/L5V7Z9LRxpfrNwGW4vhUp649eUygP/vVf85GUt7msCXWJkTnu2TanSVq8vy+UuKn 2lYFYg7U2hNMm4SlCM2cc3tQauVZIYyWsU6nuYT4s9k9rzhcDe/xSt6ocXvDUcjIfgANn0 d4eBj/G5HVIHye1iWhe0DRPWEjPU5DI= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b="RK/hF5+q"; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf13.hostedemail.com: domain of kent.overstreet@linux.dev designates 95.215.58.187 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702697769; a=rsa-sha256; cv=none; b=Sk0wR5x1eflRGWUE3vvQSzWhV4qNxxNVtaMta8TqUnvCWOK3QM4ZwFtFCaqvij/bzRa+ZE XuzRdjj/z4sAqbVZ2UJTL2EyJ5Kxb1di2kJsAxSgnsvejEqwZMSVK39zpKW0CPhqnUsPj1 +D8c74lA+nREl8kwUiNQpnxJuC9Zbqg= 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> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: DA06D20008 X-Stat-Signature: cgryxkndie8y5iggcwgw8418fg5iagrk X-HE-Tag: 1702697768-853473 X-HE-Meta: U2FsdGVkX1/u3O0Qi7ReXnN+jSjzxO2h59jx0IER7MK5Dch4aIy3pYprKXIZlY/6+yuepMlDnL514Px0DFN8P5RJW6aoeN+jjSsy7rKIysfnwF2r5yunaktFf/nF1BAMdj0Zr53a6HqMtjO8ovR/y1vaFgDg611P0ZTbGrZ720iKgY/kEjbrvhM8X+pCekdBOPpabaCjd1mRBIypS/VuyiOdEGicKge1Px/hCnYA8wwa9VoagRfoXCalGxIIJKPEiojYGAstR+87mpo96WQpjayq3ifBXblyzemqm8d5ZEb47dS5sIuCZQ60InCVilPZ/tSUpPD64kZdx295IStOEa1UrUK+W7vEEWJ8QUHwwt3rxQ+MXaxWSLWh6eNM9VV0fnBVVt9HDU1H4W/FKvenhToyLjrYtsekzeI78bGA4xa3fvLQA4k9Ym1iejEvRwulyZ7T/Jc/OvfkUTMRxeEGDqDc2aCqgO5pYfOvqxtNjwjzFTka5YBxPMLh+99yYQ5k2qbLJAwRIzMogB3y3wAzJ/rGOV0PQY98Mswb8mE0GOlon3g9R1pwDrG8bzPvxgIIeht9HbgJtccPAAMUtoS8zLaAw68YjUOz7PH2HnlzF6FdKLKGnc5MSKEtOyN5M/d6Z3KFTCdrwQIY69KCuTYgybn6ElN5enRX4ewVv0i7ZPJJ6rwyfbG8tz/QCbadqfgbWLA8hIrNAJ8XyN2zuG1zOGB0U6J1VDucPL6S7bJ0oVplMOJSxBaMUlV3QEArQytqvXgfyfFSazFsiW9JqY1UkVY7SQB/hUZkWUeBH1YD01eTbtNvakUoFq6r8jylRWX5qlKYsghO6edMbjWhCaMObRm+U0Bit8DV1zS5Hp29rDXnWVpnf7QCy8oS6SbCjz3nfg/dz58Nm0YuO0pVs4IMuP5o5EJ+113P X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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; }