Fix libpayload build compilation warnings

When emerging libpayload a warning is generated about selfboot() being
defined without a prior prototype.

Addinf cbfs.h when CBFS use if compiled fixes the warning.

BUG=none
TEST=run the following

  $ for b in rambi storm nyan_big; do
     cros_workon-$b start libpayload
     emerge-$b libpayload
  done

   verify that there is no compilation warnings thrown any more

Change-Id: Ic9cb5571f708bb006a0d477e451fd1f3b3eb833f
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/200099
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
Vadim Bendebury 2014-05-15 14:06:29 -07:00 committed by chrome-internal-fetch
commit 7e4aa17936

View file

@ -60,6 +60,9 @@
#ifdef CONFIG_LP_LAR
#include <lar.h>
#endif
#ifdef CONFIG_LP_CBFS
#include <cbfs.h>
#endif
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define MAX(a,b) ((a) > (b) ? (a) : (b))