Edward O'Callaghan (eocallaghan(a)alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8167
-gerrit
commit c0aebd7daac48acc7f280ac215362d673dd4f19d
Author: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
Date: Thu Jan 8 01:57:43 2015 +1100
mainboard/packardbell/ms2290/romstage.c: Comment unused func
Take unused reverse eng function out of build by wrapping in #if 0.
Change-Id: I816b3ea08a8858fc03e4455c1d7711265e63cba4
Signed-off-by: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
---
src/mainboard/packardbell/ms2290/romstage.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mainboard/packardbell/ms2290/romstage.c b/src/mainboard/packardbell/ms2290/romstage.c
index a366d38..f702e9f 100644
--- a/src/mainboard/packardbell/ms2290/romstage.c
+++ b/src/mainboard/packardbell/ms2290/romstage.c
@@ -163,10 +163,13 @@ static inline u32 read_acpi32(u32 addr)
return inl(DEFAULT_PMBASE | addr);
}
+// unused func - used for RE
+#if 0
static inline u16 read_acpi16(u32 addr)
{
return inw(DEFAULT_PMBASE | addr);
}
+#endif
#include <cpu/intel/romstage.h>
void main(unsigned long bist)
Edward O'Callaghan (eocallaghan(a)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(a)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(a)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
Edward O'Callaghan (eocallaghan(a)alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8136
-gerrit
commit 0f7835579aace69182fbf7820998a7751de3f1b6
Author: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
Date: Tue Jan 6 14:58:31 2015 +1100
Makefile: clang - ramp up some more warnings
Change-Id: I5262cba22d262f5d74d1edd958b59c2695271293
Signed-off-by: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 6ef9838..ce2b727 100644
--- a/Makefile
+++ b/Makefile
@@ -119,7 +119,7 @@ ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y)
# this means the triple is i386-linux-elf instead of i386-none-elf
CFLAGS_x86_32 = -no-integrated-as -Qunused-arguments -target i386-linux-elf -m32
# Tone down some clang warnings
-CFLAGS_x86_32 += -Wno-unused-variable -Wno-unused-function -Wno-tautological-compare -Wno-shift-overflow
+CFLAGS_x86_32 += -Wno-unused-variable -Wno-tautological-compare -Wno-shift-overflow
CC_x86_32:=clang
HOSTCC := clang
Edward O'Callaghan (eocallaghan(a)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(a)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(a)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,
Edward O'Callaghan (eocallaghan(a)alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8136
-gerrit
commit aff3747ae02981672e32320c00d0036196fe5935
Author: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
Date: Tue Jan 6 14:58:31 2015 +1100
Makefile: clang - ramp up some more warnings
Change-Id: I5262cba22d262f5d74d1edd958b59c2695271293
Signed-off-by: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 6ef9838..ce2b727 100644
--- a/Makefile
+++ b/Makefile
@@ -119,7 +119,7 @@ ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y)
# this means the triple is i386-linux-elf instead of i386-none-elf
CFLAGS_x86_32 = -no-integrated-as -Qunused-arguments -target i386-linux-elf -m32
# Tone down some clang warnings
-CFLAGS_x86_32 += -Wno-unused-variable -Wno-unused-function -Wno-tautological-compare -Wno-shift-overflow
+CFLAGS_x86_32 += -Wno-unused-variable -Wno-tautological-compare -Wno-shift-overflow
CC_x86_32:=clang
HOSTCC := clang