[lkml]   [2003]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: PCI Express support for 2.4 kernel
Richard B. Johnson wrote:
<discussion regarding initializers for static vars>

Let's stop this discussion, it leads to nowhere. Probable, yes,
initializer do add bytes to the data segment. But it does not make
difference for memory image after loading, do it?

Does this difference in executable size worth potential risk of error?

Anyway, common style in kernel seems to be to do initialize static vars,
even to 0. There are plenty of examples, including the same file, (for

static int pci_using_acpi_prt = 0;


static int tsc_disable __initdata = 0;

Finally, let's stop this thread. Let it be up to person who will be (if
it will happen) checking this code into kernel, to decide on coding
style. I, personally, value code clarity more then 4 bytes in executable
size. But I will not object if more experienced kernel maintainers have
another priority.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:59    [W:0.068 / U:3.824 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site