summaryrefslogtreecommitdiff
path: root/include/linux/ipmi_smi.h
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2017-09-16 15:51:25 -0500
committerCorey Minyard <cminyard@mvista.com>2017-09-28 12:26:03 -0500
commit55f91cb6f1dfc873359674f35a8ffb1e78429d22 (patch)
treebda2bbbd36d9c053746d1739262ca1c991b8762d /include/linux/ipmi_smi.h
parentac2673d56be609168c3f0792588c1f9ef5824041 (diff)
downloadlwn-55f91cb6f1dfc873359674f35a8ffb1e78429d22.tar.gz
lwn-55f91cb6f1dfc873359674f35a8ffb1e78429d22.zip
ipmi: Make the IPMI proc interface configurable
So we can remove it later. Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'include/linux/ipmi_smi.h')
-rw-r--r--include/linux/ipmi_smi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ipmi_smi.h b/include/linux/ipmi_smi.h
index 97771e36b7f0..5be51281e14d 100644
--- a/include/linux/ipmi_smi.h
+++ b/include/linux/ipmi_smi.h
@@ -241,11 +241,13 @@ static inline void ipmi_free_smi_msg(struct ipmi_smi_msg *msg)
msg->done(msg);
}
+#ifdef CONFIG_IPMI_PROC_INTERFACE
/* Allow the lower layer to add things to the proc filesystem
directory for this interface. Note that the entry will
automatically be dstroyed when the interface is destroyed. */
int ipmi_smi_add_proc_entry(ipmi_smi_t smi, char *name,
const struct file_operations *proc_ops,
void *data);
+#endif
#endif /* __LINUX_IPMI_SMI_H */