[PATCH] fix "wrong" NS_STRUCT symbol->pos
commitb8aad4c6f9fb49949f4d144ff538d82994b92dd9
authorOleg Nesterov <oleg@tv-sign.ru>
Mon, 19 Dec 2005 18:35:58 +0000 (19 21:35 +0300)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 20 Dec 2005 17:29:32 +0000 (20 09:29 -0800)
tree7cb97555661a0ff185e4ff67f1674eee74b04755
parent8bab495ee7060d307872f0f13153422ccc543c03
[PATCH] fix "wrong" NS_STRUCT symbol->pos

NS_STRUCT symbol gets it's ->pos from alloc_symbol(), it
could be called when sparse sees struct's forward declaration.

This patch ensures that ->pos identifies position where this
struct/union is actually defined.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
parse.c