diff options
Diffstat (limited to 'drivers/base/memory.c')
-rw-r--r-- | drivers/base/memory.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/base/memory.c b/drivers/base/memory.c index 563656ad75a1..495f15e92d4c 100644 --- a/drivers/base/memory.c +++ b/drivers/base/memory.c | |||
@@ -331,7 +331,8 @@ static int block_size_init(void) | |||
331 | */ | 331 | */ |
332 | #ifdef CONFIG_ARCH_MEMORY_PROBE | 332 | #ifdef CONFIG_ARCH_MEMORY_PROBE |
333 | static ssize_t | 333 | static ssize_t |
334 | memory_probe_store(struct class *class, const char *buf, size_t count) | 334 | memory_probe_store(struct class *class, struct class_attribute *attr, |
335 | const char *buf, size_t count) | ||
335 | { | 336 | { |
336 | u64 phys_addr; | 337 | u64 phys_addr; |
337 | int nid; | 338 | int nid; |
@@ -368,7 +369,9 @@ static inline int memory_probe_init(void) | |||
368 | 369 | ||
369 | /* Soft offline a page */ | 370 | /* Soft offline a page */ |
370 | static ssize_t | 371 | static ssize_t |
371 | store_soft_offline_page(struct class *class, const char *buf, size_t count) | 372 | store_soft_offline_page(struct class *class, |
373 | struct class_attribute *attr, | ||
374 | const char *buf, size_t count) | ||
372 | { | 375 | { |
373 | int ret; | 376 | int ret; |
374 | u64 pfn; | 377 | u64 pfn; |
@@ -385,7 +388,9 @@ store_soft_offline_page(struct class *class, const char *buf, size_t count) | |||
385 | 388 | ||
386 | /* Forcibly offline a page, including killing processes. */ | 389 | /* Forcibly offline a page, including killing processes. */ |
387 | static ssize_t | 390 | static ssize_t |
388 | store_hard_offline_page(struct class *class, const char *buf, size_t count) | 391 | store_hard_offline_page(struct class *class, |
392 | struct class_attribute *attr, | ||
393 | const char *buf, size_t count) | ||
389 | { | 394 | { |
390 | int ret; | 395 | int ret; |
391 | u64 pfn; | 396 | u64 pfn; |