[RFC PATCH] misc/mei/hdcp: mei_hdcp_component_registered can be static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes: 0654edaa3690 ("misc/mei/hdcp: Component framework for I915 Interface")
Signed-off-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
---
 mei_hdcp.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/misc/mei/hdcp/mei_hdcp.c b/drivers/misc/mei/hdcp/mei_hdcp.c
index ba75502..146a4be 100644
--- a/drivers/misc/mei/hdcp/mei_hdcp.c
+++ b/drivers/misc/mei/hdcp/mei_hdcp.c
@@ -34,10 +34,10 @@
 #include <linux/component.h>
 #include <drm/i915_component.h>
 
-bool mei_hdcp_component_registered;
+static bool mei_hdcp_component_registered;
 static struct mei_cl_device *mei_cldev;
 
-struct i915_hdcp_component_ops mei_hdcp_component_ops = {
+static struct i915_hdcp_component_ops mei_hdcp_component_ops = {
 	.owner					= THIS_MODULE,
 	.initiate_hdcp2_session			= NULL,
 	.verify_receiver_cert_prepare_km	= NULL,
@@ -87,7 +87,7 @@ static const struct component_ops mei_hdcp_component_bind_ops = {
 	.unbind	= mei_hdcp_component_unbind,
 };
 
-void mei_hdcp_component_init(struct device *dev)
+static void mei_hdcp_component_init(struct device *dev)
 {
 	int ret;
 
@@ -100,7 +100,7 @@ void mei_hdcp_component_init(struct device *dev)
 	mei_hdcp_component_registered = true;
 }
 
-void mei_hdcp_component_cleanup(struct device *dev)
+static void mei_hdcp_component_cleanup(struct device *dev)
 {
 	if (!mei_hdcp_component_registered)
 		return;
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux