cpufreq: Convert `/// SAFETY` lines to `# Safety` sections
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 10 Jun 2025 11:08:56 +0000 (16:38 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 10 Jun 2025 11:08:56 +0000 (16:38 +0530)
commit4823a58093c6dfa20df62b5c18da613621b9716e
tree4496dbaf4a8fb253a6fcad365ca846715a1c2f67
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
cpufreq: Convert `/// SAFETY` lines to `# Safety` sections

Replace `/// SAFETY` comments in doc comments with proper `# Safety`
sections, as per rustdoc conventions.

Also mark the C FFI callbacks as `unsafe` to correctly reflect their
safety requirements.

Reported-by: Miguel Ojeda <ojeda@kernel.org>
Closes: https://github.com/Rust-for-Linux/linux/issues/1169
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
rust/kernel/cpufreq.rs