diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-04 21:04:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-04 21:04:48 -0400 |
commit | 5b339915762d30b21995aa7263e74081f2f1110a (patch) | |
tree | 4e076dbd27025054b21dddd78a1cb3fef3de34d7 /arch/s390 | |
parent | 89661adaaee2f85116b399e642129ccd4dafd195 (diff) | |
parent | 823bccfc4002296ba88c3ad0f049e1abd8108d30 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6:
remove "struct subsystem" as it is no longer needed
sysfs: printk format warning
DOC: Fix wrong identifier name in Documentation/driver-model/devres.txt
platform: reorder platform_device_del
Driver core: fix show_uevent from taking up way too much stack
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/ipl.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c index 06833ac2b115..0ea048d350d8 100644 --- a/arch/s390/kernel/ipl.c +++ b/arch/s390/kernel/ipl.c | |||
@@ -164,7 +164,7 @@ EXPORT_SYMBOL_GPL(diag308); | |||
164 | /* SYSFS */ | 164 | /* SYSFS */ |
165 | 165 | ||
166 | #define DEFINE_IPL_ATTR_RO(_prefix, _name, _format, _value) \ | 166 | #define DEFINE_IPL_ATTR_RO(_prefix, _name, _format, _value) \ |
167 | static ssize_t sys_##_prefix##_##_name##_show(struct subsystem *subsys, \ | 167 | static ssize_t sys_##_prefix##_##_name##_show(struct kset *kset, \ |
168 | char *page) \ | 168 | char *page) \ |
169 | { \ | 169 | { \ |
170 | return sprintf(page, _format, _value); \ | 170 | return sprintf(page, _format, _value); \ |
@@ -173,13 +173,13 @@ static struct subsys_attribute sys_##_prefix##_##_name##_attr = \ | |||
173 | __ATTR(_name, S_IRUGO, sys_##_prefix##_##_name##_show, NULL); | 173 | __ATTR(_name, S_IRUGO, sys_##_prefix##_##_name##_show, NULL); |
174 | 174 | ||
175 | #define DEFINE_IPL_ATTR_RW(_prefix, _name, _fmt_out, _fmt_in, _value) \ | 175 | #define DEFINE_IPL_ATTR_RW(_prefix, _name, _fmt_out, _fmt_in, _value) \ |
176 | static ssize_t sys_##_prefix##_##_name##_show(struct subsystem *subsys, \ | 176 | static ssize_t sys_##_prefix##_##_name##_show(struct kset *kset, \ |
177 | char *page) \ | 177 | char *page) \ |
178 | { \ | 178 | { \ |
179 | return sprintf(page, _fmt_out, \ | 179 | return sprintf(page, _fmt_out, \ |
180 | (unsigned long long) _value); \ | 180 | (unsigned long long) _value); \ |
181 | } \ | 181 | } \ |
182 | static ssize_t sys_##_prefix##_##_name##_store(struct subsystem *subsys,\ | 182 | static ssize_t sys_##_prefix##_##_name##_store(struct kset *kset, \ |
183 | const char *buf, size_t len) \ | 183 | const char *buf, size_t len) \ |
184 | { \ | 184 | { \ |
185 | unsigned long long value; \ | 185 | unsigned long long value; \ |
@@ -194,12 +194,12 @@ static struct subsys_attribute sys_##_prefix##_##_name##_attr = \ | |||
194 | sys_##_prefix##_##_name##_store); | 194 | sys_##_prefix##_##_name##_store); |
195 | 195 | ||
196 | #define DEFINE_IPL_ATTR_STR_RW(_prefix, _name, _fmt_out, _fmt_in, _value)\ | 196 | #define DEFINE_IPL_ATTR_STR_RW(_prefix, _name, _fmt_out, _fmt_in, _value)\ |
197 | static ssize_t sys_##_prefix##_##_name##_show(struct subsystem *subsys, \ | 197 | static ssize_t sys_##_prefix##_##_name##_show(struct kset *kset, \ |
198 | char *page) \ | 198 | char *page) \ |
199 | { \ | 199 | { \ |
200 | return sprintf(page, _fmt_out, _value); \ | 200 | return sprintf(page, _fmt_out, _value); \ |
201 | } \ | 201 | } \ |
202 | static ssize_t sys_##_prefix##_##_name##_store(struct subsystem *subsys,\ | 202 | static ssize_t sys_##_prefix##_##_name##_store(struct kset *kset, \ |
203 | const char *buf, size_t len) \ | 203 | const char *buf, size_t len) \ |
204 | { \ | 204 | { \ |
205 | if (sscanf(buf, _fmt_in, _value) != 1) \ | 205 | if (sscanf(buf, _fmt_in, _value) != 1) \ |
@@ -272,14 +272,14 @@ void __init setup_ipl_info(void) | |||
272 | struct ipl_info ipl_info; | 272 | struct ipl_info ipl_info; |
273 | EXPORT_SYMBOL_GPL(ipl_info); | 273 | EXPORT_SYMBOL_GPL(ipl_info); |
274 | 274 | ||
275 | static ssize_t ipl_type_show(struct subsystem *subsys, char *page) | 275 | static ssize_t ipl_type_show(struct kset *kset, char *page) |
276 | { | 276 | { |
277 | return sprintf(page, "%s\n", ipl_type_str(ipl_info.type)); | 277 | return sprintf(page, "%s\n", ipl_type_str(ipl_info.type)); |
278 | } | 278 | } |
279 | 279 | ||
280 | static struct subsys_attribute sys_ipl_type_attr = __ATTR_RO(ipl_type); | 280 | static struct subsys_attribute sys_ipl_type_attr = __ATTR_RO(ipl_type); |
281 | 281 | ||
282 | static ssize_t sys_ipl_device_show(struct subsystem *subsys, char *page) | 282 | static ssize_t sys_ipl_device_show(struct kset *kset, char *page) |
283 | { | 283 | { |
284 | struct ipl_parameter_block *ipl = IPL_PARMBLOCK_START; | 284 | struct ipl_parameter_block *ipl = IPL_PARMBLOCK_START; |
285 | 285 | ||
@@ -371,7 +371,7 @@ static struct attribute_group ipl_fcp_attr_group = { | |||
371 | 371 | ||
372 | /* CCW ipl device attributes */ | 372 | /* CCW ipl device attributes */ |
373 | 373 | ||
374 | static ssize_t ipl_ccw_loadparm_show(struct subsystem *subsys, char *page) | 374 | static ssize_t ipl_ccw_loadparm_show(struct kset *kset, char *page) |
375 | { | 375 | { |
376 | char loadparm[LOADPARM_LEN + 1] = {}; | 376 | char loadparm[LOADPARM_LEN + 1] = {}; |
377 | 377 | ||
@@ -469,7 +469,7 @@ static void reipl_get_ascii_loadparm(char *loadparm) | |||
469 | strstrip(loadparm); | 469 | strstrip(loadparm); |
470 | } | 470 | } |
471 | 471 | ||
472 | static ssize_t reipl_ccw_loadparm_show(struct subsystem *subsys, char *page) | 472 | static ssize_t reipl_ccw_loadparm_show(struct kset *kset, char *page) |
473 | { | 473 | { |
474 | char buf[LOADPARM_LEN + 1]; | 474 | char buf[LOADPARM_LEN + 1]; |
475 | 475 | ||
@@ -477,7 +477,7 @@ static ssize_t reipl_ccw_loadparm_show(struct subsystem *subsys, char *page) | |||
477 | return sprintf(page, "%s\n", buf); | 477 | return sprintf(page, "%s\n", buf); |
478 | } | 478 | } |
479 | 479 | ||
480 | static ssize_t reipl_ccw_loadparm_store(struct subsystem *subsys, | 480 | static ssize_t reipl_ccw_loadparm_store(struct kset *kset, |
481 | const char *buf, size_t len) | 481 | const char *buf, size_t len) |
482 | { | 482 | { |
483 | int i, lp_len; | 483 | int i, lp_len; |
@@ -572,12 +572,12 @@ static int reipl_set_type(enum ipl_type type) | |||
572 | return 0; | 572 | return 0; |
573 | } | 573 | } |
574 | 574 | ||
575 | static ssize_t reipl_type_show(struct subsystem *subsys, char *page) | 575 | static ssize_t reipl_type_show(struct kset *kset, char *page) |
576 | { | 576 | { |
577 | return sprintf(page, "%s\n", ipl_type_str(reipl_type)); | 577 | return sprintf(page, "%s\n", ipl_type_str(reipl_type)); |
578 | } | 578 | } |
579 | 579 | ||
580 | static ssize_t reipl_type_store(struct subsystem *subsys, const char *buf, | 580 | static ssize_t reipl_type_store(struct kset *kset, const char *buf, |
581 | size_t len) | 581 | size_t len) |
582 | { | 582 | { |
583 | int rc = -EINVAL; | 583 | int rc = -EINVAL; |
@@ -665,12 +665,12 @@ static int dump_set_type(enum dump_type type) | |||
665 | return 0; | 665 | return 0; |
666 | } | 666 | } |
667 | 667 | ||
668 | static ssize_t dump_type_show(struct subsystem *subsys, char *page) | 668 | static ssize_t dump_type_show(struct kset *kset, char *page) |
669 | { | 669 | { |
670 | return sprintf(page, "%s\n", dump_type_str(dump_type)); | 670 | return sprintf(page, "%s\n", dump_type_str(dump_type)); |
671 | } | 671 | } |
672 | 672 | ||
673 | static ssize_t dump_type_store(struct subsystem *subsys, const char *buf, | 673 | static ssize_t dump_type_store(struct kset *kset, const char *buf, |
674 | size_t len) | 674 | size_t len) |
675 | { | 675 | { |
676 | int rc = -EINVAL; | 676 | int rc = -EINVAL; |
@@ -697,12 +697,12 @@ static decl_subsys(shutdown_actions, NULL, NULL); | |||
697 | 697 | ||
698 | /* on panic */ | 698 | /* on panic */ |
699 | 699 | ||
700 | static ssize_t on_panic_show(struct subsystem *subsys, char *page) | 700 | static ssize_t on_panic_show(struct kset *kset, char *page) |
701 | { | 701 | { |
702 | return sprintf(page, "%s\n", shutdown_action_str(on_panic_action)); | 702 | return sprintf(page, "%s\n", shutdown_action_str(on_panic_action)); |
703 | } | 703 | } |
704 | 704 | ||
705 | static ssize_t on_panic_store(struct subsystem *subsys, const char *buf, | 705 | static ssize_t on_panic_store(struct kset *kset, const char *buf, |
706 | size_t len) | 706 | size_t len) |
707 | { | 707 | { |
708 | if (strncmp(buf, SHUTDOWN_REIPL_STR, strlen(SHUTDOWN_REIPL_STR)) == 0) | 708 | if (strncmp(buf, SHUTDOWN_REIPL_STR, strlen(SHUTDOWN_REIPL_STR)) == 0) |