Repository navigation
rust: helpers: build the iio_trigger_get() helper only with IIO triggers - #1073
Merged
RyanTheTide merged 1 commit intoNov 7, 2026
Conversation
iio_trigger_get() is declared only under CONFIG_IIO_TRIGGER, but the helper is built whenever CONFIG_IIO is, so a kernel with IIO and without triggers, such as one without IIO_AOP_SENSOR_MOTION, fails to build: rust/helpers/iio.c:7:16: error: implicit declaration of function 'iio_trigger_get' Build the helper only when the function exists. Its one user, aop_motion, selects IIO_TRIGGERED_BUFFER and with it IIO_TRIGGER. Fixes: bac6f37 ("iio: aop_motion: give each sensor its own trigger") Signed-off-by: Jonathan Goyvaerts <[email protected]> Assisted-by: LLM
RyanTheTide
approved these changes
Nov 7, 2026
RyanTheTide
left a comment
Contributor
There was a problem hiding this comment.
Merge-train review (MTR-J, 11-07): approved, merging.
The #ifdef CONFIG_IIO_TRIGGER guard is right: iio_trigger_get() only exists with triggers, and aop_motion, the helper's only user, selects IIO_TRIGGERED_BUFFER -> IIO_TRIGGER.
Gates, run on integration/aurora b8ae494f (= fleet19) with linux PRs 1073-1076 merged locally (tree cc6fe2d0):
- Build: buildbox, fleet recipe (Fedora asahi base + asahi.config, LLVM=1). 5890 modules. The build warnings are identical to the fleet baseline, 0 new.
- W=1:
rust/helpers/helpers.ohas 0 warnings. - Host tests:
run-host-tests.py193/193, apple-dcp selftests 86/86 (both = fleet19). - Boot: one-shot on the J616s. Err 0, 0 AVC (Enforcing), 0 failed units.
- Integration since then: it moved to
98f6184c(ANE, JPEG, brcmfmac, pmgr, tas2764), none of which touches this file. The merge is clean.
RyanTheTide
merged commit Nov 7, 2026
9e0f5ac
into
aurora-silicon:integration/aurora
3 checks passed
RyanTheTide
added a commit
that referenced
this pull request
Nov 7, 2026
Brings aurora-wip up to the tested release branch: CTXR execmem (#985, #1079), KFIX speaker sleep and resume fixes (#1077, #1080), JPEG v2 (#1072), Jonathan's G17 and USB work (#1073-#1076), brcmfmac flowring count (#1081), ANE H16 startup restart (#1066) and the Touch ID per-prompt match (#904). Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
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.
bac6f373c5c9("iio: aop_motion: give each sensor its own trigger") addedrust/helpers/iio.c, which wrapsiio_trigger_get(). That inline exists only underCONFIG_IIO_TRIGGER, but the helper is built wheneverCONFIG_IIOis. A config with IIO and without triggers, for example one that doesn't buildIIO_AOP_SENSOR_MOTION, stops inmake prepare:This builds the helper only when the function exists. Its one user, aop_motion, selects
IIO_TRIGGERED_BUFFER, and with itIIO_TRIGGER, so nothing changes for it.Testing
57222e0ee261. With this commit,Image,modulesanddtbsbuild: 1,056 modules, no new warnings.068dfce19780, which has the same helper.🤖 Generated with Claude Code