RE: Sparse context warning on 0.5.0

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

 



Chistopher,

Thanks for looking at my issue. I've been running it via the kernel make (make c=1),
So I'll figure out how to strip it out of the make and get back to you (I suspect the
Easiest way is to make --dry it and use the output).

Scott

-----Original Message-----
From: christ.li@xxxxxxxxx [mailto:christ.li@xxxxxxxxx] On Behalf Of Christopher Li
Sent: Friday, October 10, 2014 6:48 PM
To: Franco, Scott
Cc: linux-sparse@xxxxxxxxxxxxxxx
Subject: Re: Sparse context warning on 0.5.0

On Sat, Oct 11, 2014 at 1:04 AM, Franco, Scott <Scott.Franco@xxxxxxxxxxxxxxxxxx> wrote:
>
> /nfs/causers2/sfranco/projects/cnnic70xx_rearch/host/driver/src/linux/
> cavium/octeon_poll.c:130:5: warning: context imbalance in 
> 'octeon_register_poll_fn' - wrong count at exit
>
> The routine now is:
>
> static spinlock_t mylock = SPIN_LOCK_UNLOCKED;
>
> int octeon_register_poll_fn(int oct_id, octeon_poll_ops_t * ops)
>
> {
>
>     spin_lock(&mylock);
>     spin_unlock(&mylock);
>
>     return 0;
> }

I did not see any thing wrong with it (yet). Can you try to use gcc/sparse -E to proprocess the header file and make a minimal stand along test file? I can try to run it and see what happen there.

Chris
--
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