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

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Wed Jan 7 16:07:11 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 dbf293a207353e8a8b88ff147194abc4a28abbd4
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 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/southbridge/intel/lynxpoint/me_9.x.c b/src/southbridge/intel/lynxpoint/me_9.x.c
index dfed6de..eb118cb 100644
--- a/src/southbridge/intel/lynxpoint/me_9.x.c
+++ b/src/southbridge/intel/lynxpoint/me_9.x.c
@@ -374,6 +374,9 @@ static int mei_recv_msg(void *header, int header_bytes,
 	return mei_wait_for_me_ready();
 }
 
+#if IS_ENABLED (CONFIG_DEBUG_INTEL_ME)
+
+#if 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 +414,7 @@ static inline int mei_sendrecv_mkhi(struct mkhi_header *mkhi,
 
 	return 0;
 }
+#endif /* __SMM__ */
 
 static inline int mei_sendrecv_icc(struct icc_header *icc,
 				   void *req_data, int req_bytes,
@@ -435,6 +439,7 @@ static inline int mei_sendrecv_icc(struct icc_header *icc,
 
 	return 0;
 }
+#endif /* CONFIG_DEBUG_INTEL_ME */
 
 /*
  * mbp give up routine. This path is taken if hfs.mpb_rdy is 0 or the read



More information about the coreboot-gerrit mailing list