Skip to contentSkip to conversation

procfs: use C99 struct inits

PATCH New Randy.Dunlap 1 participant 1 message Feb 17, 2005 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 procfs: use C99 struct inits

Al,
Please add this to your patch queue if you don't already have it.

Use C99 struct inits as requested by sparse:
fs/proc/base.c:738:2: warning: obsolete struct initializer, use C99 syntax fs/proc/base.c:739:2: warning: obsolete struct initializer, use C99 syntax

diffstat:=

 fs/proc/base.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/proc/base.c renamed from fs/proc/base.c~proc_c99_inits +2 -2
diff -Naurp ./fs/proc/base.c~proc_c99_inits ./fs/proc/base.c
@@ -735,8 +735,8 @@ static ssize_t oom_adjust_write(struct f
 }
 
 static struct file_operations proc_oom_adjust_operations = {
-	read:		oom_adjust_read,
-	write:		oom_adjust_write,
+	.read		= oom_adjust_read,
+	.write		= oom_adjust_write,
 };
 
 static struct inode_operations proc_mem_inode_operations = {

---