lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date: Tue,  6 Feb 2024 10:51:46 +0530
From: Umang Jain <umang.jain@...asonboard.com>
To: linux-arm-kernel@...ts.infradead.org
Cc: Lucas Stach <l.stach@...gutronix.de>,
	Luca Ceresoli <luca.ceresoli@...tlin.com>,
	Adam Ford <aford173@...il.com>,
	Laurent Pinchart <laurent.pinchart@...asonboard.com>,
	Rob Herring <robh@...nel.org>,
	NXP Linux Team <linux-imx@....com>,
	dri-devel@...ts.freedesktop.org,
	linux-kernel@...r.kernel.org,
	Liu Ying <victor.liu@....com>,
	Neil Armstrong <neil.armstrong@...aro.org>,
	Robert Foss <rfoss@...nel.org>,
	Daniel Vetter <daniel@...ll.ch>,
	David Airlie <airlied@...il.com>,
	Umang Jain <umang.jain@...asonboard.com>
Subject: [PATCH] drm/imx: Replace of_device.h with explicit includes

The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h.

of_device.h isn't needed, but of.h is for of_node_put().

This fixes the following build errors:
error: implicit declaration of function ‘platform_set_drvdata’ [-Werror=implicit-function-declaration]
error: implicit declaration of function ‘of_node_put’ [-Werror=implicit-function-declaration]

Fixes: 3075f087680b ("drm/imx: add driver for HDMI TX Parallel Video Interface")
Signed-off-by: Umang Jain <umang.jain@...asonboard.com>
---
 drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c b/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c
index 962779dc539e..8a51a2ac8df1 100644
--- a/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c
+++ b/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c
@@ -8,9 +8,10 @@
 #include <drm/drm_bridge.h>
 #include <drm/drm_crtc.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/of_graph.h>
 #include <linux/pm_runtime.h>
+#include <linux/platform_device.h>
 
 #define HTX_PVI_CTL	0x0
 #define  PVI_CTL_OP_VSYNC_POL	BIT(18)
-- 
2.41.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