The ivpu struct drm_driver has conditional initialization based on #ifdef DRIVER_DATE, which is never defined anywhere. Neither are the macros referenced within the block: DRIVER_DATE, DRIVER_MAJOR, DRIVER_MINOR, and DRIVER_PATCHLEVEL. With the struct drm_driver date member going away anyway, just remove the conditional compilation.
Unified · Split
| @@ -458,15 +458,8 @@ static const struct drm_driver driver = { · 457 unmodified lines | ||
| 458 | 458 | .name = DRIVER_NAME, |
| 459 | 459 | .desc = DRIVER_DESC, |
| 460 | 460 | |
| 461 | −#ifdef DRIVER_DATE | |
| 462 | − .date = DRIVER_DATE, | |
| 463 | − .major = DRIVER_MAJOR, | |
| 464 | − .minor = DRIVER_MINOR, | |
| 465 | − .patchlevel = DRIVER_PATCHLEVEL, | |
| 466 | −#else | |
| 467 | 461 | .date = UTS_RELEASE, |
| 468 | 462 | .major = 1, |
| 469 | −#endif | |
| 470 | 463 | }; |
| 471 | 464 | |
| 472 | 465 | static void ivpu_context_abort_invalid(struct ivpu_device *vdev) |