drm: move two function extern into the correct block