[PATCH] sh64: audit return code of create_proc_read_entry() From: Christophe Lucas Signed-off-by: Christophe Lucas Signed-off-by: Alexey Dobriyan Index: linux-kj/arch/sh64/kernel/process.c =================================================================== --- linux-kj.orig/arch/sh64/kernel/process.c 2005-09-21 01:19:04.000000000 +0400 +++ linux-kj/arch/sh64/kernel/process.c 2005-09-21 01:40:08.000000000 +0400 @@ -953,7 +953,11 @@ asids_proc_info(char *buf, char **start, static int __init register_proc_asids(void) { - create_proc_read_entry("asids", 0, NULL, asids_proc_info, NULL); + struct proc_dir_entry *ent; + ent = create_proc_read_entry("asids", 0, NULL, asids_proc_info, NULL); + if (!ent) + printk(KERN_WARNING + "process.c: unable to create asids /proc entry\n"); return 0; } Index: linux-kj/arch/sh64/mm/fault.c =================================================================== --- linux-kj.orig/arch/sh64/mm/fault.c 2005-09-21 01:19:04.000000000 +0400 +++ linux-kj/arch/sh64/mm/fault.c 2005-09-21 01:40:08.000000000 +0400 @@ -592,8 +592,11 @@ tlb_proc_info(char *buf, char **start, o static int __init register_proc_tlb(void) { - create_proc_read_entry("tlb", 0, NULL, tlb_proc_info, NULL); - return 0; + struct proc_dir_entry *ent; + ent = create_proc_read_entry("tlb", 0, NULL, tlb_proc_info, NULL); + if (!ent) + printk(KERN_WARNING "fault.c: unable to create tlb /proc entry\n"); + return 0; } __initcall(register_proc_tlb); Index: linux-kj/arch/sh64/mm/ioremap.c =================================================================== --- linux-kj.orig/arch/sh64/mm/ioremap.c 2005-09-21 01:19:04.000000000 +0400 +++ linux-kj/arch/sh64/mm/ioremap.c 2005-09-21 01:40:08.000000000 +0400 @@ -461,7 +461,11 @@ ioremap_proc_info(char *buf, char **star static int __init register_proc_onchip(void) { #ifdef CONFIG_PROC_FS - create_proc_read_entry("io_map",0,0, ioremap_proc_info, &shmedia_iomap); + struct proc_dir_entry *ent; + ent = create_proc_read_entry("io_map",0,0, + ioremap_proc_info, &shmedia_iomap); + if (!ent) + printk(KERN_WARNING "ioremap.c: unable to create /proc entry\n"); #endif return 0; }