git: drm/linux: Fix linux/dma-mapping.h compilation...

Francois Tigeot ftigeot at crater.dragonflybsd.org
Sun Dec 3 01:52:57 PST 2017


commit 8eafc85168bc63ccb6f4c4f752ad51838e360806
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Sun Dec 3 10:32:58 2017 +0100

    drm/linux: Fix linux/dma-mapping.h compilation...
    
    ... with the drm/i915 codebase from Linux 4.8
    
    * Move functions from .h to .c files in order to hide their implementations
    
    * This avoids leaking DragonFly headers to Linux code or Linux headers
      to DragonFly code with associated bad side-effects like type redefinitions

Summary of changes:
 sys/conf/files                                   |  1 +
 sys/dev/drm/drm/Makefile                         |  1 +
 sys/dev/drm/include/linux/dma-mapping.h          | 31 ++------------
 sys/dev/drm/{include/linux/gfp.h => linux_dma.c} | 52 ++++++++++++------------
 4 files changed, 33 insertions(+), 52 deletions(-)
 copy sys/dev/drm/{include/linux/gfp.h => linux_dma.c} (66%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8eafc85168bc63ccb6f4c4f752ad51838e360806


-- 
DragonFly BSD source repository



More information about the Commits mailing list