DragonFlyBSD/src bb916eesys/dev/drm drm_fops.c drm_drv.c, sys/dev/drm/i915 i915_drv.c

drm: Stop using an embedded struct drm_device in driver softcs

* All drm drivers use a struct drm_device record but are free to
  allocate it by themselves in different ways or let the generic
  drm subsystem code do it.

* This drm_device record can even be part of another data structure,
  dynamically or statically allocated.

* We cannot just assume the length of a drm_device structure in the
  softc memory block will be enough to store all driver private data.

* Make the drm softc the equivalent of a void* pointer and let the
  upstream code behave as expected on Linux
DeltaFile
+16-5sys/dev/drm/drm_fops.c
+7-13sys/dev/drm/radeon/radeon_drv.c
+9-6sys/dev/drm/drm_drv.c
+3-2sys/dev/drm/i915/i915_drv.c
+4-0sys/dev/drm/include/drm/drmP.h
+2-1sys/dev/drm/drm_dragonfly.c
+41-276 files

UnifiedSplitRaw