<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/atf/lib/libc, branch master</title>
<subtitle>Broadcom-s Trusted Firmware A</subtitle>
<id>https://git-03.infra.openwrt.org/project/bcm63xx/atf/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/bcm63xx/atf/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/atf/'/>
<updated>2019-09-11T02:28:46Z</updated>
<entry>
<title>libc: fix sparse warning for __assert()</title>
<updated>2019-09-11T02:28:46Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2019-07-26T11:21:39Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/atf/commit/?id=f906a44e9ea9ccefaab2a9d40bb2cb3f354609c8'/>
<id>urn:sha1:f906a44e9ea9ccefaab2a9d40bb2cb3f354609c8</id>
<content type='text'>
Sparse warns this:

lib/libc/assert.c:29:6: error: symbol '__assert' redeclared with different type (originally declared at include/lib/libc/assert.h:36) - different modifiers

Add __dead2 to match the header declaration and C definition.

I also changed '__dead2 void' to 'void __dead2' for the consistency
with other parts.

Change-Id: Iefa4f0e787c24fa7e7e499d2e7baf54d4deb49ef
Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>libc: fix memchr implementation</title>
<updated>2019-06-20T08:59:24Z</updated>
<author>
<name>Ambroise Vincent</name>
</author>
<published>2019-06-07T10:19:45Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/atf/commit/?id=294062fabf885c78d46e3c6e51963d5791b815b2'/>
<id>urn:sha1:294062fabf885c78d46e3c6e51963d5791b815b2</id>
<content type='text'>
The previous implementation could behave incorrectly because of the sign
extension of the char when compared to the int.

Change-Id: I397838b0ec87a6f1af6972d022a8c19a5184b447
Signed-off-by: Ambroise Vincent &lt;ambroise.vincent@arm.com&gt;
</content>
</entry>
<entry>
<title>Remove several warnings reported with W=1</title>
<updated>2019-04-01T09:43:42Z</updated>
<author>
<name>Ambroise Vincent</name>
</author>
<published>2019-02-13T15:58:00Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/atf/commit/?id=609e053caabf0807a71243eec11f49120eaaab61'/>
<id>urn:sha1:609e053caabf0807a71243eec11f49120eaaab61</id>
<content type='text'>
Improved support for W=1 compilation flag by solving missing-prototypes
and old-style-definition warnings.

The libraries are compiling with warnings (which turn into errors with
the Werror flag).

Outside of libraries, some warnings cannot be fixed without heavy
structural changes.

Change-Id: I1668cf99123ac4195c2a6a1d48945f7a64c67f16
Signed-off-by: Ambroise Vincent &lt;ambroise.vincent@arm.com&gt;
</content>
</entry>
<entry>
<title>libc: Move setjmp to libc folder</title>
<updated>2019-02-08T13:42:38Z</updated>
<author>
<name>Antonio Nino Diaz</name>
</author>
<published>2019-02-08T13:20:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/atf/commit/?id=70b0f2789e93f253bec5cbd2986d0de023c1bdf4'/>
<id>urn:sha1:70b0f2789e93f253bec5cbd2986d0de023c1bdf4</id>
<content type='text'>
Now that setjmp() and longjmp() are compliant with the standard they can
be moved with the other libc files.

Change-Id: Iea3b91c34eb353ace5e171e72f331602d57774d5
Signed-off-by: Antonio Nino Diaz &lt;antonio.ninodiaz@arm.com&gt;
</content>
</entry>
<entry>
<title>Sanitise includes across codebase</title>
<updated>2019-01-04T10:43:17Z</updated>
<author>
<name>Antonio Nino Diaz</name>
</author>
<published>2018-12-14T00:18:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/atf/commit/?id=09d40e0e08283a249e7dce0e106c07c5141f9b7e'/>
<id>urn:sha1:09d40e0e08283a249e7dce0e106c07c5141f9b7e</id>
<content type='text'>
Enforce full include path for includes. Deprecate old paths.

The following folders inside include/lib have been left unchanged:

- include/lib/cpus/${ARCH}
- include/lib/el3_runtime/${ARCH}

The reason for this change is that having a global namespace for
includes isn't a good idea. It defeats one of the advantages of having
folders and it introduces problems that are sometimes subtle (because
you may not know the header you are actually including if there are two
of them).

