include: move various macros to include/linux/kernel.h
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 6 Nov 2014 18:03:28 +0000 (03:03 +0900)
committerChanho Park <chanho61.park@samsung.com>
Mon, 11 Apr 2016 03:53:15 +0000 (12:53 +0900)
commit127dfa98a11471015bfc0151db06b1832883d085
tree3bc020c18663c86a308d5b6f458216e7007ed317
parentfedeff64d2acbeb7d394c0fb87476bd0c8a1330d
include: move various macros to include/linux/kernel.h

U-Boot has imported various utility macros from Linux
scattering them to various places without consistency.

In include/common.h are min, max, min3, max3, ARRAY_SIZE, ALIGN,
container_of, DIV_ROUND_UP, etc.
In include/linux/compat.h are min_t, max_t, round_up, round_down,
etc.
We also have duplicated defines of min_t in some *.c files.

Moreover, we are suffering from too cluttered include/common.h.

This commit moves various macros that originate in
include/linux/kernel.h of Linux to their original position.

Note:
This commit simply moves the macros; the macros roundup,
min, max, min2, max3, ARRAY_SIZE are different
from those of Linux at this point.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Conflicts:
arch/arm/cpu/armv7/bcm281xx/clk-core.h
include/common.h
lib/vsprintf.c

Change-Id: I9823611a421022aa9440d15751253697fcbc92fd
13 files changed:
arch/mips/cpu/mips32/au1x00/au1x00_usb_ohci.c
arch/powerpc/cpu/mpc5xxx/usb_ohci.c
arch/powerpc/cpu/ppc4xx/usb_ohci.c
drivers/usb/host/isp116x-hcd.c
drivers/usb/host/ohci-hcd.c
drivers/usb/host/ohci-s3c24xx.c
drivers/usb/host/r8a66597-hcd.c
drivers/usb/musb/musb_hcd.h
drivers/video/ati_radeon_fb.c
fs/ubifs/ubifs.h
include/common.h
include/linux/compat.h
include/linux/kernel.h [new file with mode: 0644]