[coreboot-gerrit] New patch to review for coreboot: ec37a67 southbridge/intel/ibexpeak/me.c: Silence warns about unused func

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Thu Jun 26 14:22:23 CEST 2014


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

-gerrit

commit ec37a675e3d06faf3d133db883f3c9ffc1e17890
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Thu Jun 26 22:13:15 2014 +1000

    southbridge/intel/ibexpeak/me.c: Silence warns about unused func
    
    Move some __SMM__ functions under the #if preprocessor condition to
    avoid warnings about unused functions.
    
    Change-Id: I7f6fbc6a577032bc4e4635d91e8e94aecb517bd3
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
---
 src/southbridge/intel/ibexpeak/me.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/southbridge/intel/ibexpeak/me.c b/src/southbridge/intel/ibexpeak/me.c
index 3130631..99920f5 100644
--- a/src/southbridge/intel/ibexpeak/me.c
+++ b/src/southbridge/intel/ibexpeak/me.c
@@ -138,6 +138,7 @@ static inline void write_host_csr(struct mei_csr *csr)
 	mei_write_dword_ptr(csr, MEI_H_CSR);
 }
 
+#ifdef __SMM__
 static inline void read_me_csr(struct mei_csr *csr)
 {
 	mei_read_dword_ptr(csr, MEI_ME_CSR_HA);
@@ -353,7 +354,6 @@ static inline int mei_sendrecv(struct mei_header *mei, struct mkhi_header *mkhi,
 	return 0;
 }
 
-#ifdef __SMM__
 /* Send END OF POST message to the ME */
 static int mkhi_end_of_post(void)
 {



More information about the coreboot-gerrit mailing list