From: yxj Date: Mon, 18 Mar 2013 09:21:48 +0000 (+0800) Subject: fix compile err when no select CONFIG_DISPLAY_SUPPORT X-Git-Tag: firefly_0821_release~7390 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5b18ea09e60d49108650483b03177ee31d7170fe;p=firefly-linux-kernel-4.4.55.git fix compile err when no select CONFIG_DISPLAY_SUPPORT --- diff --git a/include/linux/rk_screen.h b/include/linux/rk_screen.h index ad278d086859..84f538aa1b20 100644 --- a/include/linux/rk_screen.h +++ b/include/linux/rk_screen.h @@ -194,6 +194,7 @@ struct rk29fb_info { #ifndef CONFIG_DISPLAY_SUPPORT static inline void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info) {} +static inline size_t get_fb_size(void) { return 0;} #else extern void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info); extern size_t get_fb_size(void);