Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipmi: remove ->write_proc code

IPMI code theoretically allows ->write_proc users, but nobody uses this thus
far.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Alexey Dobriyan and committed by
Linus Torvalds
fa68be0d 95c0ba89

+8 -9
+4 -5
drivers/char/ipmi/ipmi_msghandler.c
··· 1941 1941 #endif /* CONFIG_PROC_FS */ 1942 1942 1943 1943 int ipmi_smi_add_proc_entry(ipmi_smi_t smi, char *name, 1944 - read_proc_t *read_proc, write_proc_t *write_proc, 1944 + read_proc_t *read_proc, 1945 1945 void *data, struct module *owner) 1946 1946 { 1947 1947 int rv = 0; ··· 1968 1968 } else { 1969 1969 file->data = data; 1970 1970 file->read_proc = read_proc; 1971 - file->write_proc = write_proc; 1972 1971 file->owner = owner; 1973 1972 1974 1973 mutex_lock(&smi->proc_entry_lock); ··· 1996 1997 1997 1998 if (rv == 0) 1998 1999 rv = ipmi_smi_add_proc_entry(smi, "stats", 1999 - stat_file_read_proc, NULL, 2000 + stat_file_read_proc, 2000 2001 smi, THIS_MODULE); 2001 2002 2002 2003 if (rv == 0) 2003 2004 rv = ipmi_smi_add_proc_entry(smi, "ipmb", 2004 - ipmb_file_read_proc, NULL, 2005 + ipmb_file_read_proc, 2005 2006 smi, THIS_MODULE); 2006 2007 2007 2008 if (rv == 0) 2008 2009 rv = ipmi_smi_add_proc_entry(smi, "version", 2009 - version_file_read_proc, NULL, 2010 + version_file_read_proc, 2010 2011 smi, THIS_MODULE); 2011 2012 #endif /* CONFIG_PROC_FS */ 2012 2013
+3 -3
drivers/char/ipmi/ipmi_si_intf.c
··· 2892 2892 } 2893 2893 2894 2894 rv = ipmi_smi_add_proc_entry(new_smi->intf, "type", 2895 - type_file_read_proc, NULL, 2895 + type_file_read_proc, 2896 2896 new_smi, THIS_MODULE); 2897 2897 if (rv) { 2898 2898 printk(KERN_ERR ··· 2902 2902 } 2903 2903 2904 2904 rv = ipmi_smi_add_proc_entry(new_smi->intf, "si_stats", 2905 - stat_file_read_proc, NULL, 2905 + stat_file_read_proc, 2906 2906 new_smi, THIS_MODULE); 2907 2907 if (rv) { 2908 2908 printk(KERN_ERR ··· 2912 2912 } 2913 2913 2914 2914 rv = ipmi_smi_add_proc_entry(new_smi->intf, "params", 2915 - param_read_proc, NULL, 2915 + param_read_proc, 2916 2916 new_smi, THIS_MODULE); 2917 2917 if (rv) { 2918 2918 printk(KERN_ERR
+1 -1
include/linux/ipmi_smi.h
··· 229 229 directory for this interface. Note that the entry will 230 230 automatically be dstroyed when the interface is destroyed. */ 231 231 int ipmi_smi_add_proc_entry(ipmi_smi_t smi, char *name, 232 - read_proc_t *read_proc, write_proc_t *write_proc, 232 + read_proc_t *read_proc, 233 233 void *data, struct module *owner); 234 234 235 235 #endif /* __LINUX_IPMI_SMI_H */