lkml.org 
[lkml]   [2005]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>

diffstat:=
fs/proc/base.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -Naurp ./fs/proc/base.c~proc_c99_inits ./fs/proc/base.c
--- ./fs/proc/base.c~proc_c99_inits 2005-02-15 13:48:46.310312808 -0800
+++ ./fs/proc/base.c 2005-02-15 20:34:41.335786152 -0800
@@ -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 = {

---
-
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 14:10    [W:0.029 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site