<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/arch/sandbox/include/asm/bitops.h, branch v2015.01</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/arch/sandbox/include/asm/bitops.h?h=v2015.01</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/arch/sandbox/include/asm/bitops.h?h=v2015.01'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2014-06-23T21:37:24Z</updated>
<entry>
<title>sandbox: change local_irq_save() to macro</title>
<updated>2014-06-23T21:37:24Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.m@jp.panasonic.com</email>
</author>
<published>2014-06-12T03:26:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1638d98052e0d03e46d504b21ec1b88ecfcd87aa'/>
<id>urn:sha1:1638d98052e0d03e46d504b21ec1b88ecfcd87aa</id>
<content type='text'>
local_irq_save() should be a macro, not a function
because local_irq_save() saves flag to the given argument.

GCC is silent about this issue, but Clang warns:

In file included from lib/asm-offsets.c:15:
In file included from include/common.h:20:
In file included from include/linux/bitops.h:110:
arch/sandbox/include/asm/bitops.h:59:17:
 warning: variable 'flags' is uninitialized when used here
      [-Wuninitialized]
        local_irq_save(flags);
                       ^~~~~

That change causes another warning:

In file included from include/linux/bitops.h:110:0,
                 from include/common.h:20,
                 from lib/asm-offsets.c:15:
arch/sandbox/include/asm/bitops.h: In function ‘test_and_set_bit’:
arch/sandbox/include/asm/bitops.h:56:16: warning: unused variable ‘flags’ [-Wunused-variable]

So, flags should be set to __always_unused.

Signed-off-by: Masahiro Yamada &lt;yamada.m@jp.panasonic.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Jeroen Hofstee &lt;jeroen@myspectrum.nl&gt;
Acked-by: Simon Glass &lt;sjg@chromium.org&gt;
Acked-by: Jeroen Hofstee &lt;jeroen@myspectrum.nl&gt;
</content>
</entry>
<entry>
<title>sandbox: Add architecture header files</title>
<updated>2011-10-17T20:45:50Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2011-10-10T08:22:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=744d9859a71c515118457fecb7a58674b600e81a'/>
<id>urn:sha1:744d9859a71c515118457fecb7a58674b600e81a</id>
<content type='text'>
This adds required header files for the sandbox architecture, and a basic
description of what sandbox is (README.sandbox).

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
