lkml.org 
[lkml]   [2002]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] C99 designated initializers for arch/i386
From
Date
Art Haas <ahaas@neosoft.com> writes:

> Here's a set of patches that switch arch/i386 to use C99 named
> initiailzers. The patches are all against 2.5.42.
>
>
> --- linux-2.5.42/arch/i386/kernel/cpu/intel.c.old 2002-10-12 09:46:27.000000000 -0500
> +++ linux-2.5.42/arch/i386/kernel/cpu/intel.c 2002-10-12 09:53:20.000000000 -0500
> @@ -366,7 +366,7 @@
> static struct cpu_dev intel_cpu_dev __initdata = {
> .c_vendor = "Intel",
> .c_ident = { "GenuineIntel" },
> - c_models: {
> + .c_models = {
> { X86_VENDOR_INTEL, 4,
> {
> [0] "486 DX-25/33",
^

C99 doesn't allow not having a '=' there.

--
Falk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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