All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel/omap seandroid-tuna-3.0
@ 2012-07-25 20:38 William Roberts
  2012-07-25 20:38 ` [PATCH] Support older compilers by wrapping smc .arch William Roberts
  0 siblings, 1 reply; 4+ messages in thread
From: William Roberts @ 2012-07-25 20:38 UTC (permalink / raw)
  To: selinux

[PATCH] Support older compilers by wrapping smc .arch

The earlier patch broke 4.4.0 builds, but it looks like 4.4.0
is no longer supported as other kernel erros spew when building
with that toolchain. However, I don't think that my patch should
be the one to break backwards compatability.

Opinions appreciated!

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] Support older compilers by wrapping smc .arch
  2012-07-25 20:38 kernel/omap seandroid-tuna-3.0 William Roberts
@ 2012-07-25 20:38 ` William Roberts
  2012-07-26 15:37   ` Stephen Smalley
  2012-07-26 15:57   ` Michal Mašek
  0 siblings, 2 replies; 4+ messages in thread
From: William Roberts @ 2012-07-25 20:38 UTC (permalink / raw)
  To: selinux; +Cc: William Roberts, William Roberts

From: William Roberts <bill.c.roberts@gmail.com>

Fixes build bug
security/smc/bridge_pub2sec.S:95: Error: selected processor does not support ARM mode `smc #0'

Signed-off-by: William Roberts <w.roberts@sta.samsung.com>
---
 security/smc/bridge_pub2sec.S |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/security/smc/bridge_pub2sec.S b/security/smc/bridge_pub2sec.S
index 30b8b35..e433380 100644
--- a/security/smc/bridge_pub2sec.S
+++ b/security/smc/bridge_pub2sec.S
@@ -74,7 +74,9 @@ return_from_irq:
 	b	label_smc
 
 label_smc:
-	.arch_extension sec
+#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
+        .arch_extension sec
+#endif
 	INVALIDATE_BTB
 	dsb
 	dmb
-- 
1.7.0.4


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Support older compilers by wrapping smc .arch
  2012-07-25 20:38 ` [PATCH] Support older compilers by wrapping smc .arch William Roberts
@ 2012-07-26 15:37   ` Stephen Smalley
  2012-07-26 15:57   ` Michal Mašek
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Smalley @ 2012-07-26 15:37 UTC (permalink / raw)
  To: William Roberts; +Cc: selinux, William Roberts

On Wed, 2012-07-25 at 13:38 -0700, William Roberts wrote:
> From: William Roberts <bill.c.roberts@gmail.com>
> 
> Fixes build bug
> security/smc/bridge_pub2sec.S:95: Error: selected processor does not support ARM mode `smc #0'
> 
> Signed-off-by: William Roberts <w.roberts@sta.samsung.com>

Thanks, applied.

> ---
>  security/smc/bridge_pub2sec.S |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/security/smc/bridge_pub2sec.S b/security/smc/bridge_pub2sec.S
> index 30b8b35..e433380 100644
> --- a/security/smc/bridge_pub2sec.S
> +++ b/security/smc/bridge_pub2sec.S
> @@ -74,7 +74,9 @@ return_from_irq:
>  	b	label_smc
>  
>  label_smc:
> -	.arch_extension sec
> +#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
> +        .arch_extension sec
> +#endif
>  	INVALIDATE_BTB
>  	dsb
>  	dmb

-- 
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Support older compilers by wrapping smc .arch
  2012-07-25 20:38 ` [PATCH] Support older compilers by wrapping smc .arch William Roberts
  2012-07-26 15:37   ` Stephen Smalley
@ 2012-07-26 15:57   ` Michal Mašek
  1 sibling, 0 replies; 4+ messages in thread
From: Michal Mašek @ 2012-07-26 15:57 UTC (permalink / raw)
  To: William Roberts; +Cc: selinux, William Roberts

On 07/25/2012 10:38 PM, William Roberts wrote:
> From: William Roberts <bill.c.roberts@gmail.com>
> 
> Fixes build bug
> security/smc/bridge_pub2sec.S:95: Error: selected processor does not support ARM mode `smc #0'
> 
> Signed-off-by: William Roberts <w.roberts@sta.samsung.com>
> ---
>  security/smc/bridge_pub2sec.S |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/security/smc/bridge_pub2sec.S b/security/smc/bridge_pub2sec.S
> index 30b8b35..e433380 100644
> --- a/security/smc/bridge_pub2sec.S
> +++ b/security/smc/bridge_pub2sec.S
> @@ -74,7 +74,9 @@ return_from_irq:
>  	b	label_smc
>  
>  label_smc:
> -	.arch_extension sec
> +#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6

Should the ".arch_extension sec" line be present when compiling with
some future compiler (eg. 5.1)? If so then this condition is not correct
because it will not be met if the major number is greater than 4 and
minor number is lower than 6 (eg. version 5.1). I do not know the proper
syntax but the condition should look something like this:

#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)

> +        .arch_extension sec
> +#endif
>  	INVALIDATE_BTB
>  	dsb
>  	dmb

--
Michal Mašek


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-26 15:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-25 20:38 kernel/omap seandroid-tuna-3.0 William Roberts
2012-07-25 20:38 ` [PATCH] Support older compilers by wrapping smc .arch William Roberts
2012-07-26 15:37   ` Stephen Smalley
2012-07-26 15:57   ` Michal Mašek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.