From db10dc797b4d3f7eee7c840df0bd803ffe0a3a6c Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 15 May 2014 14:06:29 -0700 Subject: [PATCH] libpayload: Fix libpayload build compilation warnings When emerging libpayload a warning is generated about selfboot() being defined without a prior prototype. Add cbfs.h when CBFS use if compiled fixes the warning. BUG=none TEST=build rambi storm nyan_big verify that there is no compilation warnings thrown any more Original-Change-Id: Ic9cb5571f708bb006a0d477e451fd1f3b3eb833f Original-Signed-off-by: Vadim Bendebury Original-Reviewed-on: https://chromium-review.googlesource.com/200099 Original-Reviewed-by: Hung-Te Lin (cherry picked from commit 7e4aa17936b70dd08f58b3a55c6db55ea03709d7) Signed-off-by: Marc Jones Change-Id: Ie3baaaca82fb6ec432860c638acb2a3ef9451469 Reviewed-on: http://review.coreboot.org/7909 Reviewed-by: Edward O'Callaghan Tested-by: build bot (Jenkins) --- payloads/libpayload/include/libpayload.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h index 824e96e8c2..1d4d0da10c 100644 --- a/payloads/libpayload/include/libpayload.h +++ b/payloads/libpayload/include/libpayload.h @@ -60,6 +60,9 @@ #ifdef CONFIG_LP_LAR #include #endif +#ifdef CONFIG_LP_CBFS +#include +#endif #define MIN(a,b) ((a) < (b) ? (a) : (b)) #define MAX(a,b) ((a) > (b) ? (a) : (b))