Repository navigation
kbuild: drop Kconfig and Makefile entries that point at nothing (-16) - #2366
Closed
RyanTheTide wants to merge 6 commits into
Closed
RyanTheTide wants to merge 6 commits into
RyanTheTide wants to merge 6 commits into
Conversation
Commit a03e01f ("Bluetooth: add J813 N1 native transport and encrypted connection bring-up") brought back four obj- rules while resolving a conflict: BT_HCIMT79XX_PCIE (btmtk_pcie.o) and the PCMCIA drivers BT_HCIDTL1, BT_HCIBT3C and BT_HCIBLUECARD. Upstream removed the PCMCIA drivers in 794b5e7 ("bluetooth: remove all PCMCIA drivers"). None of the four symbols is defined in any Kconfig and none of the source files exists, so the rules expand to nothing. Dropping them brings drivers/bluetooth/Makefile back in line with upstream apart from our own drivers. Signed-off-by: Ryan Murray <[email protected]>
The downstream feature block in rust/kernel/lib.rs enables pin_coerce_unsized_trait when CONFIG_RUSTC_HAS_COERCE_POINTEE is set. That symbol was removed from init/Kconfig in v7.1, so the attribute never applies on this tree. Signed-off-by: Ryan Murray <[email protected]>
DRM_KMS_DMA_HELPER no longer exists in drivers/gpu/drm/Kconfig, so the select has done nothing since the symbol was removed upstream. The driver already selects DRM_GEM_DMA_HELPER, which is what it uses. Signed-off-by: Ryan Murray <[email protected]>
drivers/gpu/drm/asahi/Kconfig defines RUST_DRM_GPUVM a second time. Upstream already defines it in drivers/gpu/drm/Kconfig (depends on DRM, selects DRM_GPUVM), and DRM_ASAHI depends on DRM=y, so the duplicate only drops the dependency. RUST_DRM_SCHED has no user: nothing tests CONFIG_RUST_DRM_SCHED and the Rust scheduler bindings are built unconditionally. It only proxies a select of DRM_SCHED, so select DRM_SCHED from DRM_ASAHI and remove it. Signed-off-by: Ryan Murray <[email protected]>
APPLE_T8140_SLEEP was kept as a transitional symbol when the option was renamed to APPLE_SOC_SLEEP in d9b438c. No code tests it and no kernel config we ship sets it (fleet, Fedora, Arch and NixOS configs); asahi.config sets CONFIG_APPLE_SOC_SLEEP=y directly. Signed-off-by: Ryan Murray <[email protected]>
The previous commit replaced RUST_DRM_SCHED with a direct select of DRM_SCHED from DRM_ASAHI. That is not equivalent: DRM_ASAHI is tristate, so with DRM_ASAHI=m the select makes DRM_SCHED=m, while the Rust scheduler bindings live in the built-in kernel crate and need DRM_SCHED=y. The fleet config shows it (diffconfig: DRM_SCHED y -> m). Restore the bool proxy and say why it exists. The duplicate RUST_DRM_GPUVM definition stays removed; the upstream one is a bool with the same select. Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
|
Blockers: 1.
The rest checks out at the head:
Nit: dropping the transitional symbol means an old .config with only Assisted-by: LLM (Claude:Opus 5.5) |
RyanTheTide
added a commit
that referenced
this pull request
Nov 25, 2026
…t point at nothing (-16) Folds #2366 into this PR unchanged. Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
|
Folded into #2464, which now carries this PR's commits unchanged (merge commit); review continues there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Our delta carries Kconfig and Makefile entries that point at nothing: Makefile rules for drivers that no longer exist, a
selectof a removed symbol, a second definition of an upstream symbol, and a transitional symbol no config sets.Change
Six commits (the last one corrects the fourth), net -16 lines, no functional change:
drivers/bluetooth/Makefile: dropBT_HCIMT79XX_PCIE,BT_HCIDTL1,BT_HCIBT3C,BT_HCIBLUECARD. They came back through a conflict resolution in a03e01f; upstream removed the PCMCIA drivers in 794b5e7.rust/kernel/lib.rs: drop thecfg_attronCONFIG_RUSTC_HAS_COERCE_POINTEE, removed from init/Kconfig in v7.1.drivers/gpu/drm/apple/Kconfig: dropselect DRM_KMS_DMA_HELPER(the symbol no longer exists).drivers/gpu/drm/asahi/Kconfig: use upstream'sRUST_DRM_GPUVMinstead of a second definition.RUST_DRM_SCHEDstays, now with a comment: it is a bool so thatDRM_SCHEDis built in for the built-in Rust kernel crate. SelectingDRM_SCHEDstraight from the tristateDRM_ASAHIturned it intomon the fleet config, which the config check caught.drivers/soc/apple/Kconfig: drop the transitionalAPPLE_T8140_SLEEP.Testing
make Image modules dtbsRC=0, 5,909 modules, modpost reports no undefined symbols, and the only warnings are ones the baseline already had in untouched files.git grepon 0abc2f3 (evidence below).olddefconfig, ARCH=arm64 LLVM=1) before and after this branch: the.configis byte-identical (sha256 8a8639a8...) and Kconfig prints the same warnings.Still to run
Nothing build-side.
Evidence per removal
git grep '^config BT_HCIMT79XX_PCIE|^config BT_HCIDTL1|^config BT_HCIBT3C|^config BT_HCIBLUECARD'returns nothing;git cat-file -efails for btmtk_pcie.c, dtl1_cs.c, bt3c_cs.c and bluecard_cs.c (absent in v7.3 too). Added by a03e01f ("Bluetooth: add J813 N1 native transport...")config RUSTC_HAS_COERCE_POINTEEis in v7.0 init/Kconfig, gone from v7.1 and from this tree. Added with 67d9c99DRM_SCHED y -> m)Not included: our
CONFIG_EDAC_APPLE_SOC=mline in upstreamdefconfig. It's redundant with asahi.config, but it keeps a defconfig build compiling the driver.