diff options
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_msghandler.c | 12 | ||||
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 26 | ||||
-rw-r--r-- | drivers/char/ipmi/ipmi_ssif.c | 4 |
3 files changed, 26 insertions, 16 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index d5a2bd7230b2..9bb592872532 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c | |||
@@ -1998,7 +1998,9 @@ static int smi_ipmb_proc_show(struct seq_file *m, void *v) | |||
1998 | seq_printf(m, "%x", intf->channels[0].address); | 1998 | seq_printf(m, "%x", intf->channels[0].address); |
1999 | for (i = 1; i < IPMI_MAX_CHANNELS; i++) | 1999 | for (i = 1; i < IPMI_MAX_CHANNELS; i++) |
2000 | seq_printf(m, " %x", intf->channels[i].address); | 2000 | seq_printf(m, " %x", intf->channels[i].address); |
2001 | return seq_putc(m, '\n'); | 2001 | seq_putc(m, '\n'); |
2002 | |||
2003 | return seq_has_overflowed(m); | ||
2002 | } | 2004 | } |
2003 | 2005 | ||
2004 | static int smi_ipmb_proc_open(struct inode *inode, struct file *file) | 2006 | static int smi_ipmb_proc_open(struct inode *inode, struct file *file) |
@@ -2017,9 +2019,11 @@ static int smi_version_proc_show(struct seq_file *m, void *v) | |||
2017 | { | 2019 | { |
2018 | ipmi_smi_t intf = m->private; | 2020 | ipmi_smi_t intf = m->private; |
2019 | 2021 | ||
2020 | return seq_printf(m, "%u.%u\n", | 2022 | seq_printf(m, "%u.%u\n", |
2021 | ipmi_version_major(&intf->bmc->id), | 2023 | ipmi_version_major(&intf->bmc->id), |
2022 | ipmi_version_minor(&intf->bmc->id)); | 2024 | ipmi_version_minor(&intf->bmc->id)); |
2025 | |||
2026 | return seq_has_overflowed(m); | ||
2023 | } | 2027 | } |
2024 | 2028 | ||
2025 | static int smi_version_proc_open(struct inode *inode, struct file *file) | 2029 | static int smi_version_proc_open(struct inode *inode, struct file *file) |
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index fd6110f9589d..321ecb26df6a 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -2979,7 +2979,9 @@ static int smi_type_proc_show(struct seq_file *m, void *v) | |||
2979 | { | 2979 | { |
2980 | struct smi_info *smi = m->private; | 2980 | struct smi_info *smi = m->private; |
2981 | 2981 | ||
2982 | return seq_printf(m, "%s\n", si_to_str[smi->si_type]); | 2982 | seq_printf(m, "%s\n", si_to_str[smi->si_type]); |
2983 | |||
2984 | return seq_has_overflowed(m); | ||
2983 | } | 2985 | } |
2984 | 2986 | ||
2985 | static int smi_type_proc_open(struct inode *inode, struct file *file) | 2987 | static int smi_type_proc_open(struct inode *inode, struct file *file) |
@@ -3041,16 +3043,18 @@ static int smi_params_proc_show(struct seq_file *m, void *v) | |||
3041 | { | 3043 | { |
3042 | struct smi_info *smi = m->private; | 3044 | struct smi_info *smi = m->private; |
3043 | 3045 | ||
3044 | return seq_printf(m, | 3046 | seq_printf(m, |
3045 | "%s,%s,0x%lx,rsp=%d,rsi=%d,rsh=%d,irq=%d,ipmb=%d\n", | 3047 | "%s,%s,0x%lx,rsp=%d,rsi=%d,rsh=%d,irq=%d,ipmb=%d\n", |
3046 | si_to_str[smi->si_type], | 3048 | si_to_str[smi->si_type], |
3047 | addr_space_to_str[smi->io.addr_type], | 3049 | addr_space_to_str[smi->io.addr_type], |
3048 | smi->io.addr_data, | 3050 | smi->io.addr_data, |
3049 | smi->io.regspacing, | 3051 | smi->io.regspacing, |
3050 | smi->io.regsize, | 3052 | smi->io.regsize, |
3051 | smi->io.regshift, | 3053 | smi->io.regshift, |
3052 | smi->irq, | 3054 | smi->irq, |
3053 | smi->slave_addr); | 3055 | smi->slave_addr); |
3056 | |||
3057 | return seq_has_overflowed(m); | ||
3054 | } | 3058 | } |
3055 | 3059 | ||
3056 | static int smi_params_proc_open(struct inode *inode, struct file *file) | 3060 | static int smi_params_proc_open(struct inode *inode, struct file *file) |
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c index 74128e6ec77a..f6e378dac5f5 100644 --- a/drivers/char/ipmi/ipmi_ssif.c +++ b/drivers/char/ipmi/ipmi_ssif.c | |||
@@ -1196,7 +1196,9 @@ static int ssif_detect(struct i2c_client *client, struct i2c_board_info *info) | |||
1196 | 1196 | ||
1197 | static int smi_type_proc_show(struct seq_file *m, void *v) | 1197 | static int smi_type_proc_show(struct seq_file *m, void *v) |
1198 | { | 1198 | { |
1199 | return seq_puts(m, "ssif\n"); | 1199 | seq_puts(m, "ssif\n"); |
1200 | |||
1201 | return seq_has_overflowed(m); | ||
1200 | } | 1202 | } |
1201 | 1203 | ||
1202 | static int smi_type_proc_open(struct inode *inode, struct file *file) | 1204 | static int smi_type_proc_open(struct inode *inode, struct file *file) |