[PATCH] arm: spinlock: const qualify read-only functions.

Ian Coolidge icoolidge at google.com
Sat Oct 31 12:49:46 PDT 2015


On Sat, Oct 31, 2015 at 12:46 PM, Ian Coolidge <icoolidge at google.com> wrote:
> Hi Ard,
>
> :) D'oh, yes, I had assumed you were the same person.
>
> It is for a driver that I would eventually like to upstream.
>
> I see that there are many cases where assert_spin_lock is used, but
> perhaps driver developers are underutilizing const,
> or compiling the kernel with warnings tolerated.
>
>> Note that Ard (me) and Arnd are two different persons.
>>
>> I think your patch makes sense in itself, I just wonder if there are
>> any real examples in the current codebase that would require it. Which
>> struct is it that you are looking to constify, and in which context?
>>
>> Regards,
>> Ard.

Sorry for the top-post, and I meant 'assert_spin_locked'.



More information about the linux-arm-kernel mailing list