]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm: provide agp dummies for CONFIG_AGP=n
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 8 Aug 2013 20:19:12 +0000 (22:19 +0200)
committerDave Airlie <airlied@gmail.com>
Thu, 8 Aug 2013 21:22:11 +0000 (07:22 +1000)
commit00fd78e5279aec3aa504307ff2db892d3efb555d
tree96b7b3a906eab063855eee055efa491dade3d84e
parent32c913e4369ce7bd1d16a9b6983f7b8975c13f5a
drm: provide agp dummies for CONFIG_AGP=n

We currently rely on gcc dead-code elimination so the drm_agp_* helpers
are not called if drm_core_has_AGP() is false. That's ugly as hell so
provide "static inline" dummies for the case that AGP is disabled.

Fixes a build-regression introduced by:

  commit 28ec711cd427f8b61f73712a43b8100ba8ca933b
  Author: David Herrmann <dh.herrmann@gmail.com>
  Date:   Sat Jul 27 16:37:00 2013 +0200

      drm/agp: move AGP cleanup paths to drm_agpsupport.c

v2: switch #ifdef -> #if (spotted by Stephen)

Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
include/drm/drmP.h
include/drm/drm_agpsupport.h [new file with mode: 0644]