For example, this patch had to be created because two headers were
called the same way: e0ea0928d5b7 ("Fix gpio includes of mt8173 platform
to avoid collision."). More recently, this patch has had similar
problems: 46f9b2c3a282 ("drivers: add tzc380 support").

This problem was introduced in commit 4ecca33988b9 ("Move include and
source files to logical locations"). At that time, there weren't too
many headers so it wasn't a real issue. However, time has shown that
this creates problems.

Platforms that want to preserve the way they include headers may add the
removed paths to PLAT_INCLUDES, but this is discouraged.

Change-Id: I39dc53ed98f9e297a5966e723d1936d6ccf2fc8f
Signed-off-by: Antonio Nino Diaz &lt;antonio.ninodiaz@arm.com&gt;
</content>
</entry>
<entry>
<title>libc: Adapt strlcpy to this codebase</title>
<updated>2018-11-02T13:41:33Z</updated>
<author>
<name>Antonio Nino Diaz</name>
</author>
<published>2018-09-27T08:22:19Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/atf/commit/?id=b4cf974a3256275fe2c03d8eaaf07a5e5b337cfc'/>
<id>urn:sha1:b4cf974a3256275fe2c03d8eaaf07a5e5b337cfc</id>
<content type='text'>
Change-Id: I2f5f64aaf90caae936510e1179392a8835f493e0
Signed-off-by: Antonio Nino Diaz &lt;antonio.ninodiaz@arm.com&gt;
</content>
</entry>
<entry>
<title>libc: Import strlcpy from FreeBSD</title>
<updated>2018-11-02T13:41:33Z</updated>
<author>
<name>Antonio Nino Diaz</name>
</author>
<published>2018-09-27T08:18:57Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/atf/commit/?id=b3e9214e96eb2a5a5eb94127037eecfee81d3509'/>
<id>urn:sha1:b3e9214e96eb2a5a5eb94127037eecfee81d3509</id>
<content type='text'>
From commit aafd1cf4235d78ce85b76d7da63e9589039344b3:

- lib/libc/strlcpy.c

Change-Id: Iaa7028fcc26706bdd6ee3f1e4bd55dd5873a30c6
Signed-off-by: Antonio Nino Diaz &lt;antonio.ninodiaz@arm.com&gt;
</content>
</entry>
<entry>
<title>libc: Integrate strrchr in libc</title>
<updated>2018-10-23T17:27:45Z</updated>
<author>
<name>Antonio Nino Diaz</name>
</author>
<published>2018-10-18T23:57:10Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/atf/commit/?id=1a29aba3673b753664e97fcfed1e3d38f138b3b7'/>
<id>urn:sha1:1a29aba3673b753664e97fcfed1e3d38f138b3b7</id>
<content type='text'>
Change-Id: I3ddc07cb02d73cd7614af7a5b21827aae155f9a0
Signed-off-by: Antonio Nino Diaz &lt;antonio.ninodiaz@arm.com&gt;
</content>
</entry>
<entry>
<title>libc: Import strrchr from FreeBSD</title>
<updated>2018-10-23T17:27:45Z</updated>
<author>
<name>Antonio Nino Diaz</name>
</author>
<published>2018-10-18T23:57:01Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/atf/commit/?id=668afe261dc118eea7d01074ac0f4a04fee14b50'/>
<id>urn:sha1:668afe261dc118eea7d01074ac0f4a04fee14b50</id>
<content type='text'>
Imported from lib/libc/string/strrchr.c from commit:

59fd2fb98e4cc7e9bfc89598e28e21d405fd470c

Change-Id: I898206c6f0372d4d211c149ec0fb9522d0a5b01c
Signed-off-by: Antonio Nino Diaz &lt;antonio.ninodiaz@arm.com&gt;
</content>
</entry>
<entry>
<title>Ensure the flow through switch statements is clear</title>
<updated>2018-09-21T12:14:13Z</updated>
<author>
<name>Daniel Boulby</name>
</author>
<published>2018-06-22T13:16:03Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/atf/commit/?id=a08a2014300a495381cdb8f6d59523bcd5d3b883'/>
<id>urn:sha1:a08a2014300a495381cdb8f6d59523bcd5d3b883</id>
<content type='text'>
Ensure case clauses:
*   Terminate with an unconditional break, return or goto statement.
*   Use conditional break, return or goto statements as long as the end
    of the case clause is unreachable; such case clauses must terminate
    with assert(0) /* Unreachable */ or an unconditional  __dead2 function
    call
*   Only fallthough when doing otherwise would result in less
    readable/maintainable code; such case clauses must terminate with a
    /* Fallthrough */ comment to make it clear this is the case and
    indicate that a fallthrough is intended.

This reduces the chance of bugs appearing due to unintended flow through a
switch statement

Change-Id: I70fc2d1f4fd679042397dec12fd1982976646168
Signed-off-by: Daniel Boulby &lt;daniel.boulby@arm.com&gt;
</content>
</entry>
</feed>
