Re : [PATCH 4/8] lib: Add prototype declarations in lib/clz_ctz.c

From: 민찬호
Date: Wed Feb 26 2014 - 20:59:50 EST



> -----Original Message-----
> From: Rashika Kheria [mailto:rashika.kheria@xxxxxxxxx]
> Sent: Tuesday, February 25, 2014 4:46 PM
> To: linux-kernel@xxxxxxxxxxxxxxx
> Cc: Andrew Morton; Rashika Kheria; Chanho Min; josh@xxxxxxxxxxxxxxxx
> Subject: [PATCH 4/8] lib: Add prototype declarations in lib/clz_ctz.c
>
> Add prototype declarations of functions in lib/clz_ctz.c. These
> functions are required by GCC builtins and hence can not be removed
> despite of their unreferenced appearance in kernel source.
>
> This eliminates the following warning in lib/clz_ctz.c:
> lib/clz_ctz.c:16:12: warning: no previous prototype for ‘__ctzsi2’ [-Wmissing-prototypes]
> lib/clz_ctz.c:22:12: warning: no previous prototype for ‘__clzsi2’ [-Wmissing-prototypes]
> lib/clz_ctz.c:44:12: warning: no previous prototype for ‘__clzdi2’ [-Wmissing-prototypes]
> lib/clz_ctz.c:50:12: warning: no previous prototype for ‘__ctzdi2’ [-Wmissing-prototypes]
>
> Signed-off-by: Rashika Kheria <rashika.kheria@xxxxxxxxx>
> Reviewed-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
Acked-by: Chanho Min <chanho.min@xxxxxxx>