From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr2-f12.google.com (mail-wr2-f12.google.com [74.125.225.76]) (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 D5BE936E48B for ; Fri, 11 Sep 2026 14:47:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789138033; cv=none; b=ewaBoRTLuUYu0e4UfJJw6YMXPYouuLau+wna7iyfw7fv1RZpQO50vOQWIu/quio/TqSu/5MZmAz3HdijcK74PpCuozlFSq9CEPfIp41zeElJ7R0k8uIT0weKJwRQGadKz/yLhGTPp9cb1FZAV5MZSISU/vceCB/Dy4SpZa9BYXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789138033; c=relaxed/simple; bh=dcMfYcrZvJo2odetIockDZHB6TyER2n5DIFvd4jrOOA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=G1gRU3RacmlvdJ9WGYIDG7S8/l72FUOTicEwDED+iIYEj3x5+Fn6fS6imtCGckxxUt2z/ji4rv/IUY54QfDU9WM97w1RntSUZvYw3WrqBs9Zh5G9abxER7TMxpxM93V6hRKp3CPYtVbs0HGAZuqs4kDNmbj+6bqwU1bB1jx/gXs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=cli6Dva7; arc=none smtp.client-ip=74.125.225.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="cli6Dva7" Received: by mail-wr2-f12.google.com with SMTP id ffacd0b85a97d-485b1d2874aso739654f8f.1 for ; Fri, 11 Sep 2026 07:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1789138025; x=1789742825; darn=lists.linux.dev; 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=cli6Dva7UoOu42JhIIlR0WIyERbtL7UQORl7+b4twen7ghp62tpaAp1vwAa3lI3ull XrXtxA/2V3QzYDZsKV976Y7geT2bMWFsiasCaU+ApJ1gLBUFM8GNv0pZ4g5PeasX2AmA xWeJyxkrDKDZ3W+274tLLe+35CgcwISdOJwmb8/2Nw9/msT5b03dSEM4kSXPb0wDe9YQ U8Npr+QxKUr8sfTrtI6ZfEQ0vpRMG3oqJXknV/nT+2bb1rJCCtiCPAjhKh6UigDCM/v9 B2aqK9aAmda6hkya/h3mSwamEPl6ZLLQgnQxKVXdRbEICOuZ7ieQ7kKuv8TuwGLmrlCI 1K5g== 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=EM+xm5GipxTfqkLhqqV965xkCJsQtpmyzV2jEyBdP0g7M3buK3wvFkwDJImxzTv+Pu ruumFO3byt3mSn9dIYbK1JtmhRW1m2jSF3yutxV6OrMwB64ehPled1O3hj13eRVVXBAn RO/tOWl88FY6P/Hts2smGCWJJDrdZKpvGgKDF2CZXTSBklcPx2ejWarJMBkiV8brGxoC 47GRKOk89ZLRIoxQzUaCuRi7YnDu23oLsaHPdA8iY1EViEaVzdJ/dbmz2imyfWz29yVx luciIiyMoXK9GFDsBQ0/Nuw11pRJ1bRvvAmhVoV1QXjvj9uJ/SrZrRcw60pVo6Wemlb2 hv3Q== X-Forwarded-Encrypted: i=1; AKwUvBw/Lu9hhVkYUHsfS+llHP10f2gKXULO1A2rgsu+r+mCeKl/fD8wPZQnPG/d6xnsqZ1cVZsnplk=@lists.linux.dev X-Gm-Message-State: AFuF++mtfN1I4PjUES1E0P9/+EXt3qJWBFZlJvE3Pkl2AFsJ8lM7OhVq s32HX2FmvVcn/U0z0wkSYIjhcwCPI8kwz86R/8zIjjFMaJiwyl8bXcBbcIFQUcvm0L4= X-Gm-Gg: AYBFou1vn/9NoN5xDcQIr+k4r3D8YdlqvqQGZTI4J99obAgHPAAc+qnyc4M0sifq6Kz LHUoxIrZ5G5bt4Q0opD73d0RjT3EnlWgBt5Lz/ccfP4cZC2dFVbABShsJ6ZZ+k5Lbs827k+YkC7 0Fre8RihOlw+l3pSaFjmyZTTdbY5H//467VRCKP27Xep2qO3beNECxEPF+AYiuBnLD3miAQFjGb vyszmV5C3u6revh7sHi8emSg9hlwUvf2Wv2eBjgzFBPGO0bT1dxVzlcFywCBqm61FjxmyDKr4S9 iCu/B/vSzmv5ZGIoUBC3iXQD+SZh3QY4y36PIlHP7fGxIoTwzcdWkXT/cJkrCmhIZsVAEfueqHc khwVKEiIEwcjmzR3A8cWpfxK+IiAHWgeXALrsFq+JbpCQQkY6nGcX8xd/2/tPFoEoAQpy0AwWDy 0RiX2cbtrGUcJLHvj83UM09HO6eLW4SB02eXo1Vnu3Afq/XnHngBrR3YuoifMqQEeCZlKexmW9Z dW4tA== 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> Precedence: bulk X-Mailing-List: bridge@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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