Use any previous initializer to size a symbol
commit6e71132697e13a56625bac0bc51392e8f819c6de
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 30 Mar 2014 17:13:54 +0000 (30 10:13 -0700)
committerChristopher Li <sparse@chrisli.org>
Tue, 1 Apr 2014 07:42:02 +0000 (1 00:42 -0700)
treec2cd13ce43b3b4a32fe9db6e9976bdf5157d1793
parent0f25c6a78e08fdc15af5e599d836fa24349c042f
Use any previous initializer to size a symbol

When we size a symbol, we only have one initializer per symbol, but we
may have multiple symbol declarations for the same symbol.  So make sure
to walk the "same_symbol" chain to find the initializer, rather than
assuming it is attached to the current declaration.

Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Christopher Li <sparse@chrisli.org>
symbol.c