From nobody Wed Sep 23 09:48:17 2026 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 A61AC36495B for ; Tue, 21 Jul 2026 13:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784639574; cv=none; b=NRL/yaHEIoKC1ltI907vplf7qtxw5jNRixd+C0iHSYj/pn2NVyka5TXk9ifHHEOymdPked8mLH/5+qTohmLGhXVFC5zN1AoLywD0VFh6HHA7FJy4mJYviEiDeK31VUFG0laGlqKWnUXHBqmS2y3RRPFTBA8yTiz9G+e/Hp0OMcQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784639574; c=relaxed/simple; bh=roviBJb1B7iQhUITwXosnTCAe4xvx3i/dIY5PCDwenw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Hi7aCzLfyDTGxB7PQLKsEdj7ejnuoA1wpWN1mSZJkn29nuwQ/0pgq6Y+tvVlCwjJANUWs6M4lIBwCd0QMOF3hSEjfXZLxem8VODUsrt56KkV8hmDOhw190TeyD8KMZZ9Lztsy8U3umbQ+cwtU7s5eq8WX2WUG0cW40tv8BJNDJw= 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.50 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-f50.google.com with SMTP id ffacd0b85a97d-47f64ca1c2dso849099f8f.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=QmdETZ/MCRlpMkSIOjoSIdZBmttAtXz/v8LemsTu0HcZXvziHhOoSJkQd6NvGxMiJL MR2fUGJg4MS03y0w8EyqseEDbP+JHRYr7NoRhxHrl2WR21UlyV/TnE3BTT1mqtzNvIXn l+YxsInldykeoL1rwIQMJbH97S+AlNaEZWEr8YrSKYiTJKo3p8vGuImRC63wcyKHkFaJ iBPnOvqZVSsYi+1A5J7dkPMPXhtURUbA20AjL9R/Lz0nWmxgKB7oO7CfYzcKBN2e0018 qjHU1m0qBh07It6UaOfFnjcOdDFExN4a/T71WlwVMU6FR2ahC9QuKjYnBpBiRHSGgbcL 3+Zw== X-Forwarded-Encrypted: i=1; AHgh+RoGRjufiTw7/cZ4LCE+ZZGtPsaA9BVTttAL1NjWcdZyzIq5nuL6340Wh2hU9rOg02oxJZLLS+V8woKvJxQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yx9ylSNuJ+bwexyEgvx/UFAXex5f6Ma3JIXTIbYFkvvsVrSpDq7 GnekO46zQ5NInO3ecSyaKNAardQrckzN15NSOyM1vChT4kmlst8mElJTBlv7EerPlHE= X-Gm-Gg: AR+sD11cx6e+sOckm3vLbHg2Y3HNE7AHt/upzEyfVxtmdo7I4uPbosGxpDIDRXUs1Dj fdiE247DG+T8FW5IbGMVn5CnZbSfX928YQpS76Rm0KqZkE7ERhIkU/INAM7FiWnk8dKHR7neOnx UQKqtncwJTmfe1ISyhHHhvn2sSkz7X+f3laRRQuPVDuFVbv+d/maPEpbMAcHd+WusDdrAQwvW2s sl/bqqc5hFYyzc1vgsP5Zg4dDRp8K1fC1EZpfnS9M4nVzFoij1k9a129NwqKfzUxkslUSwvs/OS N3de4TfKMTqt/+vbCHikNZvMe64vMc3ovwtcrufnp6RzrR/s4f5fMLA82vILN+GfVioRTKlwWte MMaMiqhcCY5TGkUF11DrNfXInj6J8VK88O7MggoSswUqAIkKHQ4UCjYXoYuE3FZREyTErWjdOgQ == 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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__ =20 -/* - * include/linux/kmod.h - */ - -#include -#include -#include +#include #include -#include -#include -#include +#include =20 #ifdef CONFIG_MODULES /* modprobe exit status on success, -ve on error. Return value --=20 2.54.0