[U-Boot] [PATCH 1/2] Include common.h in qsort.c to fix build warning

Simon Glass sjg at chromium.org
Wed Dec 7 00:37:16 CET 2011


exports.h no longer includes common.h, which contains assert(). qsort.c
needs to be updated. This fixes this warning:

qsort.c: In function 'qsort':
qsort.c:30:3: warning: implicit declaration of function 'assert' [-Wimplicit-function-declaration]

Signed-off-by: Simon Glass <sjg at chromium.org>
---
 lib/qsort.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/qsort.c b/lib/qsort.c
index 86c392c..5709884 100644
--- a/lib/qsort.c
+++ b/lib/qsort.c
@@ -16,6 +16,7 @@
  * bcc and gcc. */
 
 #include <linux/types.h>
+#include <common.h>
 #include <exports.h>
 
 void qsort(void  *base,
-- 
1.7.3.1



More information about the U-Boot mailing list