aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorViresh Kumar <[email protected]>2025-05-27 05:33:26 +0000
committerRafael J. Wysocki <[email protected]>2025-05-27 13:29:17 +0000
commit15bc5c00d10fb643df7939d34438d50ffa732cb2 (patch)
treee4d86324bfd4839589e2e9bfa51b66dc9fa878e7 /rust/helpers/helpers.c
parentrust: opp: Make the doctest example depend on CONFIG_OF (diff)
downloadkernel-15bc5c00d10fb643df7939d34438d50ffa732cb2.tar.gz
kernel-15bc5c00d10fb643df7939d34438d50ffa732cb2.zip
rust: opp: Move `cfg(CONFIG_OF)` attribute to the top of doc test
Move the `#[cfg(CONFIG_OF)]` attribute to the top of the documentation test block and hide it. This applies the condition to the entire test and improves readability. Placing configuration flags like `CONFIG_OF` at the top serves as a clear indicator of the conditions under which the example is valid, effectively acting like configuration metadata for the example itself. Suggested-by: Miguel Ojeda <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Link: https://patch.msgid.link/9d93c783cc4419f16dd8942a4359d74bc0149203.1748323971.git.viresh.kumar@linaro.org Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions