Re: Sparse context warning on 0.5.0

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

 



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