Update/include some functions from the Kernel

Antony Pavlov antonynpavlov at gmail.com
Tue Jul 15 11:42:19 PDT 2014


On Tue, 15 Jul 2014 15:49:28 +0200
Sascha Hauer <s.hauer at pengutronix.de> wrote:

After rebasing over latest next I have got many warnings like this:

  CC      common/filetype.o
In file included from include/common.h:26:0,
                 from common/filetype.c:18:
include/linux/bitops.h: In function 'hweight_long':
include/linux/bitops.h:77:2: warning: implicit declaration of function 'hweight32' [-Wimplicit-function-declaration]
  return sizeof(w) == 4 ? hweight32(w) : hweight64(w);
  ^
include/linux/bitops.h:77:2: warning: implicit declaration of function 'hweight64' [-Wimplicit-function-declaration]
include/linux/bitops.h: In function 'fls_long':
include/linux/bitops.h:175:2: warning: implicit declaration of function 'fls64' [-Wimplicit-function-declaration]
  return fls64(l);
  ^



> This adds/updates some lowlevel bitmap/bitop stuff from the
> Kernel. Needed by upcoming USB updates.
> 
> Sascha
> 
> ----------------------------------------------------------------
> Sascha Hauer (5):
>       include: Add DECLARE_BITMAP from kernel
>       include: Add round_up/round_down macros from kernel
>       include: Add foreign endianess adding functions from kernel
>       lib: Add bitmap functions from kernel
>       include: update bitop functions from kernel
> 
>  include/asm-generic/bitops/hweight.h |  15 +
>  include/linux/bitmap.h               | 285 ++++++++++++
>  include/linux/bitops.h               | 214 ++++++++-
>  include/linux/byteorder/generic.h    |  29 ++
>  include/linux/kernel.h               |  13 +
>  include/linux/types.h                |   3 +
>  lib/Makefile                         |   1 +
>  lib/bitmap.c                         | 839 +++++++++++++++++++++++++++++++++++
>  8 files changed, 1398 insertions(+), 1 deletion(-)
>  create mode 100644 include/linux/bitmap.h
>  create mode 100644 lib/bitmap.c
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


-- 
-- 
Best regards,
  Antony Pavlov



More information about the barebox mailing list