• Jan Glauber's avatar
    [S390] s390,oprofile: fix compile error for !CONFIG_SMP · 43a679d6
    Jan Glauber authored
    Use ctl_set_bit instead of the smp_ctl_set_bit (likewise for clear bit)
    to prevent the following build error for !CONFIG_SMP:
    
      CC      arch/s390/oprofile/hwsampler.o
    arch/s390/oprofile/hwsampler.c: In function ‘hwsampler_deallocate’:
    arch/s390/oprofile/hwsampler.c:1012: error: implicit declaration of function ‘smp_ctl_clear_bit’
    arch/s390/oprofile/hwsampler.c: In function ‘hwsampler_start_all’:
    arch/s390/oprofile/hwsampler.c:1201: error: implicit declaration of function ‘smp_ctl_set_bit’
      CC      kernel/seccomp.o
    make[1]: *** [arch/s390/oprofile/hwsampler.o] Error 1
    make: *** [arch/s390/oprofile] Error 2
    Signed-off-by: default avatarJan Glauber <jang@linux.vnet.ibm.com>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    43a679d6
hwsampler.c 24.8 KB