Re: Another sparse warning...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mon, 12 Feb 2007, Christopher Li wrote:
>
> >  - it shows the *programmer* that the function is doing somethign 
> >    "strange" (not really strange, but still: it's basically a fairly 
> >    readable way that it's doing locking in a weird way).
> 
> Should the function declare in the header file has that as well?

Yes.

> When call one of those functions, it can know that function will change
> context.  That might be a way to solve the problem that some of the
> spinlock function is not a inline function at all.

I thought we did that already. I'm fairly sure I had this working at some 
point - exactly by having the calls just add up the (known) lock/unlock 
offsets.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux