From: Andre Przywara <andre.przywara@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/7] ARM: prepare armv7.h to be included from assembly source
Date: Thu, 04 Jul 2013 09:38:27 +0200 [thread overview]
Message-ID: <51D52673.1090308@linaro.org> (raw)
In-Reply-To: <20130628100037.3820.AA925319@jp.panasonic.com>
On 06/28/2013 03:00 AM, Masahiro Yamada wrote:
> Hello Andre,
Hi,
thanks a lot for the review! I included most of the fixes you proposed
in the next version I will send out soon.
Very useful comments, thanks again!
>> diff --git a/arch/arm/include/asm/armv7.h b/arch/arm/include/asm/armv7.h
>> index a73630b..20caa7c 100644
>> --- a/arch/arm/include/asm/armv7.h
>> +++ b/arch/arm/include/asm/armv7.h
>> @@ -23,7 +23,6 @@
>> */
>> #ifndef ARMV7_H
>> #define ARMV7_H
>> -#include <linux/types.h>
>>
>> /* Cortex-A9 revisions */
>> #define MIDR_CORTEX_A9_R0P1 0x410FC091
>> @@ -57,6 +56,9 @@
>> #define ARMV7_CLIDR_CTYPE_INSTRUCTION_DATA 3
>> #define ARMV7_CLIDR_CTYPE_UNIFIED 4
>>
>> +#ifndef __ASSEMBLY__
>> +#include <linux/types.h>
>> +
>> /*
>> * CP15 Barrier instructions
>> * Please note that we have separate barrier instructions in ARMv7
>> @@ -74,4 +76,6 @@ void v7_outer_cache_inval_all(void);
>> void v7_outer_cache_flush_range(u32 start, u32 end);
>> void v7_outer_cache_inval_range(u32 start, u32 end);
>>
>> +#endif /* ! __ASSEMBLY__ */
>> +
>> #endif
>
>
> Instread of moving #include <linux/types.h> line,
> I'd like to suggest to add #ifndef __ASSEMBLY__ guard
> to include/linux/types.h.
> I think this is a more correct way of fixing.
>
>
> If I see Linux Kernel "include/linux/types.h",
> typedefs are placed?inside #ifndef __ASSEMBLEY__ .. #endif.
>
> On the other hand, "include/linux/types.h"?of U-Boot
> does not have #ifndef __ASSEMBLY__ guard.
I tried, but finally decided against it. It is not clear what parts of
types.h are actually usable from assembly files, so I stuck with my
solution. Feel free to send a follow-up patch if you think it's useful.
Regards,
Andre.
next prev parent reply other threads:[~2013-07-04 7:38 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-13 11:01 [U-Boot] [PATCH v2 0/7] ARMv7: Add HYP mode switching support Andre Przywara
2013-06-13 11:01 ` [U-Boot] [PATCH v2 1/7] ARM: prepare armv7.h to be included from assembly source Andre Przywara
2013-06-28 1:00 ` Masahiro Yamada
2013-07-04 7:38 ` Andre Przywara [this message]
2013-06-13 11:01 ` [U-Boot] [PATCH v2 2/7] ARM: add secure monitor handler to switch to non-secure state Andre Przywara
2013-06-28 3:00 ` Masahiro Yamada
2013-06-13 11:01 ` [U-Boot] [PATCH v2 3/7] ARM: add assembly routine " Andre Przywara
2013-06-19 22:27 ` Christoffer Dall
2013-06-28 3:09 ` Masahiro Yamada
2013-06-13 11:01 ` [U-Boot] [PATCH v2 4/7] ARM: switch to non-secure state during bootm execution Andre Przywara
2013-06-19 23:13 ` Christoffer Dall
2013-06-28 3:18 ` Masahiro Yamada
2013-07-04 7:42 ` Andre Przywara
2013-06-13 11:01 ` [U-Boot] [PATCH v2 5/7] ARM: add SMP support for non-secure switch Andre Przywara
2013-06-19 23:27 ` Christoffer Dall
2013-06-28 3:22 ` Masahiro Yamada
2013-06-13 11:01 ` [U-Boot] [PATCH v2 6/7] ARM: extend non-secure switch to also go into HYP mode Andre Przywara
2013-06-19 23:40 ` Christoffer Dall
2013-06-21 14:38 ` Nikolay Nikolaev
2013-06-25 8:27 ` Andre Przywara
2013-06-28 3:51 ` Masahiro Yamada
2013-07-04 11:29 ` Andre Przywara
2013-06-13 11:01 ` [U-Boot] [PATCH v2 7/7] ARM: VExpress: enable ARMv7 virt support for VExpress A15 Andre Przywara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51D52673.1090308@linaro.org \
--to=andre.przywara@linaro.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox