[PATCH] ARM: OMAP2+: Prevent redefinition errors for soc.h

2012-11-09 Thread Jon Hunter
If the header soc.h is included more than once in a source (for example once directly by the source file and once indirectly by another header file), then the compiler will generate redefintion errors for the macros in soc.h. Prevent this by only allowing the content in soc.h to be included once.

Re: [PATCH] ARM: OMAP2+: Prevent redefinition errors for soc.h

2012-11-09 Thread Tony Lindgren
* Jon Hunter jon-hun...@ti.com [121109 08:21]: If the header soc.h is included more than once in a source (for example once directly by the source file and once indirectly by another header file), then the compiler will generate redefintion errors for the macros in soc.h. Prevent this by only

Re: [PATCH] ARM: OMAP2+: Prevent redefinition errors for soc.h

2012-11-09 Thread Jon Hunter
On 11/09/2012 10:22 AM, Tony Lindgren wrote: * Jon Hunter jon-hun...@ti.com [121109 08:21]: If the header soc.h is included more than once in a source (for example once directly by the source file and once indirectly by another header file), then the compiler will generate redefintion errors

Re: [PATCH] ARM: OMAP2+: Prevent redefinition errors for soc.h

2012-11-09 Thread Tony Lindgren
* Jon Hunter jon-hun...@ti.com [121109 08:31]: On 11/09/2012 10:22 AM, Tony Lindgren wrote: * Jon Hunter jon-hun...@ti.com [121109 08:21]: If the header soc.h is included more than once in a source (for example once directly by the source file and once indirectly by another header

Re: [PATCH] ARM: OMAP2+: Prevent redefinition errors for soc.h

2012-11-09 Thread Jon Hunter
On 11/09/2012 03:10 PM, Tony Lindgren wrote: * Jon Hunter jon-hun...@ti.com [121109 08:31]: On 11/09/2012 10:22 AM, Tony Lindgren wrote: * Jon Hunter jon-hun...@ti.com [121109 08:21]: If the header soc.h is included more than once in a source (for example once directly by the source file

Re: [PATCH] ARM: OMAP2+: Prevent redefinition errors for soc.h

2012-11-09 Thread Tony Lindgren
* Jon Hunter jon-hun...@ti.com [121109 15:44]: On 11/09/2012 03:10 PM, Tony Lindgren wrote: * Jon Hunter jon-hun...@ti.com [121109 08:31]: On 11/09/2012 10:22 AM, Tony Lindgren wrote: * Jon Hunter jon-hun...@ti.com [121109 08:21]: If the header soc.h is included more than once in a

Re: [PATCH] ARM: OMAP2+: Prevent redefinition errors for soc.h

2012-11-09 Thread Jon Hunter
On 11/09/2012 05:50 PM, Tony Lindgren wrote: * Jon Hunter jon-hun...@ti.com [121109 15:44]: On 11/09/2012 03:10 PM, Tony Lindgren wrote: * Jon Hunter jon-hun...@ti.com [121109 08:31]: On 11/09/2012 10:22 AM, Tony Lindgren wrote: * Jon Hunter jon-hun...@ti.com [121109 08:21]: If the header

Re: [PATCH] ARM: OMAP2+: Prevent redefinition errors for soc.h

2012-11-09 Thread Tony Lindgren
* Jon Hunter jon-hun...@ti.com [121109 15:59]: Sorry, I meant in the fixes series I have posted for dmtimer, I am adding a new function called omap_dm_timer_populate_errata() that is using cpu_is_() [1]. I had done this a while back, but now I see that we want to get away from doing that

Re: [PATCH] ARM: OMAP2+: Prevent redefinition errors for soc.h

2012-11-09 Thread Jon Hunter
On 11/09/2012 06:21 PM, Tony Lindgren wrote: * Jon Hunter jon-hun...@ti.com [121109 15:59]: Sorry, I meant in the fixes series I have posted for dmtimer, I am adding a new function called omap_dm_timer_populate_errata() that is using cpu_is_() [1]. I had done this a while back, but now I