All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] gcc4 warnings, variable used uninitialized
@ 2006-02-21 12:17 Stephan Peijnik
  2006-02-21 12:42 ` Arnd Bergmann
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Stephan Peijnik @ 2006-02-21 12:17 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

Hello list!

Does anyone know exactly how gcc4 decides whether a variable is
undefined or not and how that should be handled kernel-wise?

I've come across a few snippets where for example a temporary
u32 is declared and then a pointer to that variable is given
to pci_read_config_dword. When that variable is used afterwards gcc4
complains about it being not initialized (Using gcc-4.0.2 and kernel
2.6.16-rc4 as of yesterday).

Should 'bugs' like those be fixed? I've found like a gazillion of
them in the AGP drivers and other parts of the kernel.
I'm thinking about that as it seems to be the best point to get
myself started and I would appreciate comments on that topic.

Additionally, a comment on whether my last submitted patch is okay
(kauditd_thread not returning a value) would be nice aswell. Probably
including directions on where to send that patch to.

Thanks in advance.

Regards,

Stephan Peijnik


[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-02-22  3:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-21 12:17 [KJ] gcc4 warnings, variable used uninitialized Stephan Peijnik
2006-02-21 12:42 ` Arnd Bergmann
2006-02-21 20:12 ` Stephan Peijnik
2006-02-21 20:20 ` Dave Jones
2006-02-21 23:51 ` Håkon Løvdal
2006-02-22  0:19 ` Bernd Petrovitsch
2006-02-22  3:51 ` Dave Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.