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

Andreas Hindborg
2024-10-14T09:26:06Z

"Benno Lossin" <benno.lossin@proton.me> writes:

> 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).

I build the examples for kunit, but I did not get any warnings.
Interesting.

BR Andreas