提交 e54aafa0 编写于 作者: M Martin Schwidefsky

[S390] sparse: fix sparse ANSI-C warnings

Fix prototype of some functions in arch/s390/oprofile to avoid non-ANSI
warnings from sparse.
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 c4736d96
...@@ -994,7 +994,7 @@ int hwsampler_allocate(unsigned long sdbt, unsigned long sdb) ...@@ -994,7 +994,7 @@ int hwsampler_allocate(unsigned long sdbt, unsigned long sdb)
* *
* Returns 0 on success, !0 on failure. * Returns 0 on success, !0 on failure.
*/ */
int hwsampler_deallocate() int hwsampler_deallocate(void)
{ {
int rc; int rc;
...@@ -1035,7 +1035,7 @@ unsigned long hwsampler_get_sample_overflow_count(unsigned int cpu) ...@@ -1035,7 +1035,7 @@ unsigned long hwsampler_get_sample_overflow_count(unsigned int cpu)
return cb->sample_overflow; return cb->sample_overflow;
} }
int hwsampler_setup() int hwsampler_setup(void)
{ {
int rc; int rc;
int cpu; int cpu;
...@@ -1102,7 +1102,7 @@ int hwsampler_setup() ...@@ -1102,7 +1102,7 @@ int hwsampler_setup()
return rc; return rc;
} }
int hwsampler_shutdown() int hwsampler_shutdown(void)
{ {
int rc; int rc;
...@@ -1203,7 +1203,7 @@ int hwsampler_start_all(unsigned long rate) ...@@ -1203,7 +1203,7 @@ int hwsampler_start_all(unsigned long rate)
* *
* Returns 0 on success, !0 on failure. * Returns 0 on success, !0 on failure.
*/ */
int hwsampler_stop_all() int hwsampler_stop_all(void)
{ {
int tmp_rc, rc, cpu; int tmp_rc, rc, cpu;
struct hws_cpu_buffer *cb; struct hws_cpu_buffer *cb;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册