浏览代码

[PATCH] alpha gcc4 warnings

on UP smp_call_function() is expanded to expression.  Alpha oprofile
calls that puppy and ignores the return value.  And has -Werror for
arch/*...

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Al Viro 19 年之前
父节点
当前提交
18415e923e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      arch/alpha/oprofile/common.c

+ 3 - 3
arch/alpha/oprofile/common.c

@@ -65,7 +65,7 @@ op_axp_setup(void)
 	model->reg_setup(&reg, ctr, &sys);
 	model->reg_setup(&reg, ctr, &sys);
 
 
 	/* Configure the registers on all cpus.  */
 	/* Configure the registers on all cpus.  */
-	smp_call_function(model->cpu_setup, &reg, 0, 1);
+	(void)smp_call_function(model->cpu_setup, &reg, 0, 1);
 	model->cpu_setup(&reg);
 	model->cpu_setup(&reg);
 	return 0;
 	return 0;
 }
 }
@@ -86,7 +86,7 @@ op_axp_cpu_start(void *dummy)
 static int
 static int
 op_axp_start(void)
 op_axp_start(void)
 {
 {
-	smp_call_function(op_axp_cpu_start, NULL, 0, 1);
+	(void)smp_call_function(op_axp_cpu_start, NULL, 0, 1);
 	op_axp_cpu_start(NULL);
 	op_axp_cpu_start(NULL);
 	return 0;
 	return 0;
 }
 }
@@ -101,7 +101,7 @@ op_axp_cpu_stop(void *dummy)
 static void
 static void
 op_axp_stop(void)
 op_axp_stop(void)
 {
 {
-	smp_call_function(op_axp_cpu_stop, NULL, 0, 1);
+	(void)smp_call_function(op_axp_cpu_stop, NULL, 0, 1);
 	op_axp_cpu_stop(NULL);
 	op_axp_cpu_stop(NULL);
 }
 }