diff mbox

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

Message ID 20180627144603.GA1975@ivb43.lkp.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Fengguang Wu June 27, 2018, 2:46 p.m. UTC
Fixes: 0654edaa3690 ("misc/mei/hdcp: Component framework for I915 Interface")
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
---
 mei_hdcp.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox

Patch

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;