[coreboot-gerrit] Patch set updated for coreboot: 9720540 southbridge/intel/lynxpoint/me_9.x.c: Avoid unused func warn

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Wed Jan 7 15:00:58 CET 2015


Edward O'Callaghan (eocallaghan at alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8157

-gerrit

commit 972054028c9accdbfb7cdfd41e2a4584e10826a7
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Wed Jan 7 15:53:00 2015 +1100

    southbridge/intel/lynxpoint/me_9.x.c: Avoid unused func warn
    
    Put a guard around this function to avoid compiler warnings
    pretaining to unused functions when a false branch is hit on
    a guard further down the file.
    
    Change-Id: Ie4955ee9df6904c38848f46226b53be37d9fa239
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
---
 src/southbridge/intel/lynxpoint/me_9.x.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/southbridge/intel/lynxpoint/me_9.x.c b/src/southbridge/intel/lynxpoint/me_9.x.c
index dfed6de..84c287b 100644
--- a/src/southbridge/intel/lynxpoint/me_9.x.c
+++ b/src/southbridge/intel/lynxpoint/me_9.x.c
@@ -374,6 +374,7 @@ static int mei_recv_msg(void *header, int header_bytes,
 	return mei_wait_for_me_ready();
 }
 
+#if IS_ENABLED (CONFIG_DEBUG_INTEL_ME) || defined(__SMM__)
 static inline int mei_sendrecv_mkhi(struct mkhi_header *mkhi,
 				    void *req_data, int req_bytes,
 				    void *rsp_data, int rsp_bytes)
@@ -411,6 +412,7 @@ static inline int mei_sendrecv_mkhi(struct mkhi_header *mkhi,
 
 	return 0;
 }
+#endif
 
 static inline int mei_sendrecv_icc(struct icc_header *icc,
 				   void *req_data, int req_bytes,



More information about the coreboot-gerrit mailing list