public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] C99 designated initializers for arch/i386
@ 2002-10-12 19:21 Art Haas
  2002-10-12 20:59 ` Falk Hueffner
  0 siblings, 1 reply; 2+ messages in thread
From: Art Haas @ 2002-10-12 19:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds

Hi.

Here's a set of patches that switch arch/i386 to use C99 named
initiailzers. The patches are all against 2.5.42.

Art Haas


--- 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", 
--- linux-2.5.42/arch/i386/kernel/cpu/rise.c.old	2002-08-27 19:10:37.000000000 -0500
+++ linux-2.5.42/arch/i386/kernel/cpu/rise.c	2002-10-12 09:53:20.000000000 -0500
@@ -31,7 +31,7 @@
 static struct cpu_dev rise_cpu_dev __initdata = {
 	.c_vendor	= "Rise",
 	.c_ident	= { "RiseRiseRise" },
-	c_models: {
+	.c_models = {
 		{ X86_VENDOR_RISE,	5,
 		  { 
 			  [0] "iDragon", 
--- linux-2.5.42/arch/i386/kernel/cpu/umc.c.old	2002-08-27 19:10:37.000000000 -0500
+++ linux-2.5.42/arch/i386/kernel/cpu/umc.c	2002-10-12 09:53:20.000000000 -0500
@@ -13,7 +13,7 @@
 static struct cpu_dev umc_cpu_dev __initdata = {
 	.c_vendor	= "UMC",
 	.c_ident 	= { "UMC UMC UMC" },
-	c_models: {
+	.c_models = {
 		{ X86_VENDOR_UMC,	4,
 		  { 
 			  [1] "U5D", 
--- linux-2.5.42/arch/i386/kernel/cpu/nexgen.c.old	2002-08-27 19:10:37.000000000 -0500
+++ linux-2.5.42/arch/i386/kernel/cpu/nexgen.c	2002-10-12 09:53:20.000000000 -0500
@@ -44,7 +44,7 @@
 static struct cpu_dev nexgen_cpu_dev __initdata = {
 	.c_vendor	= "Nexgen",
 	.c_ident	= { "NexGenDriven" },
-	c_models: {
+	.c_models = {
 		{ X86_VENDOR_NEXGEN,5, { [1] "Nx586" } },
 	},
 	.c_init		= init_nexgen,
--- linux-2.5.42/arch/i386/kernel/cpu/amd.c.old	2002-10-12 09:46:27.000000000 -0500
+++ linux-2.5.42/arch/i386/kernel/cpu/amd.c	2002-10-12 09:53:20.000000000 -0500
@@ -173,7 +173,7 @@
 static struct cpu_dev amd_cpu_dev __initdata = {
 	.c_vendor	= "AMD",
 	.c_ident 	= { "AuthenticAMD" },
-	c_models: {
+	.c_models = {
 		{ X86_VENDOR_AMD,	4,
 		  {
 			  [3] "486 DX/2",
--- linux-2.5.41/arch/i386/kernel/time.c.old	2002-10-01 11:45:31.000000000 -0500
+++ linux-2.5.41/arch/i386/kernel/time.c	2002-10-07 15:54:48.000000000 -0500
@@ -645,7 +645,7 @@
 }
 
 static struct notifier_block time_cpufreq_notifier_block = {
-	notifier_call:	time_cpufreq_notifier
+	.notifier_call	= time_cpufreq_notifier
 };
 #endif
 
--- linux-2.5.42/arch/i386/kernel/timers/timer_tsc.c.old	2002-10-12 09:46:27.000000000 -0500
+++ linux-2.5.42/arch/i386/kernel/timers/timer_tsc.c	2002-10-12 09:53:20.000000000 -0500
@@ -205,7 +205,7 @@
 }
 
 static struct notifier_block time_cpufreq_notifier_block = {
-	notifier_call:	time_cpufreq_notifier
+	.notifier_call	= time_cpufreq_notifier
 };
 #endif
 
--- linux-2.5.42/arch/i386/pci/numa.c.old	2002-08-31 21:57:11.000000000 -0500
+++ linux-2.5.42/arch/i386/pci/numa.c	2002-10-12 09:53:17.000000000 -0500
@@ -84,8 +84,8 @@
 }
 
 static struct pci_ops pci_direct_conf1_mq = {
-	read:	pci_conf1_mq_read,
-	write:	pci_conf1_mq_write
+	.read	= pci_conf1_mq_read,
+	.write	= pci_conf1_mq_write
 };
 
 
-- 
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759

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

end of thread, other threads:[~2002-10-12 20:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-12 19:21 [PATCH] C99 designated initializers for arch/i386 Art Haas
2002-10-12 20:59 ` Falk Hueffner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox