[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-sparse
Subject:    Re: what's with "symbol blah was not declared"
From:       Sam Ravnborg <sam () ravnborg ! org>
Date:       2007-08-31 4:16:27
Message-ID: 20070831041627.GA22695 () uranus ! ravnborg ! org
[Download RAW message or body]

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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic