From 4277667499d32e87079cecea1d43c2e612b1535d Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Thu, 10 Aug 2017 14:28:54 +0530 Subject: soc/intel/cannonlake: Initialize struct member to 0 As per GCC 7.1 compiler struct reset_reply is considered as uninitialized inside send_heci_reset_message function. Change-Id: I01b95d31bfb1d2e9af1704a28dacb9cfd1cdcb50 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/20941 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/cannonlake/reset.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/soc/intel/cannonlake/reset.c b/src/soc/intel/cannonlake/reset.c index 93714d3b9a..918c8c7bf9 100644 --- a/src/soc/intel/cannonlake/reset.c +++ b/src/soc/intel/cannonlake/reset.c @@ -17,6 +17,7 @@ #include #include #include +#include #include /* Reset Request */ @@ -65,6 +66,7 @@ static int send_heci_reset_message(void) return -1; reply_size = sizeof(reply); + memset(&reply, 0, reply_size); heci_receive(&reply, &reply_size); /* get reply result from HECI MSG */ if (reply.result != 0) { -- cgit v1.2.3