]> git.sur5r.net Git - u-boot/commitdiff
Include common.h in qsort.c to fix build warning
authorSimon Glass <sjg@chromium.org>
Tue, 6 Dec 2011 13:37:16 +0000 (13:37 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 7 Dec 2011 07:39:54 +0000 (08:39 +0100)
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@chromium.org>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Tested-by: Heiko Schocher <hs@denx.de>
lib/qsort.c

index 86c392c225a53f5ebfe03f636853acae379ed056..57098841f9a40ff9bd590075845ca6b9b06f8a9a 100644 (file)
@@ -16,6 +16,7 @@
  * bcc and gcc. */
 
 #include <linux/types.h>
+#include <common.h>
 #include <exports.h>
 
 void qsort(void  *base,