diff options
Diffstat (limited to 'arch/powerpc/platforms/pseries/cmm.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/cmm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/pseries/cmm.c b/arch/powerpc/platforms/pseries/cmm.c index c6b3be03168b..38fe32a7cc70 100644 --- a/arch/powerpc/platforms/pseries/cmm.c +++ b/arch/powerpc/platforms/pseries/cmm.c | |||
@@ -289,7 +289,9 @@ static int cmm_thread(void *dummy) | |||
289 | } | 289 | } |
290 | 290 | ||
291 | #define CMM_SHOW(name, format, args...) \ | 291 | #define CMM_SHOW(name, format, args...) \ |
292 | static ssize_t show_##name(struct sys_device *dev, char *buf) \ | 292 | static ssize_t show_##name(struct sys_device *dev, \ |
293 | struct sysdev_attribute *attr, \ | ||
294 | char *buf) \ | ||
293 | { \ | 295 | { \ |
294 | return sprintf(buf, format, ##args); \ | 296 | return sprintf(buf, format, ##args); \ |
295 | } \ | 297 | } \ |
@@ -298,12 +300,14 @@ static int cmm_thread(void *dummy) | |||
298 | CMM_SHOW(loaned_kb, "%lu\n", PAGES2KB(loaned_pages)); | 300 | CMM_SHOW(loaned_kb, "%lu\n", PAGES2KB(loaned_pages)); |
299 | CMM_SHOW(loaned_target_kb, "%lu\n", PAGES2KB(loaned_pages_target)); | 301 | CMM_SHOW(loaned_target_kb, "%lu\n", PAGES2KB(loaned_pages_target)); |
300 | 302 | ||
301 | static ssize_t show_oom_pages(struct sys_device *dev, char *buf) | 303 | static ssize_t show_oom_pages(struct sys_device *dev, |
304 | struct sysdev_attribute *attr, char *buf) | ||
302 | { | 305 | { |
303 | return sprintf(buf, "%lu\n", PAGES2KB(oom_freed_pages)); | 306 | return sprintf(buf, "%lu\n", PAGES2KB(oom_freed_pages)); |
304 | } | 307 | } |
305 | 308 | ||
306 | static ssize_t store_oom_pages(struct sys_device *dev, | 309 | static ssize_t store_oom_pages(struct sys_device *dev, |
310 | struct sysdev_attribute *attr, | ||
307 | const char *buf, size_t count) | 311 | const char *buf, size_t count) |
308 | { | 312 | { |
309 | unsigned long val = simple_strtoul (buf, NULL, 10); | 313 | unsigned long val = simple_strtoul (buf, NULL, 10); |