From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 ADF6C30F7F7 for ; Sun, 16 Nov 2025 20:49:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763326152; cv=none; b=Wfm0wAt6EXDRmdfV/AHAdqSdy3RkbSoWVR26wDYBHxgP3JLZmgXzgEqayHS0YJZEI+0kLebLulSg/8P4uaGMgbm85U9pXw7r+ro/fWynF2DD7aLHlyS82/X1HPFajCOPWqfVKSONU6285zpTvPsS8YgzFQ+HtYzN/ZeQZdCMdAM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763326152; c=relaxed/simple; bh=TegtTSkTcpePs9Zykwrk+leYueOBpzXSZpeuIUq3Tek=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=tc+sJGkJRj7El7/4WYes8ulLkh9Q6e6JkylvfQJg+w7z/JlYYCyOG8rLFssFiEQCScoemaRxN6FzcqIzvC/i5tuUGuNy3G0JkSTDRQNZ+rp9T7NGbdrHK/ZNqaYUZhpwJG9+yjr64Se7Xrmhun9OH753S6vgMxS4YiAaX5lXNp0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bSp2XO7x; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=F/Gaec+F; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bSp2XO7x"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="F/Gaec+F" Message-ID: <20251104075427.844132154@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1763326149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=RAsiOkOM27d/koVLibNrTE4Qa4vkWqO92l5r/dx89yQ=; b=bSp2XO7x/4CLAxKT4HQHMZAp/yIs7QISL/uQNzHp1hvifj3vY/ezQF+0A6GQ87c3/cJvez UEK3q0ne0q7p/m2W5CfZyt6tA8MdbR8KAjGXD/5ECJAAksJMcYyrpUddOPeRLjvlk7YLTT RgfkChH2c6T7N4RnN5nP7D58fmaRLGkCD7x/FnZw+DL7t7dB2vHu78kEYLgUw6JBc/znJs qymT63VoDSg8Kr/sRxTqyGFyaSPt47/DRsz505J6JSTa4d5AxYzzb5lFk/cA+Z7UuKAJBq WGCS1LELlWg81xyNEjAdeUTOqiYEdvVVtCvPWP0rJvKKxj7031ClU5JZBT/vgA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1763326149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=RAsiOkOM27d/koVLibNrTE4Qa4vkWqO92l5r/dx89yQ=; b=F/Gaec+FXdsXqEI4b8iJQ2Q2DzdnxqdqKg/EBq0va19TL1nOp7c4iKd2UiJdikxEeX5upu pLiahTqmihG+UWCg== From: Thomas Gleixner To: LKML Cc: Peter Zijlstra , Gabriele Monaco , Mathieu Desnoyers , Michael Jeanson , Jens Axboe , "Paul E. McKenney" , "Gautham R. Shenoy" , Florian Weimer , Tim Chen , Yury Norov , Shrikanth Hegde Subject: [patch V4 18/20] irqwork: Move data struct to a types header References: <20251104075053.700034556@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Sun, 16 Nov 2025 21:49:08 +0100 (CET) ... to avoid header recursion hell. Signed-off-by: Thomas Gleixner Reviewed-by: Mathieu Desnoyers --- include/linux/irq_work.h | 9 ++------- include/linux/irq_work_types.h | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 7 deletions(-) --- a/include/linux/irq_work.h +++ b/include/linux/irq_work.h @@ -2,8 +2,9 @@ #ifndef _LINUX_IRQ_WORK_H #define _LINUX_IRQ_WORK_H -#include +#include #include +#include /* * An entry can be in one of four states: @@ -14,12 +15,6 @@ * busy NULL, 2 -> {free, claimed} : callback in progress, can be claimed */ -struct irq_work { - struct __call_single_node node; - void (*func)(struct irq_work *); - struct rcuwait irqwait; -}; - #define __IRQ_WORK_INIT(_func, _flags) (struct irq_work){ \ .node = { .u_flags = (_flags), }, \ .func = (_func), \ --- /dev/null +++ b/include/linux/irq_work_types.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_IRQ_WORK_TYPES_H +#define _LINUX_IRQ_WORK_TYPES_H + +#include +#include + +struct irq_work { + struct __call_single_node node; + void (*func)(struct irq_work *); + struct rcuwait irqwait; +}; + +#endif