s390/oprofile: fix compile error
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 25 Jun 2015 12:52:13 +0000 (14:52 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 1 Jul 2015 07:34:39 +0000 (09:34 +0200)
commita215c8fbde8600d133f122691d0f8c30de6dda02
tree696419903195208ee0b704006f1e74411a9b217c
parenta313bdc5310dd807655d3ca3eb2219cd65dfe45a
s390/oprofile: fix compile error

Fix these errors when compiling with CONFIG_OPROFILE=y and
CONFIG_PERF_EVENTS=n:
arch/s390/oprofile/init.c: In function â€˜oprofile_hwsampler_start’:
arch/s390/oprofile/init.c:93:2: error: implicit declaration of function 'perf_reserve_sampling' [-Werror=implicit-function-declaration]
  retval = perf_reserve_sampling();
  ^
arch/s390/oprofile/init.c:99:3: error: implicit declaration of function 'perf_release_sampling' [-Werror=implicit-function-declaration]
   perf_release_sampling();
   ^

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/perf_event.h
arch/s390/oprofile/init.c