Re: Confusion about unused variable warnings during kernel build.

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

 



Hi man...

On Wed, Oct 29, 2008 at 1:21 PM, Manish Katiyar <mkatiyar@xxxxxxxxx> wrote:
> 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

My best guess so far is: probably they "seem" not being used because
they are just variable that are not really being used and end up
simply exported? or perhaps they are "aliased" (not sure if I use
correct term...it's kinda using pointer that simply points to them or
something like them).

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux