diff options
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/appldata/appldata_base.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/debug.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/s390/appldata/appldata_base.c b/arch/s390/appldata/appldata_base.c index 495589950dc7..5c91995b74e4 100644 --- a/arch/s390/appldata/appldata_base.c +++ b/arch/s390/appldata/appldata_base.c | |||
@@ -551,7 +551,7 @@ static int appldata_thaw(struct device *dev) | |||
551 | return appldata_restore(dev); | 551 | return appldata_restore(dev); |
552 | } | 552 | } |
553 | 553 | ||
554 | static struct dev_pm_ops appldata_pm_ops = { | 554 | static const struct dev_pm_ops appldata_pm_ops = { |
555 | .freeze = appldata_freeze, | 555 | .freeze = appldata_freeze, |
556 | .thaw = appldata_thaw, | 556 | .thaw = appldata_thaw, |
557 | .restore = appldata_restore, | 557 | .restore = appldata_restore, |
diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c index 071c81f179ef..0168472b2fdf 100644 --- a/arch/s390/kernel/debug.c +++ b/arch/s390/kernel/debug.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/errno.h> | 18 | #include <linux/errno.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
20 | #include <linux/ctype.h> | 20 | #include <linux/ctype.h> |
21 | #include <linux/string.h> | ||
21 | #include <linux/sysctl.h> | 22 | #include <linux/sysctl.h> |
22 | #include <asm/uaccess.h> | 23 | #include <asm/uaccess.h> |
23 | #include <linux/module.h> | 24 | #include <linux/module.h> |
@@ -1178,7 +1179,7 @@ debug_get_uint(char *buf) | |||
1178 | { | 1179 | { |
1179 | int rc; | 1180 | int rc; |
1180 | 1181 | ||
1181 | for(; isspace(*buf); buf++); | 1182 | buf = skip_spaces(buf); |
1182 | rc = simple_strtoul(buf, &buf, 10); | 1183 | rc = simple_strtoul(buf, &buf, 10); |
1183 | if(*buf){ | 1184 | if(*buf){ |
1184 | rc = -EINVAL; | 1185 | rc = -EINVAL; |