From 4642f2035f550605baadb4edf277b98cae96cbb3 Mon Sep 17 00:00:00 2001 From: LingMan <18294-LingMan@users.noreply.gitlab.freedesktop.org> Date: Wed, 14 May 2025 10:26:10 +0200 Subject: [PATCH] entaviv/isa: Silence warnings about non snake case names These are benign style warnings. The code is generated by bindgen and it's a bug there that these names get generated at all. Silences these warnings since we can't do anything about them: ``` warning: method `use__raw` should have a snake case name --> src/etnaviv/isa/isa_bindings.rs:358:19 | 358 | pub unsafe fn use__raw(this: *const Self) -> ::std::os::raw::c_uint { | ^^^^^^^^ help: convert the identifier to snake case: `use_raw` | = note: `#[warn(non_snake_case)]` on by default warning: method `use__raw` should have a snake case name --> src/etnaviv/isa/isa_bindings.rs:1023:19 | 1023 | pub unsafe fn use__raw(this: *const Self) -> ::std::os::raw::c_uint { | ^^^^^^^^ help: convert the identifier to snake case: `use_raw` ``` Fixes: 15a784689e6 ("etnaviv: isa: Generate Rust FFI bindings for asm.h") Reviewed-by: Christian Gmeiner Part-of: (cherry picked from commit 040ef8f5c9e9d887628135b2eb9828e705e4f76c) --- .pick_status.json | 2 +- src/etnaviv/isa/meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index f5cacea5bfd..47432d86295 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2634,7 +2634,7 @@ "description": "entaviv/isa: Silence warnings about non snake case names", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "15a784689e648e3ca68f58c5faf20ec936e56e72", "notes": null diff --git a/src/etnaviv/isa/meson.build b/src/etnaviv/isa/meson.build index 1a687e005d1..63b7979d297 100644 --- a/src/etnaviv/isa/meson.build +++ b/src/etnaviv/isa/meson.build @@ -118,6 +118,7 @@ if with_tools.contains('etnaviv') rust_abi : 'rust', rust_args: [ '-Anon_camel_case_types', + '-Anon_snake_case', ], )