Message ID | 20240131145008.1345531-15-max.kellermann@ionos.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-46647-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1969271dyb; Wed, 31 Jan 2024 07:33:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMCmgoBZSdypLeccBr+h9SM4ob6+oBHEVkE0rZjAJzYy6bUfj7a8RJDJr1Mg4AODs2nLYb X-Received: by 2002:a62:e810:0:b0:6df:bed0:95d1 with SMTP id c16-20020a62e810000000b006dfbed095d1mr1720393pfi.27.1706715237183; Wed, 31 Jan 2024 07:33:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706715237; cv=pass; d=google.com; s=arc-20160816; b=bGpyxElrFsNSO7dLU/LYhkpw9iaLHlcigbrg4uAEWPRonV/hXlsPxFM6PkMi0TltRW FfbNSWtXsJSPWsvFTVxhdkVy2ZKTLlVBe7/dwzOw01kF9TY+jDXVYtUv83CqL8nr6U9N mDJ2NU8wEjvVzPRZ9uTx8WRoRPekOtqmBGmSbPVXMzrwZL5e16u9byJnn1L5f6F95nLa 2RXYpM6wxqJoPsOrFk6Cam97B3eys/mA4iK+zZvf2rQDzxpOwEcTGi2/da3O7+sQg5gA oL6hAtEdlgf2wpwhJ6j/9ZVIFhjs0Qh57L1XqfTyG2PV7ieyGs0BdHwB64JTRumO0l9i JqNg== ARC-Message-Signature: i=2; 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=8Jvf9nXlMJHAHzKXh9T8RT5jLeZd8an9dEEZ2B//5ko=; fh=xoPFFuaHOJf4dyRkgiKMguqaCW1d2ZUfylkyYN2GCxc=; b=npxI9yBt/WKAipjhxNf1Q8JoZmL0XXMnsN88kzACLJ+FrG4fJakPh8/9PYvDmJfqhi xjorvST9NWZoghNdV0ouFXKtg+6Gdzh7qCkH1jupK6dKJcA9N2u7h6DsQIgjx+pJGJP7 831/bbVLGvKwF24ugaCHeiYvf+8xyIP2lrtvij/EXDv0f6x/XyUkcqlwjbLR4G4ap2be r5/aSvR2iBms/0deB8PI8c4WPDM05MM7H4bI62Inwt3JGfWkwDaWyNDu2+PJTTO+mNJJ EdvjzOI693vICp5N2lGtYuqiEwIzWsEBSfgwuQfEmTq8I0FCCQYhYKIGjk4leAGhHUHF 7tvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b="Jc1x8QU/"; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-46647-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46647-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com X-Forwarded-Encrypted: i=1; AJvYcCUhVkg7eNBkrwZisM8fI6030cSsgO1PU+kMwqVOil7skHufSE8ZXLSix5YKZnjs8x0jxJH5CSn0Y34dsfGEIHgYN6kjjg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y2-20020a633202000000b005cd60647c4dsi9669367pgy.766.2024.01.31.07.33.56 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 07:33:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46647-ouuuleilei=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=@ionos.com header.s=google header.b="Jc1x8QU/"; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-46647-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46647-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com 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 D1703B2A50B for <ouuuleilei@gmail.com>; Wed, 31 Jan 2024 14:55:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C537135417; Wed, 31 Jan 2024 14:50:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="Jc1x8QU/" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7019912BF2F for <linux-kernel@vger.kernel.org>; Wed, 31 Jan 2024 14:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706712632; cv=none; b=nwXT8CcGJkuZKGFQwzppxjgCkzZKHeLYg7I4364oyQ5mw9WX2CGDUjZN3ViBDhNm9y4w/OZTng5OFm5Hh+hFvmr+Viv0obaz9ONQHgHV7jwUpjkrKwQXZcJn6zLXlY+CrqektSSgfSQBlwDcjVqCmk2GDIJJaB4hVErCkg78A0E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706712632; c=relaxed/simple; bh=umpocJWf5sdD6KVHur6DHtXj065kZ5d03l7Q0U/QxVw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=R8nQCnl+amHXbXQXV6uk0mEHS777lPmCRiQin6TMuMuyMf37XGmsFS7F1XTcg5HbHLZEhBLS29nMvf5h0f6DFu5xHMQp9F2tAuc/jyEBJDJffDeizvOo5M9dLGGBCCgoivSwGoNayv0zI2TUNgqFgoC/Ag8BNlhwi5zCNBGEj+s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com; spf=pass smtp.mailfrom=ionos.com; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b=Jc1x8QU/; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ionos.com Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-33b0e5d1e89so74838f8f.0 for <linux-kernel@vger.kernel.org>; Wed, 31 Jan 2024 06:50:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1706712628; x=1707317428; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8Jvf9nXlMJHAHzKXh9T8RT5jLeZd8an9dEEZ2B//5ko=; b=Jc1x8QU/2itwitU2fjQN8DkWymtSAiVabWRaop/7Jj6/sbVWiszbvilFq3vi8gbo2I j2EPZThYlkvDe8onTVtfojIENB7/Oaxwkqu7UE1W7NdYeTIThm2Y2xEE2m8R4Q95CaNv HVKqauN2/VYTryv5TLpSmux3Y/Drs5m69bYp/cfsFoYX//s3b3FlCq81U7v2iTGj7Gl1 60coRFWfC9Xu/nSS1ghKKWQYc2m28CDYzcjhZK0OLAUQAAZKf/AFvVpTTd/MQkU1DHs6 hEl5zcKjaZm4hSpmPPQsG94f9RzSej+U2ZfEK5w4kxIzMroP8ZR5s/jTNFmBEHiJRWCo YVlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706712628; x=1707317428; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8Jvf9nXlMJHAHzKXh9T8RT5jLeZd8an9dEEZ2B//5ko=; b=gWl4H4jEya4fGcTrcnrNj8IrF/yGe0W9c0pAojDgNRley/cmGCIiPis3l3n6BiELke T1C2uGOhRNVwHZIXpZ7Y+OuuyMB6DYRFU3QUBKm3c2+rp4NtVImrXzHdymPyOGQSpY51 O6lp6gGW9xXjuuf4gZ8h1ZoXEcsdYTp3910qWdLeDWvKUeFpd+2qZWtDDEv3NVISEbMU N6xn2hBvUwQDNzP2Jm6s0VLWX09ihBId+zMAWVA327VPfOlGYPVUEUfM1MSppNtgx0kC f5gYM4Mxth98k9NkphukPA2SQ4urYOPr3oGQS5if1KNvn2isE6GmeInh1bREzdq7VpM3 tSBQ== X-Gm-Message-State: AOJu0YwpzFHoAbvcfZssiLHFR2Ixmiqtm7q//bSoJk33EDKP0ThMj1J0 Dfvkx5x2XIO35TWPf/lqnT03T9rC2RUU7D2uBf7LIoNJVaR6fntC8RxCeyXhPH/e2NbBf5TdZK8 v X-Received: by 2002:a5d:6889:0:b0:33a:e6dc:2e98 with SMTP id h9-20020a5d6889000000b0033ae6dc2e98mr1304973wru.5.1706712628284; Wed, 31 Jan 2024 06:50:28 -0800 (PST) Received: from raven.blarg.de (p200300dc6f2f5c00023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f2f:5c00:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id ch15-20020a5d5d0f000000b0033905a60689sm13850173wrb.45.2024.01.31.06.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 06:50:26 -0800 (PST) From: Max Kellermann <max.kellermann@ionos.com> To: linux-kernel@vger.kernel.org Cc: Max Kellermann <max.kellermann@ionos.com> Subject: [PATCH 14/28] swait.h: move declarations to swait_types.h Date: Wed, 31 Jan 2024 15:49:54 +0100 Message-Id: <20240131145008.1345531-15-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131145008.1345531-1-max.kellermann@ionos.com> References: <20240131145008.1345531-1-max.kellermann@ionos.com> 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789620636544627638 X-GMAIL-MSGID: 1789620636544627638 |
Series |
Fast kernel headers: reduce header dependencies
|
|
Commit Message
Max Kellermann
Jan. 31, 2024, 2:49 p.m. UTC
By providing declarations in a lean header, we can reduce header
dependencies.
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
---
include/linux/swait.h | 13 +------------
include/linux/swait_types.h | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+), 12 deletions(-)
create mode 100644 include/linux/swait_types.h
diff --git a/include/linux/swait.h b/include/linux/swait.h index 988ff0f0f84d..7fadcd30e505 100644 --- a/include/linux/swait.h +++ b/include/linux/swait.h @@ -2,6 +2,7 @@ #ifndef _LINUX_SWAIT_H #define _LINUX_SWAIT_H +#include <linux/swait_types.h> #include <linux/list.h> #include <linux/stddef.h> #include <linux/spinlock_types.h> @@ -37,18 +38,6 @@ * wait queues in most cases. */ -struct task_struct; - -struct swait_queue_head { - raw_spinlock_t lock; - struct list_head task_list; -}; - -struct swait_queue { - struct task_struct *task; - struct list_head task_list; -}; - #define __SWAITQUEUE_INITIALIZER(name) { \ .task = current, \ .task_list = LIST_HEAD_INIT((name).task_list), \ diff --git a/include/linux/swait_types.h b/include/linux/swait_types.h new file mode 100644 index 000000000000..316038879a37 --- /dev/null +++ b/include/linux/swait_types.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_SWAIT_TYPES_H +#define _LINUX_SWAIT_TYPES_H + +#include <linux/list.h> +#include <linux/spinlock_types.h> + +struct task_struct; + +struct swait_queue_head { + raw_spinlock_t lock; + struct list_head task_list; +}; + +struct swait_queue { + struct task_struct *task; + struct list_head task_list; +}; + +#endif /* _LINUX_SWAIT_TYPES_H */