From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 1BD9B409266 for ; Wed, 8 Jul 2026 15:46:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783525573; cv=none; b=WQiCq0B2sduQHCQd5pbn9kTVk9qM0/n9IFWpRwmwDo3EimXYtHew6lU5Xrj9Pf34Bf18xEhMV/8J0CaHyPxAIWxFNK0E51gYbWh2MwI+YbfGoIMS488IbjOmjPIVRp9tlC0xSBmnI9W3hrD6POWnmz0eVjV+/wG+jeT/s7jwj4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783525573; c=relaxed/simple; bh=6o/Os/YHoHLpbGBJ/Oz87lOS4kylKBP062qGBWElKsY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JDuBpsqFwGllXoEyjb0OboKEuA6WfoREX6Fk0K4Q4eARul3XoNDm8CGMgJhC0eL3bHcgKWOXId+JcOz1qjnXZP3N7Eg7ORBlNo0FhMBJnHRAD+aP0yI5DAeaUlYiZ6zW5ym/OLqO36Lm9JlkxqMJdjACzJSDnbWWBSMx+builJs= 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=BGxHDi56; arc=none smtp.client-ip=209.85.221.46 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="BGxHDi56" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-4720d22c94aso808535f8f.1 for ; Wed, 08 Jul 2026 08:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1783525566; x=1784130366; darn=lists.linux.dev; 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=BGxHDi56uTJ4WVBwebGp4VVqM161q8XbA8wHR/YzAuXa7l980VUumdHnrR7DUdfNBg 3+QGlGbY0qtbNHQgG2IalS+xxjLKMaCVXiP0s+5HN2OD5Zc3pPOCQ9Vu4XPubZUzdtZh zlx+gRIulUMw7EV5I4o3z3btyELbB3hoi+pK+AvLZHSS3wcgfOKQB4FHiFB4Z9g71FOr bkoN2oPevt2hoybmLgif6DV4FK5HFRNZtvyUGvml6z6AwC0bJEjru8wz2OAmnudkcjrz qU3MpE1SB9iCBlyseg0nn6QZx+WASOzFkl5liXihOgWRUOEmYIWmDXeU1v6vvqx+zl7G 9Dlw== 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=U5J5Ck9s9Hdxu5fgqUVIKyZTARmAZz24unejYMoa7SDRRx7+RSVGC9OmqSn/rVM4/y exuavPDfZ1igpgciJki4I8OQPJNYwA/gN4ZqZkcSTpmBtOV8L118fEuoSJ1aF6PcmHEg le26yEhmveEv8M8pSJvemrCwodJSEg3hFUKMgcIpUSEvcHijaa4ut3DtpOk39VVHlkno iXvlLNz0UOhgENNwcUy7lxqww8IekY/zeqnbvfAVLjUa4AipSeXPxj/CgifscMOR4FxO 3f+d7PksI4O2FjCf2RWtF+/ZzwPrYq7bb9jJQKa52/Mv0I62+01aA/22bCozUlaNYLAK IxFw== X-Forwarded-Encrypted: i=1; AHgh+RqpW5IVacEs7qt7W/r0dHD4i8CKvLrDq6rMVsLdqAJ+VO8lpYjHp3JC9aZAQ/0h1hfbH9J37+rj529itw==@lists.linux.dev X-Gm-Message-State: AOJu0YwH/4zwF5Xo09/nOd7L8OTMci5/vMVxdwXptXvLQ40JObTmN+SS gkqifD46wMPwy+wqkyO5PAHzgJ6sTauvq+8dwWr+EDGVkhGStRiZR1Qve1+PFkMBYTE= X-Gm-Gg: AfdE7clUpMRR2Hnt61P0Zz/g7JtXZ9KjNiC7/m1OORqwuaLp6XpI7Q4kivt7OAClDkL GDP8LHLk6dms5V9grun6fuuureqh41qRUq2sv9WiiVQX7jlHTii9bvsFg6QUWSR2rrqWHpUTvZI d0aW0HaqglnANMskzHr+d4uLXsNN4v4tY9UNcrS8nDFv9Jam8RUOaFmv3j5GGxwIYZkhIbNo9N/ 4CF+Q8JOPALKCb2BfgdGpj2iWbyte0rMTkE7aUiu7PV4RA3509IyXXzS2lJSpl4lldR3PI90sAI 2d4IyDD0l/vsH/Jwz4c0TTWKmbMTRljBArbPTIdvTzGu3Iqo7HFtPhcu7VNU7275SNnBXlt9zOs UzRTz1lvPgLKhyqMpKphaTBCZbgpX9Oykzfkf+Ei85mN71AVUZ0vnU+ub8iEFBYff7CHUGHRTDj 9OCjB4DWFV1uYt52aOKvjAVMv4PO1t+g== 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: driver-core@lists.linux.dev 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