drm: fix issues with systems with no MTRR

On systems with no MTRR we should still define the interface.

Original bug from apkm.
Signed-off-by: Dave Airlie <airlied@linux.ie>

authored by Dave Airlie and committed by Dave Airlie 9c7d462e aab8df14

+14
+14
drivers/char/drm/drmP.h
··· 767 767 768 768 #else 769 769 #define drm_core_has_MTRR(dev) (0) 770 + 771 + #define DRM_MTRR_WC 0 772 + 773 + static inline int drm_mtrr_add(unsigned long offset, unsigned long size, 774 + unsigned int flags) 775 + { 776 + return 0; 777 + } 778 + 779 + static inline int drm_mtrr_del(int handle, unsigned long offset, 780 + unsigned long size, unsigned int flags) 781 + { 782 + return 0; 783 + } 770 784 #endif 771 785 772 786 /******************************************************************/