Re: Confusion about unused variable warnings during kernel build.

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

 



On Fri, Oct 31, 2008 at 07:23:04AM +0530, Manish Katiyar wrote:
> On Fri, Oct 31, 2008 at 12:42 AM, Marcin Slusarz
> <marcin.slusarz@xxxxxxxxx> wrote:
> > Check the definition of functions which "use" these variables.
> 
> I checked them and they are very much used. I can understand if they
> would have been in some #ifdef but that doesn't seem to be the case
> here.

I think the functions end up being #defined away into nothing,
in certain cases. In the first example you mentioned with
fs/lockd/svclock.c the vfs_lock_file function gets #defined as
"(-ENOLCK)" in include/linux/fs.h if CONFIG_FILE_LOCKING is not set,
so I guess that's how you configured your kernel.

Nick.
--
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