diff options
| author | Arnd Bergmann <[email protected]> | 2019-10-02 12:01:22 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-10-03 14:11:06 +0000 |
| commit | 128a01f4724ae72f8916ad20856dda152e9cd012 (patch) | |
| tree | a723387d40c74512edc4029e2494e2fec4c80503 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | drm/amd/display: memory leak (diff) | |
| download | kernel-128a01f4724ae72f8916ad20856dda152e9cd012.tar.gz kernel-128a01f4724ae72f8916ad20856dda152e9cd012.zip | |
drm/amdgpu: make pmu support optional, again
When CONFIG_PERF_EVENTS is disabled, we cannot compile the pmu
portion of the amdgpu driver:
drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:48:38: error: no member named 'hw' in 'struct perf_event'
struct hw_perf_event *hwc = &event->hw;
~~~~~ ^
drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:51:13: error: no member named 'attr' in 'struct perf_event'
if (event->attr.type != event->pmu->type)
~~~~~ ^
...
The same bug was already fixed by commit d155bef0636e ("amdgpu: make pmu
support optional") but broken again by what looks like an incorrectly
rebased patch.
Fixes: 64f55e629237 ("drm/amdgpu: Add RAS EEPROM table.")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
