From mboxrd@z Thu Jan 1 00:00:00 1970 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1160C88E58 for ; Fri, 11 Sep 2026 14:47:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4BD9110F64F; Fri, 11 Sep 2026 14:47:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=suse.com header.i=@suse.com header.b="UCR6Hz09"; dkim-atps=neutral Received: from mail-wr2-f12.google.com (mail-wr2-f12.google.com [74.125.225.76]) by gabe.freedesktop.org (Postfix) with ESMTPS id E06FC10F65E for ; Fri, 11 Sep 2026 14:47:06 +0000 (UTC) Received: by mail-wr2-f12.google.com with SMTP id ffacd0b85a97d-485933b2522so781688f8f.0 for ; Fri, 11 Sep 2026 07:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1789138025; x=1789742825; darn=lists.freedesktop.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=sAWK/0nRwHnvVvMYnd/Ub3wFPGnd0x9DJjP7YOulvgY=; b=UCR6Hz09tsV0basY0TnMbJciFd5MFG8O9dMvZlCtwREHGebWjc7FXMPgbbhET5RQzr 4np+QJqx6hYJTRQkP6pO2KF8ZBgIpy57RxJvQxNrUUFDvC49fECjfDN5CfO3xnBQwRlS zxgMLIE6ED2VyJA2l+NBC3EYSofLtuSZJi+vaiNdJQTLrrYD+IEyFcB015BBYy/KdNcg LfesT4vErS9KFuuvq0V/bXVqBi431atGteRLuvwRYxIiAHZrObgQvYkj3ZJ/JwVEwS+u Qq2zSXm3dmI0oeIoHxXVabEyUCHGABrqzJ3tvM9/GQ9gd5yIh+OVs2j7NfbaxN5VXmsP 9OUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789138025; x=1789742825; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=sAWK/0nRwHnvVvMYnd/Ub3wFPGnd0x9DJjP7YOulvgY=; b=EsBVF7PB49+7LtWh8cZ49TxRdvFZEwt5EER1ZxtXFdy9UpqsCNU6tC8+ufqX949pCh 04jNJ76bppiwlSWsB/CW4kH1N57IOy3OlC0ITZaFO9jLm2cfjbpW8t5NybC59SA2r+Xu GYeFjeuW/j437ISEiheeymIqrFPEigESlkLHnBIx/U3K/7EIorIUi/4WsMoZfRzaQKq/ 0qlTf0ZTYmZLGE4p62o5eRkxLApi9Rzd95zRV6ZG/RQxFXcpVwoaeCm3qQBblG4HKWPw bB2G1DQV3lnNSXUM8oU35568Kofexkv0gscOcVVQ+oxso5/d+RYESq5oKf5i7yU+BbKO xrSA== X-Forwarded-Encrypted: i=1; AKwUvBy7V9pqXN5KkjnuAQx618e9RpqXp+kT7nXXlVa5GaOkx1wROYXWKoc/uc5+8nEdrY6bHgb2vfZnoOU=@lists.freedesktop.org X-Gm-Message-State: AFuF++l6gQmNxJjOQ3PeaTgtwZLh5HPanj5zKJpZ0hUn7YU1tApjndym Zgv6FxIXN53ICt4Md7O43Nm5wPp9Qs4mE9ItABaaV7+OCk+AxYVA/WNKRxcsqi4qhhU= X-Gm-Gg: AYBFou3RqZ2AW0pS2/Z6j8MG7R6hOtJkcaH7qkEpUKofHQUDcYYQnhiny4iVH5HwQjN tpc+p3mbLqh+ijPsN0Q/yGzZ3NMcxeL9OGapNDOnUlqx51OdsFihr/XIkG57lBl8LrOif1rgb8j kkXX6KjjPsm3N1Tzn2x44d7YCwI8+ioyHlMaaIiP8EFXze3O/H6bs7xx+d/zq7grkgCPCYpeB2G 4KT6ylFUufGvONWLLt31dIJCb98CXjiv76RkN4sM8QDwa+rcE2iYLOEXKxqqViPZykN8EGWlR4X I33v6oC2FIVk5iPp0fu6ukAPfI3YuNH4QLFvt9pv5TVQCijgmGm3b0wmjStCH+jYM2m8WAhQrQ3 gjsnWiYkffQljOwsgK7Yd1+cIUEFE0DcEr88aHzUO6llkKkVhSpreR89FZK9DtHGddTr9yhZSJU +wA4PbexH0d/fOGqXgd1BCiyQmhujcVOguEGwinjd/jJj2WXuy9kMERYXHiF05HjLxN12WHDYEG 8hKGQ== X-Received: by 2002:a05:6000:26cf:b0:482:f61c:7cdd with SMTP id ffacd0b85a97d-486eb1d8541mr10746731f8f.4.1789138025130; Fri, 11 Sep 2026 07:47:05 -0700 (PDT) Received: from localhost.localdomain ([2001:af0:8000:1409:193:86:92:181]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-486eb32e8d1sm6328068f8f.11.2026.09.11.07.47.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2026 07:47:04 -0700 (PDT) From: Petr Pavlu To: Tony Luck , Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Philipp Reisner , Lars Ellenberg , =?UTF-8?q?Christoph=20B=C3=B6hmwalder?= , Jens Axboe , Johan Hovold , Alex Elder , Greg Kroah-Hartman , "Rafael J. Wysocki" , Michal Januszewski , Helge Deller , Alexander Viro , Christian Brauner , Jan Kara , Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton , NeilBrown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Mark Fasheh , Joel Becker , Joseph Qi , Tejun Heo , Johannes Weiner , =?UTF-8?q?Michal=20Koutn=C3=BD?= , Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , Pavel Machek , Len Brown , Andrew Morton , Danilo Krummrich , Nikolay Aleksandrov , Ido Schimmel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , David Howells , Jarkko Sakkinen , Paul Moore , James Morris , "Serge E. Hallyn" , Kentaro Takeda , Tetsuo Handa Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, drbd-dev@lists.linux.dev, linux-block@vger.kernel.org, greybus-dev@lists.linaro.org, linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, ocfs2-devel@lists.linux.dev, cgroups@vger.kernel.org, linux-modules@vger.kernel.org, linux-pm@vger.kernel.org, driver-core@lists.linux.dev, bridge@lists.linux.dev, netdev@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [PATCH v3 3/3] module: Bring includes in linux/kmod.h up to date Date: Fri, 11 Sep 2026 14:46:16 +0000 Message-ID: <20260911-module-include-kmod-v3-3-6ebccc3e0731@suse.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260911-module-include-kmod-v3-0-6ebccc3e0731@suse.com> References: <20260911-module-include-kmod-v3-0-6ebccc3e0731@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Including linux/kmod.h alone results in 1.5 MB of preprocessed output, even though it provides only a few functions and macros. The header currently depends on: * __printf() -> linux/compiler_attributes.h, * ENOSYS -> linux/errno.h, * bool -> linux/types.h. Include only these files, reducing the preprocessed output to 10 kB. Signed-off-by: Petr Pavlu Reviewed-by: Aaron Tomlin --- include/linux/kmod.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/include/linux/kmod.h b/include/linux/kmod.h index 9a07c3215389..b9474a62a568 100644 --- a/include/linux/kmod.h +++ b/include/linux/kmod.h @@ -2,17 +2,9 @@ #ifndef __LINUX_KMOD_H__ #define __LINUX_KMOD_H__ -/* - * include/linux/kmod.h - */ - -#include -#include -#include +#include #include -#include -#include -#include +#include #ifdef CONFIG_MODULES /* modprobe exit status on success, -ve on error. Return value -- 2.55.0