<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/include/linux/kernel.h, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2018-12-29T02:38:36Z</updated>
<entry>
<title>linux/kernel.h: import DIV_ROUND_CLOSEST_ULL from Linux</title>
<updated>2018-12-29T02:38:36Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2018-12-19T11:03:16Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=b32aa9ebc57b8db5052e3b97dc5a3349cd91636b'/>
<id>urn:sha1:b32aa9ebc57b8db5052e3b97dc5a3349cd91636b</id>
<content type='text'>
Copied from Linux v4.20-rc7.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>Add UINT32_MAX and UINT64_MAX</title>
<updated>2018-12-05T13:01:35Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2018-11-24T04:29:42Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=277f4eb2e88ba64e0926b189f99d548069089160'/>
<id>urn:sha1:277f4eb2e88ba64e0926b189f99d548069089160</id>
<content type='text'>
These constants are defined by stdint.h but not by kernel.h, which is
its stand-in in U-Boot. Add the definitions so that libraries which expect
stdint.h constants can work.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>linux/kernel.h: Add ALIGN_DOWN macro</title>
<updated>2018-01-10T13:05:51Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2017-12-21T04:51:46Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=75db00eea03d5b892c4e69ab17891fca968187d3'/>
<id>urn:sha1:75db00eea03d5b892c4e69ab17891fca968187d3</id>
<content type='text'>
Follow Linux commit ed067d4a859f ("linux/kernel.h: Add ALIGN_DOWN
macro").

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>linux/kernel.h: import DIV_ROUND_{DOWN, UP}_ULL from Linux</title>
<updated>2017-10-06T01:31:04Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2017-09-13T10:16:44Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=84570a0c111ac50372d51271eadc13ff5cbb1a54'/>
<id>urn:sha1:84570a0c111ac50372d51271eadc13ff5cbb1a54</id>
<content type='text'>
These macros are useful to avoid link error on 32-bit systems.

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>Fix SIZE_MAX compiler warning when using stdint.h</title>
<updated>2014-11-25T13:33:58Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2014-11-25T04:18:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=803f2eb2a29cbde53d8baac4f6e6bef260fd0774'/>
<id>urn:sha1:803f2eb2a29cbde53d8baac4f6e6bef260fd0774</id>
<content type='text'>
This new symbol may be defined by the compiler. If it is, avoid a compiler
warning when USE_STDINT is defined.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>linux/kernel.h: sync min, max, min3, max3 macros with Linux</title>
<updated>2014-11-23T11:48:30Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2014-11-06T18:03:31Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=b41411954d4ccf6ddaa581178462017557b82b5d'/>
<id>urn:sha1:b41411954d4ccf6ddaa581178462017557b82b5d</id>
<content type='text'>
U-Boot has never cared about the type when we get max/min of two
values, but Linux Kernel does.  This commit gets min, max, min3, max3
macros synced with the kernel introducing type checks.

Many of references of those macros must be fixed to suppress warnings.
We have two options:
 - Use min, max, min3, max3 only when the arguments have the same type
   (or add casts to the arguments)
 - Use min_t/max_t instead with the appropriate type for the first
   argument

Signed-off-by: Masahiro Yamada &lt;yamada.m@jp.panasonic.com&gt;
Acked-by: Pavel Machek &lt;pavel@denx.de&gt;
Acked-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
Tested-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
[trini: Fixup arch/blackfin/lib/string.c]
Signed-off-by: Tom Rini &lt;trini@ti.com&gt;
</content>
</entry>
<entry>
<title>linux/kernel.h: add typechecking to roundup macro</title>
<updated>2014-11-20T16:28:25Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2014-11-06T18:03:30Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=111396ccb9a8d3e1f0e9d9921d3dbd6c7a70423f'/>
<id>urn:sha1:111396ccb9a8d3e1f0e9d9921d3dbd6c7a70423f</id>
<content type='text'>
This commit replaces roundup macro with the one from Linux Kernel.

DEFINE_ALIGN_BUFFER must be fixed because typechecking can not
be used in this context.

Signed-off-by: Masahiro Yamada &lt;yamada.m@jp.panasonic.com&gt;
</content>
</entry>
<entry>
<title>linux/kernel.h: import more macros</title>
<updated>2014-11-20T16:28:25Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2014-11-06T18:03:29Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=48c7ea39663a7c151a2a0b1af5d45ae3cf676299'/>
<id>urn:sha1:48c7ea39663a7c151a2a0b1af5d45ae3cf676299</id>
<content type='text'>
These macros seem to be useful for U-Boot too (or at least
harmless).  Imported from Linux 3.18-rc2.

Signed-off-by: Masahiro Yamada &lt;yamada.m@jp.panasonic.com&gt;
</content>
</entry>
<entry>
<title>include: move various macros to include/linux/kernel.h</title>
<updated>2014-11-20T16:28:25Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2014-11-06T18:03:28Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=cba1da495daa3bfa29372b5eb28cb49302ef0a72'/>
<id>urn:sha1:cba1da495daa3bfa29372b5eb28cb49302ef0a72</id>
<content type='text'>
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 &lt;yamada.m@jp.panasonic.com&gt;
</content>
</entry>
</feed>
