Skip to contentSkip to conversation

suspicious riva/fbdev.c pointer casting

DISCUSSION David Mosberger 1 participant 1 message Feb 17, 2004

lore
Share & tools
lore
#0 lore raw

I see the following suspicious warnings when building the riva/fbdev in 2.6:

drivers/video/riva/fbdev.c:503: warning: cast to pointer from integer of differe nt size
drivers/video/riva/fbdev.c:503: warning: cast from pointer to integer of differe nt size
drivers/video/riva/fbdev.c:505: warning: cast to pointer from integer of differe nt size
drivers/video/riva/fbdev.c:505: warning: cast from pointer to integer of differe nt size

I'm pretty sure those point to real errors (the variable which is being accessed appears to sit on the stack, so it's address is guaranteed not to fit in a u32). I don't have suitable hardware to test this at the moment. Can someone else look into fixing this?

	--david