From: Anshuman Gupta <anshuman.gupta@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Subject: [Intel-gfx] [PATCH v2] drm/i915/hdcp: Fix uninitialized symbol 'msg_end'
Date: Thu, 8 Apr 2021 13:56:42 +0530 [thread overview]
Message-ID: <20210408082642.27066-1-anshuman.gupta@intel.com> (raw)
In-Reply-To: <20210406101421.723-1-anshuman.gupta@intel.com>
Fix static analysis tool uninitialized symbol error.
v2:
- use ktime_set(0, 0) instead to initialize to zero. [Ankit]
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
---
drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
index 90868e156c69..2dd9360bdf9a 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
@@ -532,7 +532,7 @@ int intel_dp_hdcp2_read_msg(struct intel_digital_port *dig_port,
u8 *byte = buf;
ssize_t ret, bytes_to_recv, len;
const struct hdcp2_dp_msg_data *hdcp2_msg_data;
- ktime_t msg_end;
+ ktime_t msg_end = ktime_set(0, 0);
bool msg_expired;
hdcp2_msg_data = get_hdcp2_dp_msg_data(msg_id);
--
2.26.2
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2021-04-08 8:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-06 10:14 [Intel-gfx] [PATCH] drm/i915/hdcp: Fix uninitialized symbol 'msg_end' Anshuman Gupta
2021-04-06 11:23 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for " Patchwork
2021-04-06 11:49 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-04-06 13:22 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2021-04-07 9:08 ` [Intel-gfx] [PATCH] " Nautiyal, Ankit K
2021-04-08 8:26 ` Anshuman Gupta [this message]
2021-04-08 8:58 ` [Intel-gfx] [PATCH v2] " Nautiyal, Ankit K
2021-04-08 12:46 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for drm/i915/hdcp: Fix uninitialized symbol 'msg_end' (rev2) Patchwork
2021-04-08 13:08 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-04-08 16:03 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210408082642.27066-1-anshuman.gupta@intel.com \
--to=anshuman.gupta@intel.com \
--cc=dan.carpenter@oracle.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox