diff options
| author | Joel Granados <joel.granados@kernel.org> | 2025-12-05 11:18:43 +0100 |
|---|---|---|
| committer | Joel Granados <joel.granados@kernel.org> | 2026-01-05 14:10:32 +0100 |
| commit | 6036dc03c39a3cb0df14899f29323b6b4b58dfe9 (patch) | |
| tree | 65c0ed45c436ae7084c2686ea2cc7a5bd07b1017 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | ac3d6a4b60ef1b26b29517d35ca28966142fc65e (diff) | |
sysctl: Add CONFIG_PROC_SYSCTL guards for converter macros
Wrap sysctl converter macros with CONFIG_PROC_SYSCTL conditional
compilation. When CONFIG_PROC_SYSCTL is disabled, provide stub
implementations that return -ENOSYS to prevent link errors while
maintaining API compatibility.
This ensures converter macros are only compiled when procfs sysctl
support is enabled in the kernel configuration.
Signed-off-by: Joel Granados <joel.granados@kernel.org>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
