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 768 #else 769 #define drm_core_has_MTRR(dev) (0) 770 #endif 771 772 /******************************************************************/
··· 767 768 #else 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 + } 784 #endif 785 786 /******************************************************************/