linux/rust/bindings
Lorenzo Stoakes 7b5ba47d84 rust: bindings: fix VM_MAYSHARE value
Commit 2b6a3f061f ("mm: declare VMA flags by bit") added a number of
overrides to the rust bindings helper as the change performed in the commit
caused rust bindgen to not be able to automatically determine values of
VMA flags.

However a typo was introduced leaving VM_MAYSHARE to be incorrectly
interpreted as VM_MAYEXEC in rust code. This patch fixes the typo.

Fixes: 2b6a3f061f ("mm: declare VMA flags by bit")
Reported-by: Chris Mason <clm@meta.com>
Closes: https://lore.kernel.org/all/20260113185142.254821-1-clm@meta.com/
Cc: stable@vger.kernel.org
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: wang lian <lianux.mm@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260113192949.689834-1-lorenzo.stoakes@oracle.com
[ Reworded to improve title and to fix typo. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2026-09-30 14:31:13 +02:00
..
bindings_helper.h rust: bindings: fix VM_MAYSHARE value 2026-09-30 14:31:13 +02:00
lib.rs rust: allow unknown_lints in generated bindings for Rust < 1.88 2026-09-08 23:29:18 +02:00