Re: what's with "symbol blah was not declared"

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

 



On Thu, Aug 30, 2007 at 09:05:34PM -0700, Randy.Dunlap wrote:
> 
> e.g., linux kernel source code: init/do_mounts.c, line 23 is:
> 
> int __initdata rd_doload;
> 
> 
> and sparse (snapshot of 2007-08-31) says:
> 
> init/do_mounts.c:23:16: warning: symbol 'rd_doload' was not declared. 
> Should it be static?

IIRC this is because sparse did not see a "extern int rd_doload; in a .h file so
the symbol is most probarly not used outside do_mounts.c.
So it give a hint that this symbol could be made static.

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