Confusion about unused variable warnings during kernel build.

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

 



Hi,

Occasionally during kernel builds I get some unused variable warnings.
But when I go and check the code the variable is getting used.
Interestingly I have seen this problem only with the file symbols
exported from fs/locks.c. An example of such errors is

fs/lockd/svclock.c:719: warning: unused variable 'file'
fs/nfsd/nfsxdr.c:154: warning: unused variable 'dentry'
fs/nfsd/nfs4state.c:1626: warning: unused variable 'flp'

Is there some problem with the way symbols are exported ?? Out of the
above 3, 2 of them are exported as EXPORT_SYMBOL_GPL and one of them
as EXPORT_SYMBOL

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

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux