[U-Boot] [PATCH v2 01/13] include: Add log2 header from the kernel
Jagan Teki
jteki at openedev.com
Sun Oct 25 07:44:07 CET 2015
On 24 October 2015 at 20:56, Fabio Estevam <festevam at gmail.com> wrote:
> From: Fabio Estevam <fabio.estevam at freescale.com>
>
> Use the log2 header files from the kernel.
>
> Imported from kernel 4.2.3.
>
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
> Reviewed-by: Tom Rini <trini at konsulko.com>
Reviewed-by: Jagan Teki <jteki at openedev.com>
> ---
> Changes since v1:
> - None
>
> include/linux/log2.h | 205 +++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 205 insertions(+)
> create mode 100644 include/linux/log2.h
>
> diff --git a/include/linux/log2.h b/include/linux/log2.h
> new file mode 100644
> index 0000000..e3ee91e
> --- /dev/null
> +++ b/include/linux/log2.h
> @@ -0,0 +1,205 @@
> +/* Integer base 2 logarithm calculation
Of-course Linux look same, but the multi-line comment should be as
/**
* Integer base 2 logarithm calculation
*
*/
Probably we can fix this as well - make sense?
> + *
> + * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
thanks!
--
Jagan.
More information about the U-Boot
mailing list