<div>Hi Thomas,</div><div><br></div>On Tuesday, 25 February 2020, Thomas Zimmermann <<a href="mailto:tzimmermann@suse.de">tzimmermann@suse.de</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Non-KMS drivers store state in struct drm_driver. This bloats the<br>
structure for KMS drivers and prevents it from being declared with<br>
'static const' qualifiers. Moving the non-KMS state into a separate<br>
data structure resolves this.<br>
<br></blockquote><div><br></div><div>Have you considered subclassing the const drm_driver for legacy drivers. This way the legacy (pointer) data does not need to be exposed to non-legacy drivers.</div><div><br></div><div>Not to mention that const data (drm_driver), which has (const) pointer to mutable data (legacy bits) is a trap IMHO</div><div><br></div><div>Emil</div>