Skip to content

Commit

Permalink
[S390] sparse: fix sparse ANSI-C warnings
Browse files Browse the repository at this point in the history
Fix prototype of some functions in arch/s390/oprofile to avoid non-ANSI
warnings from sparse.

Signed-off-by: Martin Schwidefsky <[email protected]>
  • Loading branch information
Martin Schwidefsky committed Oct 30, 2011
1 parent c4736d9 commit e54aafa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/s390/oprofile/hwsampler.c
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ int hwsampler_allocate(unsigned long sdbt, unsigned long sdb)
*
* Returns 0 on success, !0 on failure.
*/
int hwsampler_deallocate()
int hwsampler_deallocate(void)
{
int rc;

Expand Down Expand Up @@ -1035,7 +1035,7 @@ unsigned long hwsampler_get_sample_overflow_count(unsigned int cpu)
return cb->sample_overflow;
}

int hwsampler_setup()
int hwsampler_setup(void)
{
int rc;
int cpu;
Expand Down Expand Up @@ -1102,7 +1102,7 @@ int hwsampler_setup()
return rc;
}

int hwsampler_shutdown()
int hwsampler_shutdown(void)
{
int rc;

Expand Down Expand Up @@ -1203,7 +1203,7 @@ int hwsampler_start_all(unsigned long rate)
*
* Returns 0 on success, !0 on failure.
*/
int hwsampler_stop_all()
int hwsampler_stop_all(void)
{
int tmp_rc, rc, cpu;
struct hws_cpu_buffer *cb;
Expand Down

0 comments on commit e54aafa

Please sign in to comment.