summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2026-08-05 23:28:36 +0200
committerDanilo Krummrich <dakr@kernel.org>2026-08-06 16:05:50 +0200
commitf88db65aece9f9d26287b6377b7c7730ecf9f11a (patch)
tree1662843330e73a92a3c9053a8752f5c6b921c3d6 /tools/perf/scripts/python
parent4f5f23846d6713c05481c8cfc710bb23817bf5e9 (diff)
rust: io: gate ioremap doctests on CONFIG_HAS_IOMEM
The doc examples in io.rs and devres.rs directly call bindings::ioremap() and bindings::iounmap(), which do not exist when CONFIG_HAS_IOMEM is not set. This causes build failures with CONFIG_RUST_KERNEL_DOCTESTS=y on such configurations (e.g. s390 allnoconfig). Gate the affected doctests with `#![cfg(CONFIG_HAS_IOMEM)]` so they are skipped when IOMEM is unavailable. Fixes: 3f70ebe63858 ("s390: Enable Rust support") Reviewed-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20260805212920.1996937-2-dakr@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions