From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 1A1DC40927E for ; Wed, 8 Jul 2026 15:46:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783525572; cv=none; b=SFg5ZJ0HoWsBBOAMaj9rvfEEfv5mw9oV4kRHTrX0JPQfnYrDWVdDXEK5PvryR0Xrrdq8ugwznwjUTRV86zretNg2BdfJkLlQ5UQNmiHjY4wWz4MVpaGIwH3sX3aX5f4dj7/fDQr0GtXkWSPBVaKTll2TY1B7s4OQEILIM884EP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783525572; c=relaxed/simple; bh=6o/Os/YHoHLpbGBJ/Oz87lOS4kylKBP062qGBWElKsY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PvHE2zanww49mcXyGxkLT90YXvv9dng/ST4qh/7XrPQh5GEaaF8z4xL6nTW3yak1+vM8sGKTWnyeLzrudxcRM6i9ZT86WAoZvcCLfHOGSJKJjaFwYu30IoSCycvoF2+F63tHIyubyOy1CWarjTBQIxTeB6UZ2ga3Ry0PXxeW0ac= 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=F/xDcraq; arc=none smtp.client-ip=209.85.221.43 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="F/xDcraq" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-474560436c3so804038f8f.0 for ; Wed, 08 Jul 2026 08:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1783525566; x=1784130366; 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:content-type; bh=DFzX8ayLrWD5LLPflyw5iQn6+h660qomUnmCAVS4si0=; b=F/xDcraqE7zjRny9dGpElvcrYP+TvLHulDUmHNdZhg0hx4k/ecCY84wCOji4oou5cz VXJpUOkuokde7MMu0flycEjUugRu4z0NFWPcqjYItrQ3J4nRTl3+vzC1w1b3HnpGNxdf H64963aqUef7jrOhAPDPzwH79R8InoYlihBzie9t14dqKK4Fl1xxfHrt+T3uIIp5iYi4 gfE2K5QZBbk3aiPJN4k0Xu9STGQab/mn2KuaphtmU3Nl1u9Dmd/gQc4sqc0+srk3Dgcr JHFdBIBj+w+scyPJLw/BVf9V6UaVNl407BpnFBOfTrzUF22wnSL5rqwEUY1MvfPw1fLm ueMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783525566; x=1784130366; h=content-transfer-encoding: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=DFzX8ayLrWD5LLPflyw5iQn6+h660qomUnmCAVS4si0=; b=YmXK+XZpNsxIPZVvaH8JWZUAyQBwFzH5JtanXhVwJ6j/iU1aEsXff7EmTVZVK6+QXD dW73GmDRZT37bePQrf+cjHlxoLnIJd4Cpg/pq+5Zq7il2WLa067X6VgsgI9JZvz2JwHF ZmBSm7wA0kIkRXMGaLWph79ub0NRpNmr1xCUIWwg3OPuST9l8mgVLJFou8kNC0sBr4Ry qrUmsifGRS2gNBKQaU8OcDi4iCApOOyd1cVThV995g0RSRNUb9Qom5FZbNG5XK9yNzqv o+dpLKW5o9K6j8+5Ob+G8Vsq9WFfaMFMXI5afernXZKWwIlizcVi7eVdzE+dGsXnhEYZ pKoQ== X-Forwarded-Encrypted: i=1; AHgh+RqfP+rz+SvJ/GEeOt7r3FyC2Qcw+wf1B0XW7VgGeQSckHF6WmRWgt6Ypvt8FOUYtdKelz/gnTs=@vger.kernel.org X-Gm-Message-State: AOJu0YzxMV4PftJdnnmr0w8y9BPs7Tp08v79VQA526ydwVxhXbqx24sK V57H8uRP6HN500JQQr8hlOnQRbgcawuxX4py8dIYhUuav4AFSm0AafsJRJMwOpyX5AU= X-Gm-Gg: AfdE7ckS7tmLj0blgDy/D9zfZpBomJFFGSEqGiEEte79tTcUqzzcvxZDErmPuz/+j1q 3/dj4NSF4cXlTPmZLbMfTdvIMclmSJtWGTUuZsCl9httK5bQxVHgKUL2EMWqCucYjWItNh1pdO7 M/Q9kz7bnIgLF2xEoDfySzh7cDT817US8cwkLRyBPRnmxC76HPG5gZr8Ghtll+BXa7ENrNUh+79 CUKhersQwA3eU3uJ2gKbm+bawYbT5ZxxfkZu1ppNmqcNJ2b8R4xTNeh6GH+v1l7rHQz7Bq78RBm 5sEX/9Dm1JjZMnlR1qI+q5GwafCPQHJhci2dk8o/khOsV+e4iqEpeS2euEEmG4pJCJlI59cmDs4 8/sB9lk2dMMHMrdtYUaYVoIt6EyGKEDP80Ak2UhvkmiPT1Q8lKGK0+hyWBoh62vNlqWoK7wLGRs ViONIQhFB1Ex3gVDjtCB7DatqGAELX2Q== X-Received: by 2002:a05:6000:26d0:b0:473:673e:3836 with SMTP id ffacd0b85a97d-47df078bb73mr3861713f8f.28.1783525565920; Wed, 08 Jul 2026 08:46:05 -0700 (PDT) Received: from zovi.suse.cz (nat2.prg.suse.com. [195.250.132.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47a9e4d780csm44806847f8f.11.2026.07.08.08.46.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 08:46:05 -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 2/2] module: Bring includes in linux/kmod.h up to date Date: Wed, 8 Jul 2026 17:44:30 +0200 Message-ID: <20260708154510.6794-3-petr.pavlu@suse.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260708154510.6794-1-petr.pavlu@suse.com> References: <20260708154510.6794-1-petr.pavlu@suse.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- 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.54.0