• Paul Mackerras's avatar
    perf_counter, powerpc, sparc: Fix compilation after perf_counter_overflow() change · cd74c86b
    Paul Mackerras authored
    Commit 5622f295 ("x86, perf_counter, bts: Optimize BTS overflow
    handling") removed the regs field from struct perf_sample_data and
    added a regs parameter to perf_counter_overflow().  This breaks the
    build on powerpc (and Sparc) as reported by Sachin Sant:
    
      arch/powerpc/kernel/perf_counter.c: In function 'record_and_restart':
      arch/powerpc/kernel/perf_counter.c:1165: error: unknown field 'regs' specified in initializer
    
    This adjusts arch/powerpc/kernel/perf_counter.c to correspond with the
    new struct perf_sample_data and perf_counter_overflow().
    
    [ v2: also fix Sparc, Markus Metzger <markus.t.metzger@intel.com> ]
    Reported-by: default avatarSachin Sant <sachinp@in.ibm.com>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    Cc: Markus Metzger <markus.t.metzger@intel.com>
    Cc: David S. Miller <davem@davemloft.net>
    Cc: benh@kernel.crashing.org
    Cc: linuxppc-dev@ozlabs.org
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    LKML-Reference: <19127.8400.376239.586120@drongo.ozlabs.ibm.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    cd74c86b
perf_counter.c 12.9 KB