From nobody Sat Sep 26 01:07:15 2026 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 734403C1D64 for ; Mon, 21 Sep 2026 14:19: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=1790000349; cv=none; b=CqVw56SMqPSg5XMKnEiSr2d0szZFo+7BKkkrXmVRr+8dEUV52yDWF7InmTsxV/7gROgYqs0rnxcmvv/C6/fEkrIG9fZ1GOjXRIqH/ImiWPYENzrRrujN8GlihCpvhVNvKqWXhZJG7zl+71q+zOgXrykfd5us6TxeLHtxA5PHH48= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790000349; c=relaxed/simple; bh=Hp1aaN6m9SLOJ9Ba77XKxslIFjByDCCJrJMUB87/J7I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rxxxXaLy/Q7zvfuZCUNV4Cj85hdptulckxxdtTsfJp8oCmNQgOzg0OowQJ1dBvvLoU6G8g/IwEifB8an+MWCDF7sCrBOxzdI7VmfZSUXBA+/J1oo0+SZCAr1FUC5rMp9jHlPlXEWufC05h6jzIqKGDH/ORlrFkgRq0iSJfZmwX4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=h28rVdGL; arc=none smtp.client-ip=74.125.225.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="h28rVdGL" Received: by mail-wr2-f12.google.com with SMTP id ffacd0b85a97d-482f6351832so1546937f8f.3 for ; Mon, 21 Sep 2026 07:19:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1790000345; x=1790605145; darn=vger.kernel.org; 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=X9iJStx8k76O9mNNIa9n25MiOt6w1A7vHpXQesRkijU=; b=h28rVdGLNenqmI8RqjzxFu/RJSKbLRv+7ymn3gTJw47/ANWN+0HrOaUKmYmX7nU8Br GJKG4unSf/4uwU1vOeMkMKJ5416sM9iCusXrhaae6d4/C4r3FqoPxzE1PAMU9HmZgMhu JHn9FwGyJ1kdWyyhKheCP97wQjswxYDY18RN6NlbeJOh6N2J21EbZkZJ3jTlBFXfZFEc FTt7/EcXFY48wCNeXQxEbt2ZF1vIsjK3R77INN6YBckf7jlmApgzKNLrEBgTznc9+vYR 2KucigoDm9smNQT3TVdYgB2ul5/Tksht4XzB/pr8NfUtgAvky9tOgHbdlzsfsldJG6cH s6vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790000345; x=1790605145; 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=X9iJStx8k76O9mNNIa9n25MiOt6w1A7vHpXQesRkijU=; b=gKCKFVu+R9ePcKuAciYWcPdxcXIWkzxp3rDPFhs6PZnUPEBELEJSqGo74NW8Z6u/yO n1xtR6FCp8e3TKn38+6LlO/Yk8DuaU4tYrM/6yHCh2sUBUXPmMQ7khAoSrW+OB/WCMJM hdRb+/seH9wq/pvjIFflqm0Oa2mKJr4iRMFp6fCeSQnBN2ChZczP2lunf5tTpTcK3A9r k8ApUzjWRNCL1kCTgIG8+6Z7yZDGw5E4u5WNFTMHVxIxwxfdyI5KPdkyoHZYzbvnAT5w 8Uw4hSkImJwwUmCZqhhVPhHOZKYeMirHKG0XXC1mJIkPINjUkcnMQvqsRDPLrLUsrrW6 YCAQ== X-Forwarded-Encrypted: i=1; AKwUvBzi5YLZCrqFN1kA9FAB9kuC37HaZWgnmRGfmmH+Xwe2bNUWg6/4d5KZKweGstt3Q6ozykDVWxcVW4dG//c=@vger.kernel.org X-Gm-Message-State: AFuF++nWJa9g+zmwVKUM1kJn362UaU8nAsf48Boxei0c6nzMzEuj2ZFR 2hAHbUSXapqyXXMjeUhVdApDoKBbr0odKxFGH2G6yhsAGFog2oc947zp8sFXdKl68w4= X-Gm-Gg: AYBFou0+1oH7n3IHgCX8CMnVycsiZaPgxP4hyHlYpktSPpaXJWVOUv1bc+lxqVGAaNH Xb4hgZvHHodXtDTlqU/sZQcpH4MweLiM1OOHRRX0nQD25YCRlyIiuHW4EFK3p0IaASuH882M7vu mj0Wr4L/9pf10Vnxb8u0SCC36mWOXmQXIQ4jCaLkt6R2LrckCqMb0WZ/aHM+xIaiKFDOQDsynSt 8Hj3B7hJ69AX7AsO++Mbfi0P0+FhJ9P7niAVeEXAYP86JlCw1tgeWPQ2Pu4MPVlAuExRW28Wlpb 4V06OVEr6DqLfQc2oJ/m6Z8XadQvBnJR3zXh8I8LpTuMvZpDUByn3hKXHstpcVsFO1l2JmchHR/ ZgteaTcvRJuYy8J3fBPAfWJd4Ds0rqO7W2dvHPqvacUs23x6saN8volZ1LGyVXg6qj8w+wPI9Jw 14Z7c4HSmcwqSoNdavuqY8CA/2jdDyM5kvYWz/EDr8Sk/FiBupaZGiG4dh7NoHXDScZRb3ubQ05 BL4CWK1MB1rQqE2pWZtZuQnMB/1a7IBE+O7Iusvj4A1v6i7oPMbjcV3uiDQ6w== X-Received: by 2002:a05:6000:310c:b0:485:ae8d:1e07 with SMTP id ffacd0b85a97d-4871e37dee2mr15597411f8f.56.1790000345490; Mon, 21 Sep 2026 07:19:05 -0700 (PDT) Received: from localhost (p200300f65f19a904d4f76eed31f2ef79.dip0.t-ipconnect.de. [2003:f6:5f19:a904:d4f7:6eed:31f2:ef79]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-48724422790sm22134362f8f.5.2026.09.21.07.19.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2026 07:19:04 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: Tianrui Zhao , Bibo Mao , Huacai Chen , Nathan Chancellor , Nicolas Schier , =?utf-8?q?Uwe_Kleine-K=C3=B6nig_=28The_Capable_Hub=29?= , Geert Uytterhoeven , Takashi Sakamoto , Raag Jadav , "Martin K. Petersen" , Heiner Kallweit , Dave Hansen , Ingo Molnar , Josh Poimboeuf , Jorge Sanjuan Garcia , Jose Javier Rodriguez Barbarin , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Alexey Gladkov , Hasan Basbunar , Hugh Dickins , Armin Wolf Cc: WANG Xuerui , kvm@vger.kernel.org, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Sudeep Holla Subject: [PATCH v1 1/3] Move struct cpu_feature to Date: Mon, 21 Sep 2026 16:18:49 +0200 Message-ID: X-Mailer: git-send-email 2.56.0.rc1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=3330; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=Hp1aaN6m9SLOJ9Ba77XKxslIFjByDCCJrJMUB87/J7I=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBqsTzLZ9D4hpytjwv31lXxPvfXsBlJnDYJz+Jiq Ckg1/ZdTzmJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCarE8ywAKCRCPgPtYfRL+ Tr7BB/9RxyUkC8S2GB8h2AOL5R1cm+BhY9DSagwLwPGj7JLlQCNJn+1BpMEj/D6VFQC+nz70qG2 yPyA2QQ1bUxHWk/yXqQHc2aLOAwfVbWII5ziFW40g/6GvU6wvz8WcEyRDE31WY34MEQ7U7jcb6C lV32wGb66HTpO1a/WqGnaIiLw+93l6IkcuGzKf3aCqRjjMDVAl2id/bwVPjVAI4krEK2MsAhXb1 WpGCfUDDGDfmsMF3khnktkeHgFidAC6iBymdXOg9yODHQcbhPhE2c31y8H93SOIWisLa86oVmgb aT/QWYPEJ2u+WdNcbeKYiBJxYkR/MuOmC2K6dh+rQ1fbEPw8 X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable struct cpu_feature used to be defined in . It's much better located in . The only downside is that modpost and devicetable-offsets.h need the definition and thus must be included explicitly there. Signed-off-by: Uwe Kleine-K=C3=B6nig (The Capable Hub) Acked-by: Armin Wolf --- arch/loongarch/kvm/main.c | 2 +- include/linux/cpufeature.h | 12 +++++++++++- include/linux/mod_devicetable.h | 13 ------------- scripts/mod/devicetable-offsets.c | 1 + scripts/mod/file2alias.c | 1 + 5 files changed, 14 insertions(+), 15 deletions(-) diff --git a/arch/loongarch/kvm/main.c b/arch/loongarch/kvm/main.c index 236523d2449d..d082dae61971 100644 --- a/arch/loongarch/kvm/main.c +++ b/arch/loongarch/kvm/main.c @@ -5,7 +5,7 @@ =20 #include #include -#include +#include #include #include #include diff --git a/include/linux/cpufeature.h b/include/linux/cpufeature.h index 6aff540ee9e5..93c1da38aaf6 100644 --- a/include/linux/cpufeature.h +++ b/include/linux/cpufeature.h @@ -6,10 +6,20 @@ #ifndef __LINUX_CPUFEATURE_H #define __LINUX_CPUFEATURE_H =20 +#include + +/* + * Generic table type for matching CPU features. + * @feature: the bit number of the feature (0 - 65535) + */ + +struct cpu_feature { + __u16 feature; +}; + #ifdef CONFIG_GENERIC_CPU_AUTOPROBE =20 #include -#include #include =20 /* diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetabl= e.h index a397213bedac..9ce2429b455f 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -8,10 +8,6 @@ #ifndef LINUX_MOD_DEVICETABLE_H #define LINUX_MOD_DEVICETABLE_H =20 -#ifdef __KERNEL__ -#include -#endif - #include "device-id/acpi.h" #include "device-id/amba.h" #include "device-id/ap.h" @@ -69,13 +65,4 @@ #include "device-id/x86_cpu.h" #include "device-id/zorro.h" =20 -/* - * Generic table type for matching CPU features. - * @feature: the bit number of the feature (0 - 65535) - */ - -struct cpu_feature { - __u16 feature; -}; - #endif /* LINUX_MOD_DEVICETABLE_H */ diff --git a/scripts/mod/devicetable-offsets.c b/scripts/mod/devicetable-of= fsets.c index b4178c42d08f..b57dbbef8777 100644 --- a/scripts/mod/devicetable-offsets.c +++ b/scripts/mod/devicetable-offsets.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 #define COMPILE_OFFSETS +#include #include #include =20 diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 8d36c74dec2d..88bff3207277 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -121,6 +121,7 @@ typedef struct { /* Big exception to the "don't include kernel headers into userspace, which * even potentially has different endianness and word sizes, since * we handle those differences explicitly below */ +#include "../../include/linux/cpufeature.h" #include "../../include/linux/mod_devicetable.h" =20 struct devtable { --=20 2.56.0.rc1 From nobody Sat Sep 26 01:07:15 2026 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 A669B47F79C for ; Mon, 21 Sep 2026 14:19:08 +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=1790000350; cv=none; b=eWqPZtmObDf4H4oevp5sPV3PWIjpRiybLepZvp5/3K+B1t/gV6oE0IqfEBdTR5eTXtXmwCph2R2DrJ2VGwyHbrVuqGQzEbLQCNavzlVBI8H2H7sp6QvqjVOnQZF5z+j6ltR2A9o4/6sYdiu6/4H3FoO1eRxAFLpup3xfeowkCVY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790000350; c=relaxed/simple; bh=DdfuVrashnhPbbC2AOyCTMLd9nXt9cQdw7NV65Bugo4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YQnQ1QWGB4f/KpJ/NqBnVxh7dw8KpQ7vQYwcD7unUOGkoQq8XItRN4x2i85bMfuqGqlayfbDUj8wsk0kvznn93dPd3crwRLbfeGT9Sjd9jQLi0JD11S1iFiIwdSGnJYYsW+rUtcJC8KWEcvEEXgMnelHs+zzk1hXUI3Udk5thuI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=J6WyJqDZ; arc=none smtp.client-ip=74.125.225.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="J6WyJqDZ" Received: by mail-wr2-f12.google.com with SMTP id ffacd0b85a97d-4843796e373so1702984f8f.1 for ; Mon, 21 Sep 2026 07:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1790000347; x=1790605147; darn=vger.kernel.org; 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=SC7BywN25z+Ea3u9MVvG+0TQTnZaS++wuF5w8Mka+Xk=; b=J6WyJqDZNTOkRYxCoohxkN2K+ohtnkxnFCy+IZ/+J5zL4x3rMtLnWz2YkdTjamU5mr MN8VfLYRbIybzeE94lVt7diuEYsW8lbvHtalRNymsWHydJh7GsmU+nfE51MSx8Tp2Fz3 cmjgvi6hbNbw3zLvu4GM7Xa+h5Atyc5y3bHT4CoGVZkcwPD9U9d5n7yrYllifLECE74I 9pGgDuBOvliaASA6gAU7IK5dLzvFHq+P+1ghPrL17lBkMjfxoZl1aSjholsBvRUdBLSy 40H0GsmPMKyKCuDmpmgBdqCWQD7DLZvzH/usnFOjAvw5AIomFGKGSdvD2HBSln5xH8jz t1rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790000347; x=1790605147; 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=SC7BywN25z+Ea3u9MVvG+0TQTnZaS++wuF5w8Mka+Xk=; b=oRxcBv44MMbMyu4CIYsXA0A9LSdyreUV6g14d3Q/FtLqu7cGNU4U7k6Vlp4S0jgbS2 aFCliqCDtjE4hjiSOnjKtgVNJwu1bHQ4oM+tJodsej5caZyueuJu0088Ici4BdEqfjaa TvbaM2F7uz1hJKrmG/Ly+zKqn0AtLaBbcsPhgVKYzPPkxlPVVGRfliIB8TRiuE6H/oYc reeq1cieocNJBAMS5l9AjqwLjH2Rr1S45cIjc1gfxmulmM7yh9Te4oIyxOzV6DvulnUp tv68mIVmM7+YYRTAqF4WmdT2GcMbqa5UTfdmOSbLUezSEKccI+nfBJ0FkiimZdFky0b8 nlqw== X-Forwarded-Encrypted: i=1; AKwUvBxzYvrPUudhaTVzV8vLfjh/ewgVmHvRC8b/JO0Z8fgkhxAL6LsK7MjegzNZcWtEw1LknhlIky5kNOFYRSg=@vger.kernel.org X-Gm-Message-State: AFuF++m3hw47DIdajn5SmJNL2j1iF5G2F7vUoK2pNG676hXbcELhE+1c OKKkgBdQZH5Euhs/HfXaAQjtVPrkOJCzgxGNqFnB6WBh/uB+utmkVeO3gieSBTiVfAU= X-Gm-Gg: AYBFou1Ksb4Le2kjsR4XGJx4wP8f1i6eko6SQY707gQlwC8tgC8lW+2zpwj5q3AnEV9 p25f51jcWMNdu6s00obRXSpdaLB0b7SnBriJRfVRw4ebIDk77tAK1rGjZgqKmUprVTSmtSZTuE7 JO8uaNWbYUshZxVt3eAybA1CrhTKjN7c3YIopZE4/mjZftx4lddtVp8AkdzdgXfBK5bj+Pa0m/o eth/QiSf12Yo9+hWuS9HzzGpSwL/rvVm7+KnU/9C5064pUs9JwQ3HJ8fERrrG8MYEsEsB+r3RU6 vScbs9rF4LEApDhTXNj+4rUfxmJxtc6JFSmY1aDIxCEGDNo4otm743sWV/Yyo+7G5/USmW+8sTw OpDzBb2H9JfAfjnzxigqTVQT4ZuV1AaISTKX/EKkYHjSFw3YD/Ow9JveiO2iyNecJhfXhikMyIf MVCz4yiJ22NV1Vk+Gdq+AuxhmsplACsoG6zmm8orMAcfyb1WX4xxXC7zHNMjsGse70BCEKTHkAp Z8e0EOpLAoA/F4powqTLNsdjJ/PiWEQOYcnjTi6bTZWi9rf4LIYfMNLLMJEhUq8kZRxfuRC X-Received: by 2002:a05:6000:310c:b0:487:732:9964 with SMTP id ffacd0b85a97d-4871e220623mr15518127f8f.13.1790000346875; Mon, 21 Sep 2026 07:19:06 -0700 (PDT) Received: from localhost (p200300f65f19a904d4f76eed31f2ef79.dip0.t-ipconnect.de. [2003:f6:5f19:a904:d4f7:6eed:31f2:ef79]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-4872459a5d2sm21003708f8f.31.2026.09.21.07.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2026 07:19:06 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: Nathan Chancellor , Nicolas Schier , =?utf-8?q?Uwe_Kleine-K=C3=B6nig_=28The_Capable_Hub=29?= , Jorge Sanjuan Garcia , Jose Javier Rodriguez Barbarin , Josh Poimboeuf Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Sudeep Holla Subject: [PATCH v1 2/3] devicetable-offsets: Include the needed device-id headers instead of the catch-all Date: Mon, 21 Sep 2026 16:18:50 +0200 Message-ID: <710070be196bccc6139bd1f19a6c38d9969da3bd.1789988540.git.u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.56.0.rc1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=2879; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=DdfuVrashnhPbbC2AOyCTMLd9nXt9cQdw7NV65Bugo4=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBqsTzN8bi+GI+6jG1VeujxlSPkJmenTJsZW6Up/ trU2St5lSCJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCarE8zQAKCRCPgPtYfRL+ TjD2B/99rEyuH0Ot045DlEkC7N5QwupE5Hg0r8e5YWJREejG3GSS5hfKAqZK+SWuzFCPtjJWora JdMkq7G9FlEzQMOaHvCMhBsQ8davahEtIvsnyTAm5gUHl6CF0ES7/WAku7uqaTqWqyUe7rO3kRN tV1x0Ik7aFNAmaXv5pAzHipniGFxstNk6Jvm2jy694zY8mz5q+fv3Bnen8IN7oyAPUlekmvWjlv G7iiHi5S6Vodv2BZuvDDtwilvSMmFKNWan9n/DCgPg4LgrIFrb6h4vWzGXh9rUhizA10RCUPEBJ y7uGnrdKfDqwQXaxqXfx28JNbFkl2b7eJCKUVf5rId0lJ1iU X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable is planned to go away. Include just the needed bits in scripts/mod/devicetable-offsets.c which reduces dependencies as includes several headers not needed here. Signed-off-by: Uwe Kleine-K=C3=B6nig (The Capable Hub) Acked-by: Armin Wolf --- scripts/mod/devicetable-offsets.c | 56 ++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/scripts/mod/devicetable-offsets.c b/scripts/mod/devicetable-of= fsets.c index b57dbbef8777..1f4bbd014a3d 100644 --- a/scripts/mod/devicetable-offsets.c +++ b/scripts/mod/devicetable-offsets.c @@ -2,7 +2,61 @@ #define COMPILE_OFFSETS #include #include -#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include =20 #define DEVID(devid) DEFINE(SIZE_##devid, sizeof(struct devid)) #define DEVID_FIELD(devid, field) \ --=20 2.56.0.rc1 From nobody Sat Sep 26 01:07:15 2026 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (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 525E64A2632 for ; Mon, 21 Sep 2026 14:19:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790000352; cv=none; b=dZ8AY3f7WeSGGw3A8tm7KImn0OZGUTtj++oEpBvHny384cCxDZDmyU1neJLRtomelTgGwnOpBYDRyRu5d/ZSmE7VwOLhxDi/XzWaJ71g1OQgzl6bPrQeLdcfzDYCzJkTx8YDLOo2OOjir68MbB/D1agTBKsbm3zyZjKa+DtDn0I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790000352; c=relaxed/simple; bh=7NQB7CbqeJhBU0gwoZAcCCwGqFylrf3yNUA3KAuTKWc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=A9twLRlCtMOeYzmSLhEszSvwJzRtdyq2BfMcd3DTDEHHhTLTkw2UgI2NetnsFoNOcrLZ/a8whv+KGCnhuLwDeKQ9TWUcJB1nJ6kl2knNneJ+XQmZFKSH5eHhAp9OUnkC0WqRdxB41ZqmN7IaP6/RL1TIJiRU7ZdvxdFyoE+wClI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=SQlD9sHl; arc=none smtp.client-ip=74.125.225.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="SQlD9sHl" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49cd38e0e5dso43022945e9.2 for ; Mon, 21 Sep 2026 07:19:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1790000348; x=1790605148; darn=vger.kernel.org; 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=pGr9PNK8A3HIW2FQblW4kHC8jz59SbhsDctVzKss3rc=; b=SQlD9sHlpMF885fT5c+sjeik+QVnPKZNN65UvN+FKvqnf1UgxU0Ec0KPHIqGkWPdOF 5tjlCF0AlGkBcyf9HpZAymn2VMNJinJaRfBPJ+oOJ6Ga4CoXKLBw8BxQPqkixlZIsul+ U6Ql83zp0dSuDoIN22hdt1pgqGDtYzQ4310wQLeX0uW2R0DsTZ6OZUVL9XRfGvGlpJc4 Y7z/pcmvqUQmF73NAQUavHpQEHkJRLVTGhA82Yy1exthqGhBUfXGWiOCzdIXLh0fj8wL 0+NUqfbYU0M8MgEP7d1g6IZEcCrO0WpkzF8JaqlZU0zJW4voW3l3wqgshcF2pJl6fzJu 6eJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790000348; x=1790605148; 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=pGr9PNK8A3HIW2FQblW4kHC8jz59SbhsDctVzKss3rc=; b=HjlzeXZqSZXt6YPXEmClJzU1H7NI86jYtUnDLja8t63UHY/TkqCmpsvQnBIZx7FW7E dQi0BdWd5/fAZKgB+F0SYLlLMeqOV6O4nc8fcK8VBofE2xtuebG2EziQXhrUAIhZXsMi NfyUhu+HZvo6CQvxKizFLS4S/VN7BC0QUO6uAGMiW2Y2vgve2uT99LiLNeIkUFvm9Chr TT0AcRchRc3ApBYb+lR4lPPDO7i0l5YCeuZ2xivIXeC8i6NQkn03DowtdmwCJsyejipo EevO1wsxBkfTTWW/sulLzeIvm6zbcIEaK/h6AKhqSGUjV5tmi4+YEhMHrUULFUNxgGbu Cjrg== X-Forwarded-Encrypted: i=1; AKwUvBxceUHYNlK6ogqPN9glhld8aOj85BriwT4PVwXc9zaaZmMvUgrIj+uTiHDbGt9oHi0fDX3VvSyIh1ZIZ4s=@vger.kernel.org X-Gm-Message-State: AFuF++knElY9du4rCa9+6sEDhFoQZPxTldws2MzM1jGVKpIBgWuM3HD8 Z9yxlESTe/0Pp9FUwWUzIU1iwQgrBKQTev3/tulTRcbCZ8qeE2rigZZ82uZQd11KKNw= X-Gm-Gg: AYBFou0aKixkRHAJzNHSmxNgBYoLB4oz7X86KvrRA++vUs8PY9b/09KPNBafiyoFiiC jI4w9Kwmc9gZ1TM0S7B5RsuWEbJ53tPKM+UMYiMg8WP2NneDYI5klGV83NrsPZaDaAWfehFd/4x Wod+L/qiYTGNRUA0yjDP/qMyKl90Fuxm4cK6/5ZU3lK2Cd1hlgfY5lN/KCs2c9vcPwhVSItzQS4 EZPSIvP91Bs1UI+cGgcprihyYzw8P3DzM85Hv/OOd1qife19iD8dAJ0mIgjAWmK5WxRHOXZDXMN kzadEvxbaLMiv0K5k/6zqmVo47xC/V8mr3gQH/7RbpMCqOh4nT0XLapmsNsvrgNEDSy25n+1/wR U8lElTnErthD3/14cQlQqO1xhF+26WTEI9WQvKUS0jG5DW0uKDTMt8PqunD5nkwXMm2qygyzel6 4zH6rmoubdyXQMlrgfZoV18FZJBk0r/Ta6/BFDEM3biXiZoSVXsFUT8EcFQarmiJ4hNNJ8rAx+2 olCc/T5PkMSdIRVtP1/5lXr/ALa5sxMbBl1bFVdCkKMJ67ib3s9XLI1n1LsxQ== X-Received: by 2002:a05:600c:3493:b0:49f:bd3c:bc21 with SMTP id 5b1f17b1804b1-49fc573b55emr149417615e9.28.1790000348476; Mon, 21 Sep 2026 07:19:08 -0700 (PDT) Received: from localhost (p200300f65f19a904d4f76eed31f2ef79.dip0.t-ipconnect.de. [2003:f6:5f19:a904:d4f7:6eed:31f2:ef79]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-49fcd0f8563sm266149915e9.6.2026.09.21.07.19.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2026 07:19:07 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: Nathan Chancellor , Nicolas Schier , Alexey Gladkov , =?utf-8?q?Uwe_Kleine-K=C3=B6nig_=28The_Capable_Hub=29?= , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Armin Wolf , Hugh Dickins , Jose Javier Rodriguez Barbarin , Hasan Basbunar Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Sudeep Holla Subject: [PATCH v1 3/3] file2alias: Include the needed device-id headers instead of the catch-all Date: Mon, 21 Sep 2026 16:18:51 +0200 Message-ID: <6259139da4f8181c7b6ca01128ba7c645335850d.1789988540.git.u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.56.0.rc1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=3655; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=7NQB7CbqeJhBU0gwoZAcCCwGqFylrf3yNUA3KAuTKWc=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBqsTzPV1jgeWLSkidYVaR74w/TcNnjTpQgpxto8 AHidD6Gt/6JATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCarE8zwAKCRCPgPtYfRL+ TgL/CAC1AVwnpLLgxTrLAkF2GH4zPzt2M0FNmNlVmNzxzunjhXlffDkyWlJaD2wTrB5vItEgsTa Xll2BQ800pyZfkhqWvUbQJC9bNtEOBl1vvIgAvfWsKovISkQxHa8vgrYOogoGWqIMpd1XF/eNbm SEQ3Et68nzemxPwr47YlVQjEAzx+f1Ezo+H6goaAk742lDhIjnd8tsQ9Qz/2VV4+dRpEb6CQkI8 QgiOZ1CDDhVRD2i113b3VMh8+xa0/LRwtcHVJt62Z5ZE9l3vMMxbnmDMoHRYINwL+O1GQLk3jf/ xbGUUHXJkv1s2f2o/qMhvTnJVeboUUDvQztol5XI8slkE/ZV X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable is planned to go away. Include just the needed bits in scripts/mod/devicetable-offsets.c which reduces dependencies as includes several headers not needed here. Signed-off-by: Uwe Kleine-K=C3=B6nig (The Capable Hub) Acked-by: Armin Wolf --- scripts/mod/file2alias.c | 55 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 88bff3207277..7d76233a8d5d 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -122,7 +122,60 @@ typedef struct { * even potentially has different endianness and word sizes, since * we handle those differences explicitly below */ #include "../../include/linux/cpufeature.h" -#include "../../include/linux/mod_devicetable.h" +#include "../../include/linux/device-id/acpi.h" +#include "../../include/linux/device-id/amba.h" +#include "../../include/linux/device-id/ap.h" +#include "../../include/linux/device-id/auxiliary.h" +#include "../../include/linux/device-id/bcma.h" +#include "../../include/linux/device-id/ccw.h" +#include "../../include/linux/device-id/cdx.h" +#include "../../include/linux/device-id/coreboot.h" +#include "../../include/linux/device-id/css.h" +#include "../../include/linux/device-id/dfl.h" +#include "../../include/linux/device-id/dmi.h" +#include "../../include/linux/device-id/eisa.h" +#include "../../include/linux/device-id/fsl_mc.h" +#include "../../include/linux/device-id/hda.h" +#include "../../include/linux/device-id/hid.h" +#include "../../include/linux/device-id/hv_vmbus.h" +#include "../../include/linux/device-id/i2c.h" +#include "../../include/linux/device-id/i3c.h" +#include "../../include/linux/device-id/ieee1394.h" +#include "../../include/linux/device-id/input.h" +#include "../../include/linux/device-id/ipack.h" +#include "../../include/linux/device-id/isapnp.h" +#include "../../include/linux/device-id/ishtp.h" +#include "../../include/linux/device-id/mcb.h" +#include "../../include/linux/device-id/mdio.h" +#include "../../include/linux/device-id/mei_cl.h" +#include "../../include/linux/device-id/mhi.h" +#include "../../include/linux/device-id/mips_cdmm.h" +#include "../../include/linux/device-id/of.h" +#include "../../include/linux/device-id/parisc.h" +#include "../../include/linux/device-id/pci.h" +#include "../../include/linux/device-id/pcmcia.h" +#include "../../include/linux/device-id/platform.h" +#include "../../include/linux/device-id/pnp.h" +#include "../../include/linux/device-id/rio.h" +#include "../../include/linux/device-id/rpmsg.h" +#include "../../include/linux/device-id/sdio.h" +#include "../../include/linux/device-id/sdw.h" +#include "../../include/linux/device-id/serio.h" +#include "../../include/linux/device-id/slim.h" +#include "../../include/linux/device-id/spi.h" +#include "../../include/linux/device-id/ssam.h" +#include "../../include/linux/device-id/ssb.h" +#include "../../include/linux/device-id/tb.h" +#include "../../include/linux/device-id/tee_client.h" +#include "../../include/linux/device-id/typec.h" +#include "../../include/linux/device-id/ulpi.h" +#include "../../include/linux/device-id/usb.h" +#include "../../include/linux/device-id/vchiq.h" +#include "../../include/linux/device-id/vio.h" +#include "../../include/linux/device-id/virtio.h" +#include "../../include/linux/device-id/wmi.h" +#include "../../include/linux/device-id/x86_cpu.h" +#include "../../include/linux/device-id/zorro.h" =20 struct devtable { const char *device_id; --=20 2.56.0.rc1