• S
    s390/oprofile: fix compile error · a215c8fb
    Sebastian Ott 提交于
    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: NSebastian Ott <sebott@linux.vnet.ibm.com>
    Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
    a215c8fb
init.c 11.8 KB