linux/rust/bindings
FUJITA Tomonori 4ebfdb2c8b rust: bindings: set HZ to CONFIG_HZ
include/uapi/asm-generic/param.h defines HZ as __USER_HZ and
include/asm-generic/param.h then sets it to CONFIG_HZ. bindgen keeps the
first definition of a macro and ignores a later #undef, so the generated
binding is __USER_HZ.

Redefine HZ in rust/bindings/lib.rs, the same way compat_ptr_ioctl is
redefined there. Nothing in the tree reads bindings::HZ today, so this
prevents accidental misuse rather than fixing a bug.

Suggested-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Link: https://msgid.link/20260924232530.446588-2-tomo@flapping.org
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
2026-09-28 17:10:45 +02:00
..
bindings_helper.h Char/Misc/IIO/etc driver update for 7.3-rc1 2026-08-25 09:38:50 -07:00
lib.rs rust: bindings: set HZ to CONFIG_HZ 2026-09-28 17:10:45 +02:00