From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 05C8F36494F for ; Tue, 21 Jul 2026 13:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784639573; cv=none; b=BzWiLmrumGPqGfko39ZI/5x1duvL5Sv6YohTO+7QPo750x5yTUbKCtwhSgnR6F/ipAudKpd1g0Vr/E2L6U4ApeS53+i0Y4qgJlh+vrn3VofdiGk5EcjA1r9Zgee9F22/S65FDa2fvqkZGXyZ1rtg/uHo4i3Pi13kmTGtKey7w74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784639573; c=relaxed/simple; bh=roviBJb1B7iQhUITwXosnTCAe4xvx3i/dIY5PCDwenw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=m606iEXWER+LemYj6iLAvfwWGRqd9SXx/nbPrafkB4JbKXFMIlCkPF5224NVNp5g8uTE6pNBgsZ/cY7SNcffu5P6qiOHR29Ctt1OQTyi3JS+GBxWH7QmhZ7TlRb0Kw4qnTU//tzuHGsXXxnbD8JrCBrqueGoqzD92mxsMwXAQXw= 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=LoGxvBpD; arc=none smtp.client-ip=209.85.221.49 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="LoGxvBpD" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-47f64ca1c2dso849098f8f.2 for ; Tue, 21 Jul 2026 06:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1784639565; x=1785244365; 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=LZcY8JywvKXANV4b4Y/mnnGxXAY43BzjPnwULQV05KI=; b=LoGxvBpDEU586mANHKg0AlOVLSwjxUwcerLWqBCuDTqB3BKr12xDPuAeaITf0OJ5u7 pW5MXZkNE0Spz9kUiB9YFRowyZ0wzFTcuAQcWOmZNSNocM1lGunteIJ6qMNsP+7LQHCn K9g4hWqiodIzksvb86yTlUcAOgIE59cm3keL138dQdp2+Aqm72Oe/K9ovJombOHk9b77 q7K21gZoQ5BwAZI8RwxdUwRFZcTCvQniV3IZouqx83co77jWHl0m4ZIhqH83wfbTdKJo gJdyjf/44/40tPfp4ckSZbjo5gpkBplWyQ2sI3AVC3OjkfeUBdeeMBulLolpi/ubh9oF H8Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784639565; x=1785244365; 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=LZcY8JywvKXANV4b4Y/mnnGxXAY43BzjPnwULQV05KI=; b=ogqMNKD9HEaifyEYwwQ0W7HBC8ogHQzyv1E9CImB3eByN0m00dC818mRKnjoEeC9wE dJfttHzYtyFEtzBggmh8j4lSwP3VpxXJu2KJb2djJiq00gnh0LCoC7JYbeuFTccZrlme hXXW+S4Sri22iPGw5Uml2LFVjQNzZSRUY1EIuuTnSlk4cbg69m7Zc1LMIrbp8J6idY3i Rs7cSbvbtJkPz4sukjr1fFHOh+imoxOXVzqHqFMsWJDyQ4DrSaQmQHlgwVcmUqGK2Bmm 9wP+ea/0zD/zD2K66BReQ+cNWd0SoJUfIaSMS5Ewtzrb4gx7UDjhNYwR/8e+Cjn56k75 rlCQ== X-Forwarded-Encrypted: i=1; AHgh+Rr+Sf8zPthRQtCFXP/MDSzNGsRNpb/6LmX+UUnEgOyQPl/2Y0esrwMNUKhRFM6OEYyUD/tr2Q8JsFhoDg==@vger.kernel.org X-Gm-Message-State: AOJu0YyqeQVhtb6ixImCAhPDzX3HvJKJmaQL5egvhssfx7j+u93Py2fp iDavCDEXJ3XydJJh/78WkARBXN4X+5XMMo4+E5QQXirlDrBifJI6fpz3WF2Pytgs964= X-Gm-Gg: AR+sD11A7mJF2RrasSH8wGf86w9WASv35mRxHsDl0sO83hkMIAkieJs6Yq8RdB95D4J vwaJNeVXpH9+uVi+4cwk9tS5RBhjAC/1oYKZj2b2m/kEi+tbD7/Ws9Cp9LD3I/lhC2aEGXoXG0d wxAg6Q7iZyLB5Z4/lpxrowEB4uFurOVXw8v4kM+A0aM9zKEb+xoCcITcrwI2Ovr7PZfBG/8x62U /p/t9e0r2dSAaP5Ez4lWp+Nhpnn5t9UUaGfZYSnCDIC6s7IVmUyQJ6L7HjJ9Q/9V3Y6gPkTreqJ wKXopGfBBtU83L0C2BNnRmiIimZ1b93BkFAcR/9+RBZ/ZltdkbbZLhcqiNVOIUql5iF4csz86v9 0Spsd4uuIyeJsmLMbTU9HrIrFqQ93F/xHpIDxw6BS2bAWIbPk5npRlDz6+neVyGYS4Ymg0n27+Q == X-Received: by 2002:a5d:64e8:0:b0:47f:6fbd:8a17 with SMTP id ffacd0b85a97d-47f6fbd8e65mr15616435f8f.59.1784639564680; Tue, 21 Jul 2026 06:12:44 -0700 (PDT) Received: from zovi.suse.cz ([2001:af0:8000:1409:193:86:92:181]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47f63ee9281sm42070938f8f.36.2026.07.21.06.12.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 06:12:44 -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 v2 3/3] module: Bring includes in linux/kmod.h up to date Date: Tue, 21 Jul 2026 15:11:27 +0200 Message-ID: <20260721131207.803760-4-petr.pavlu@suse.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260721131207.803760-1-petr.pavlu@suse.com> References: <20260721131207.803760-1-petr.pavlu@suse.com> Precedence: bulk X-Mailing-List: linux-fbdev@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 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.54.0