Re: [PATCH fixes v2] MIPS: perf: Fix build with CONFIG_CPU_BMIPS5000 enabled

Paul Burton <[email protected]> Thu, 9 May 2019 23:52:48 +0000
Newsgroups gmane.linux.kernel,gmane.linux.ports.mips.general,gmane.linux.ports.mips,gmane.linux.ports.mips
Message-ID <CY4PR2201MB1272133F3A938CA88D7099EDC1330@CY4PR2201MB1272.namprd22.prod.outlook.com>
Hello,

Florian Fainelli wrote:
> arch/mips/kernel/perf_event_mipsxx.c: In function 'mipsxx_pmu_enable_event':
> arch/mips/kernel/perf_event_mipsxx.c:326:21: error: unused variable 'event' [-Werror=unused-variable]
> struct perf_event *event = container_of(evt, struct perf_event, hw);
> ^~~~~
> 
> Fix this by making use of IS_ENABLED() to simplify the code and avoid
> unnecessary ifdefery.
> 
> Fixes: 84002c88599d ("MIPS: perf: Fix perf with MT counting other threads")
> Signed-off-by: Florian Fainelli <[email protected]>

Applied to mips-next.

Thanks,
    Paul

[ This message was auto-generated; if you believe anything is incorrect
  then please email [email protected] to report it. ]