diff mbox

drm/tegra: fix compile w/ CONFIG_DYNAMIC_DEBUG

Message ID 1387400013-9237-1-git-send-email-swarren@wwwdotorg.org
State Not Applicable, archived
Headers show

Commit Message

Stephen Warren Dec. 18, 2013, 8:53 p.m. UTC
From: Stephen Warren <swarren@nvidia.com>

With CONFIG_DYNAMIC_DEBUG=y, the followin compile error occurs:

drivers/gpu/drm/tegra/mipi-phy.c: In function ‘mipi_dphy_timing_validate’:
drivers/gpu/drm/tegra/mipi-phy.c:69:11: error: ‘EINVAL’ undeclared (first use in this function)
drivers/gpu/drm/tegra/mipi-phy.c:69:11: note: each undeclared identifier is reported only once for each function it appears in

Fix this by directly including the header that defines EINVAL.

Fixes: 39aa0a4f3be5 ("drm/tegra: Add DSI support")
Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 drivers/gpu/drm/tegra/mipi-phy.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Thierry Reding Dec. 19, 2013, 8:32 a.m. UTC | #1
On Wed, Dec 18, 2013 at 01:53:33PM -0700, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
> 
> With CONFIG_DYNAMIC_DEBUG=y, the followin compile error occurs:
> 
> drivers/gpu/drm/tegra/mipi-phy.c: In function ‘mipi_dphy_timing_validate’:
> drivers/gpu/drm/tegra/mipi-phy.c:69:11: error: ‘EINVAL’ undeclared (first use in this function)
> drivers/gpu/drm/tegra/mipi-phy.c:69:11: note: each undeclared identifier is reported only once for each function it appears in
> 
> Fix this by directly including the header that defines EINVAL.
> 
> Fixes: 39aa0a4f3be5 ("drm/tegra: Add DSI support")
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
>  drivers/gpu/drm/tegra/mipi-phy.c | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks. I've fixed up the "Fixes:" tag since the commit hash
was no longer valid.

Thierry
diff mbox

Patch

diff --git a/drivers/gpu/drm/tegra/mipi-phy.c b/drivers/gpu/drm/tegra/mipi-phy.c
index 1d2ad267cfce..e2c4aedaee78 100644
--- a/drivers/gpu/drm/tegra/mipi-phy.c
+++ b/drivers/gpu/drm/tegra/mipi-phy.c
@@ -20,6 +20,7 @@ 
  * OF THIS SOFTWARE.
  */
 
+#include <linux/errno.h>
 #include <linux/kernel.h>
 
 #include "mipi-phy.h"