drm/i915: fix sparse warnings: move 'extern' decls to header file