aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/node.c')
-rw-r--r--drivers/base/node.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c
index 70122791683d..85c9d30d7004 100644
--- a/drivers/base/node.c
+++ b/drivers/base/node.c
@@ -544,23 +544,29 @@ static ssize_t print_nodes_state(enum node_states state, char *buf)
544 return n; 544 return n;
545} 545}
546 546
547static ssize_t print_nodes_possible(struct sysdev_class *class, char *buf) 547static ssize_t print_nodes_possible(struct sysdev_class *class,
548 struct sysdev_class_attribute *attr, char *buf)
548{ 549{
549 return print_nodes_state(N_POSSIBLE, buf); 550 return print_nodes_state(N_POSSIBLE, buf);
550} 551}
551 552
552static ssize_t print_nodes_online(struct sysdev_class *class, char *buf) 553static ssize_t print_nodes_online(struct sysdev_class *class,
554 struct sysdev_class_attribute *attr,
555 char *buf)
553{ 556{
554 return print_nodes_state(N_ONLINE, buf); 557 return print_nodes_state(N_ONLINE, buf);
555} 558}
556 559
557static ssize_t print_nodes_has_normal_memory(struct sysdev_class *class, 560static ssize_t print_nodes_has_normal_memory(struct sysdev_class *class,
558 char *buf) 561 struct sysdev_class_attribute *attr,
562 char *buf)
559{ 563{
560 return print_nodes_state(N_NORMAL_MEMORY, buf); 564 return print_nodes_state(N_NORMAL_MEMORY, buf);
561} 565}
562 566
563static ssize_t print_nodes_has_cpu(struct sysdev_class *class, char *buf) 567static ssize_t print_nodes_has_cpu(struct sysdev_class *class,
568 struct sysdev_class_attribute *attr,
569 char *buf)
564{ 570{
565 return print_nodes_state(N_CPU, buf); 571 return print_nodes_state(N_CPU, buf);
566} 572}
@@ -573,7 +579,8 @@ static SYSDEV_CLASS_ATTR(has_cpu, 0444, print_nodes_has_cpu, NULL);
573 579
574#ifdef CONFIG_HIGHMEM 580#ifdef CONFIG_HIGHMEM
575static ssize_t print_nodes_has_high_memory(struct sysdev_class *class, 581static ssize_t print_nodes_has_high_memory(struct sysdev_class *class,
576 char *buf) 582 struct sysdev_class_attribute *attr,
583 char *buf)
577{ 584{
578 return print_nodes_state(N_HIGH_MEMORY, buf); 585 return print_nodes_state(N_HIGH_MEMORY, buf);
579} 586}