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

From: Andreas Hindborg
Date: Mon Oct 14 2024 - 05:26:34 EST


"Benno Lossin" <benno.lossin@xxxxxxxxx> writes:

> On 10.10.24 16:01, Andreas Hindborg wrote:
>> "Benno Lossin" <benno.lossin@xxxxxxxxx> 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