Re: [PATCH v4] rust: add global lock support

Benno Lossin
2024-10-10T22:15:03Z

On 10.10.24 16:01, Andreas Hindborg wrote:
> "Benno Lossin" <benno.lossin@proton.me> writes:
>
>>
>> Also,
>>
>> error: type `__static_lock_ty_VALUE` should have an upper camel case name
>> --> rust/kernel/sync/lock/global.rs:100:18
>> |
>> 100 | type [< __static_lock_ty_ $name >] = $valuety;
>> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StaticLockTyValue`
>>
>
> How did you manage to get these errors?

I added a `global_lock!` invocation to `lib.rs`. Otherwise I also don't
get them (they might also be emitted from the examples, but I didn't
compile those).

---
Cheers,
Benno