Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2401170rdb; Mon, 12 Feb 2024 03:55:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVFtEYgItqU+F0xNqVOiN98OLQBFI+IzJ9Y6y8clnKJqFUn5Laq/cEYzutMtkv+gXLuWhgIKC+mKtyylUbHfQHlJ5DI+VHW6z26WUfnTg== X-Google-Smtp-Source: AGHT+IGYUdNna28b9b3hYQ6ROROQVjwVPBSCKs6FDtqBFOKYsKGTi9eG+M4MydWUmzCEtxpjxGW/ X-Received: by 2002:a05:6a21:9186:b0:19c:71bc:ec82 with SMTP id tp6-20020a056a21918600b0019c71bcec82mr9977839pzb.48.1707738929356; Mon, 12 Feb 2024 03:55:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707738929; cv=pass; d=google.com; s=arc-20160816; b=0Yo8XDkz5VIefk1TxrGH+a2f8ybCt2XwxmL1z7EV4xzcVUTRB97GSZvX2bK33ran0e 6OxXseFYBCZdwRav/0wGV9ys4t+W0orIEUBtKD3hG0EwYIfWd5rBA0QzSM9vXYyKPh+T YWWs4D55Tc5N8DxMg1DUbcmIUqaasxJmylqzeIlilLEIZyLB/U7XHdJXTkWwkPD0j679 L4zU7LoRteiNPp9prp90nvwelxq69uBtMCRUZ9ubv+yBC3EL7obR5DApfJOdPcOyZrIL 9LW7c+3CMOdluJjY0kjRgbfeHs6YnNrX0ufXLI9OKd+4Nr1QAlWqXNHPtf0kHBRG8AE9 FxuQ== 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=xXSVW+f0L20MyFlW669ysmJ9vw4awzPJrxZU1jMKLXw=; fh=IrHrb661X8LbxAbMUE0XBYn7VJwrziOOF/TUTFX3zEM=; b=RteUMm2TYPLAGBdCJuG7npWHsMcD2GQGLsIgQ8LmuSfdjjCgxf6ryJ1tJ8sqa45zCm XBh/zmvs++18asPpi01pnoSTWlB7Hf1UikLnTfEgvmYwX2o34jxF4Utp4GlaSfmJ0DOf 5apGrQfIyHWt7YQgxhTF+oeKJgK9Dv3BlSBvW8TmRW4pkWZrAO/4v7hOA+QAkKue/cLz u7N8krUgpp/cjLE1XO655i8a3m4ow3nvAMdUUinKPN4Q/OrSq+EOdDA/ic6gytIv9ibz olyqZEgVsY0q9I7sSrB1MhBu5luZnCLLltekWcT4di97gPX74HdHnNU4+yyuquRZy6IW Utmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=e+sFRlJM; 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-61462-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com X-Forwarded-Encrypted: i=2; AJvYcCUVs4CEmA8v86uRUpAyseWrH4FukZtRFys3hVLQxkp0RuzZFXbVyNoGuS4ygy4F4zXf7vkmtGVq0CYVCCj59Ia3HDMAVt1ng8GBUMJQ3A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p23-20020a639517000000b005dc529b708asi130491pgd.743.2024.02.12.03.55.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 03:55:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61462-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=e+sFRlJM; 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-61462-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61462-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 066E7283D8A for ; Mon, 12 Feb 2024 11:55:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFFB339AE1; Mon, 12 Feb 2024 11:55:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="e+sFRlJM" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 89F0339AC9 for ; Mon, 12 Feb 2024 11:55:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707738920; cv=none; b=k1VnIvprW0vwL5EVFgd1dNepmzh/YwghYFU4qyRg5YY27bfDa7/X36Ba76U44RCthNLUI71YLMSm52Ae0frq1f8yldMQBu15JYj0irh9vKGx7TFaCqRTP2LUFjkZfEVAkEohtlEwaMM6tW5AQJ1A3SJhxeBFI/HL0ZLU3ba1eI8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707738920; c=relaxed/simple; bh=kAYtCIIcQFYGP20Bueq7Q2euwuW3ISubaywlVMF9Oo8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mz+YPm+ZIl/YSjxsh3GkA3Tgw7CTHzxP9oKooc2pR1K3dTQpEl6wOGTK/RRvL7ilrYHmwm/QJZsh6ak/cI+1OyBUk4d3rTnwTH7cq7700fSLpp1JK59qAic1aK0nHsh6sNMwnaG0Zs/Kpza6Pmk1Y63ow3VRzp4alrzwS/W5ilg= 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=e+sFRlJM; arc=none smtp.client-ip=209.85.218.44 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-ej1-f44.google.com with SMTP id a640c23a62f3a-a2a17f3217aso398885966b.2 for ; Mon, 12 Feb 2024 03:55:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1707738916; x=1708343716; 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=xXSVW+f0L20MyFlW669ysmJ9vw4awzPJrxZU1jMKLXw=; b=e+sFRlJMVcpLFf/BnnhNhP215kxYRaNJYEFUla169f05AHuelZ/8VSHBrjoUTlGVw1 9rYieN+D4fKe3EzjZmygSKvV0DcqM9PTVXoiGIxbjsNFiU/VasvK83rCF/7HMB/hkR9h 3yRR7OoUQNX9Hd1Tj/BASa1aazjQsTVSsjz/omuspDH9zz6gF9laAqhUWByqMMSdnhVV mR+KuzeM2TkeU6elU4c1u/SR0I6/ouQnDMs+Sl+6pT7nw6kYbZrd1sF37bc7tHRm/LMW R4u/2i8lQB/c9o0DOpsMVe1ZX/D/cz88t0Z24CkTttTcgqGaa7vC8MhKZnoXKN6TWNab mszA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707738916; x=1708343716; 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=xXSVW+f0L20MyFlW669ysmJ9vw4awzPJrxZU1jMKLXw=; b=FGGZLlxgRIhjs2sBm6/79u2qWTxtXkXVJ09jEQ8om/avzlpeB1CbGYq9LYFMZ8ysd+ JfX+kSd3AwisnyUceEAW2GbI4OnFCocG3YwIuZOuxjr+MGRv6BfP9QqXt392bozTCnfw NhDI+ERZT6DkI7d4Xtm/sBopQ57ddKrK9gfDbT16Jn7dmjh/y4el55xISoAYSactufol X8QPxfOFabpYYbT+8Kc1jcBVZwRTs5dmKzKee6EN1UOaD2qrNHSqME1sPlPjTyGB69Ka //n+FINZJJd4hDAjwipbs0tIYBkCSTcrx0GHDM4fEvzI0g3bEcVhWTvs4uzrA7aO6myb fMqA== X-Gm-Message-State: AOJu0YwD2uIjS5Xc9wffhmj5dNbnDHerwMdA9wt2LaH/DGehoz5M6WOm I9t9NYYmDwQJUmP8u6/CUR0OJVklXnNVTYEZo8TH0vEmgg41gX1pDdDH8lQLAUzAzUXIxnNVNGN o X-Received: by 2002:a17:906:6b86:b0:a3c:c54d:2a95 with SMTP id l6-20020a1709066b8600b00a3cc54d2a95mr902397ejr.37.1707738916500; Mon, 12 Feb 2024 03:55:16 -0800 (PST) Received: from raven.blarg.de (p200300dc6f267100023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f26:7100:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id m1-20020a17090607c100b00a36c3e2e52dsm139203ejc.61.2024.02.12.03.55.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 03:55:14 -0800 (PST) From: Max Kellermann To: linux-kernel@vger.kernel.org Cc: Max Kellermann Subject: [PATCH v5 04/35] workqueue.h: move struct delayed_work to workqueue_types.h Date: Mon, 12 Feb 2024 12:54:29 +0100 Message-Id: <20240212115500.2078463-5-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240212115500.2078463-1-max.kellermann@ionos.com> References: <20240212115500.2078463-1-max.kellermann@ionos.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This allows including workqueue_types.h instead of workqueue.h in some headers. Signed-off-by: Max Kellermann --- include/linux/can/dev.h | 2 +- include/linux/jump_label_ratelimit.h | 2 +- include/linux/kobject.h | 5 ++++- include/linux/workqueue.h | 9 --------- include/linux/workqueue_types.h | 9 +++++++++ include/net/netns/ipv6.h | 2 +- include/sound/soc.h | 2 +- 7 files changed, 17 insertions(+), 14 deletions(-) diff --git a/include/linux/can/dev.h b/include/linux/can/dev.h index 332ece824fde..91cf56179c13 100644 --- a/include/linux/can/dev.h +++ b/include/linux/can/dev.h @@ -22,7 +22,7 @@ #include #include #include -#include // for struct delayed_work +#include // for struct delayed_work /* * CAN mode diff --git a/include/linux/jump_label_ratelimit.h b/include/linux/jump_label_ratelimit.h index 8c3ee291b2d8..2b5095d3dea2 100644 --- a/include/linux/jump_label_ratelimit.h +++ b/include/linux/jump_label_ratelimit.h @@ -3,7 +3,7 @@ #define _LINUX_JUMP_LABEL_RATELIMIT_H #include -#include +#include #if defined(CONFIG_JUMP_LABEL) struct static_key_deferred { diff --git a/include/linux/kobject.h b/include/linux/kobject.h index da714992ab38..8890ab7bdbdc 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h @@ -24,9 +24,12 @@ #include // for va_list #include #include -#include #include +#ifdef CONFIG_DEBUG_KOBJECT_RELEASE +#include +#endif + #define UEVENT_HELPER_PATH_LEN 256 #define UEVENT_NUM_ENVP 64 /* number of env pointers */ #define UEVENT_BUFFER_SIZE 2048 /* buffer for the variables */ diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 1565bab9edc8..f09fef276b77 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -99,15 +99,6 @@ enum wq_misc_consts { #define WORK_DATA_STATIC_INIT() \ ATOMIC_LONG_INIT((unsigned long)(WORK_STRUCT_NO_POOL | WORK_STRUCT_STATIC)) -struct delayed_work { - struct work_struct work; - struct timer_list timer; - - /* target workqueue and CPU ->timer uses to queue ->work */ - struct workqueue_struct *wq; - int cpu; -}; - struct rcu_work { struct work_struct work; struct rcu_head rcu; diff --git a/include/linux/workqueue_types.h b/include/linux/workqueue_types.h index 4c38824f3ab4..e16aaa7a6661 100644 --- a/include/linux/workqueue_types.h +++ b/include/linux/workqueue_types.h @@ -22,4 +22,13 @@ struct work_struct { #endif }; +struct delayed_work { + struct work_struct work; + struct timer_list timer; + + /* target workqueue and CPU ->timer uses to queue ->work */ + struct workqueue_struct *wq; + int cpu; +}; + #endif /* _LINUX_WORKQUEUE_TYPES_H */ diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h index 858ee28e73f9..30a55f462264 100644 --- a/include/net/netns/ipv6.h +++ b/include/net/netns/ipv6.h @@ -6,7 +6,7 @@ #include #include #include -#include // for struct delayed_work +#include // for struct delayed_work #include #ifndef __NETNS_IPV6_H__ diff --git a/include/sound/soc.h b/include/sound/soc.h index 6defc5547ff9..0021d54625da 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include -- 2.39.2