drm/tegra: fix compile w/ CONFIG_DYNAMIC_DEBUG
PATCH 1/1 drm/tegra: fix compile w/ CONFIG_DYNAMIC_DEBUG
From: Stephen Warren <[email protected]>
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.
--- drivers/gpu/drm/tegra/mipi-phy.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/tegra/mipi-phy.c +1 -0
@@ -20,6 +20,7 @@* OF THIS SOFTWARE. */ +#include <linux/errno.h> #include <linux/kernel.h> #include "mipi-phy.h"
Signature · 1 line
1.8.1.5
A message that is not in the archive (sent off-list or not yet received): 1387400013-9237-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org
Thierry Reding
AppliedQuoted 8 lines · Stephen Warren
From: Stephen Warren <[email protected]>
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
Quoted 7 lines
Fix this by directly including the header that defines EINVAL.
Fixes 39aa0a4f3be5 ("drm/tegra: Add DSI support")Signed-off-by Stephen Warren <[email protected]>--- 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