[U-Boot] [PATCH 1/5] rand: do not surround function declarations by #ifdef

Masahiro Yamada yamada.m at jp.panasonic.com
Thu Apr 17 10:00:28 CEST 2014


Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
---

 include/common.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/common.h b/include/common.h
index cbd3c9e..49feac2 100644
--- a/include/common.h
+++ b/include/common.h
@@ -834,12 +834,10 @@ char *	strmhz(char *buf, unsigned long hz);
 #include <u-boot/crc.h>
 
 /* lib/rand.c */
-#if defined(CONFIG_LIB_RAND) || defined(CONFIG_LIB_HW_RAND)
 #define RAND_MAX -1U
 void srand(unsigned int seed);
 unsigned int rand(void);
 unsigned int rand_r(unsigned int *seedp);
-#endif
 
 /* common/console.c */
 int	console_init_f(void);	/* Before relocation; uses the serial  stuff	*/
-- 
1.8.3.2



More information about the U-Boot mailing list