[Intel-gfx] [RFC PATCH] misc/mei/hdcp: mei_hdcp_component_registered can be static
kbuild test robot
fengguang.wu at intel.com
Wed Jun 27 14:46:03 UTC 2018
Fixes: 0654edaa3690 ("misc/mei/hdcp: Component framework for I915 Interface")
Signed-off-by: kbuild test robot <fengguang.wu at intel.com>
---
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;
More information about the Intel-gfx
mailing list