From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Tue, 6 Jun 2017 15:09:17 -0600 Subject: [U-Boot] [PATCH 1/2] rockchip: video: rk_hdmi: fix implicit definition warnings In-Reply-To: <1496733316-9788-2-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1496733316-9788-1-git-send-email-philipp.tomsich@theobroma-systems.com> <1496733316-9788-2-git-send-email-philipp.tomsich@theobroma-systems.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 6 June 2017 at 01:15, Philipp Tomsich wrote: > When enabling CONFIG_DISPLAY_ROCKCHIP_HDMI, compile-time warning for > the following implicitly defined functions are raised due to a missing > include directive: > > drivers/video/rockchip/rk_hdmi.c: In function 'rk_hdmi_probe': > drivers/video/rockchip/rk_hdmi.c:150:2: warning: implicit declaration of function 'rk_setreg' [-Wimplicit-function-declaration] > rk_setreg(&priv->grf->soc_con6, 1 << 15); > ^~~~~~~~~ > drivers/video/rockchip/rk_hdmi.c:153:2: warning: implicit declaration of function 'rk_clrsetreg' [-Wimplicit-function-declaration] > rk_clrsetreg(&priv->grf->soc_con6, 1 << 4, > ^~~~~~~~~~~~ > > This change fixes this by including in rk_hdmi.c. > > Signed-off-by: Philipp Tomsich > > --- > > Changes in v3: > - adds an include-directive to the (pre-RK3399 enabled) rk_hdmi to > fix implicit definition warnings > > Changes in v2: None > > drivers/video/rockchip/rk_hdmi.c | 1 + > 1 file changed, 1 insertion(+) Acked-by: Simon Glass