Skip to content
  • Arnd Bergmann's avatar
    drm/amdgpu: make pmu support optional, again · ec3e5c0f
    Arnd Bergmann authored
    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 d155bef0 ("amdgpu: make pmu
    support optional") but broken again by what looks like an incorrectly
    rebased patch.
    
    Fixes: 64f55e62
    
     ("drm/amdgpu: Add RAS EEPROM table.")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    ec3e5c0f