linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 1/1] uml: fix lvalue for gcc4
@ 2005-07-09 11:01 blaisorblade
  2005-07-09 11:07 ` Russell King
  0 siblings, 1 reply; 8+ messages in thread
From: blaisorblade @ 2005-07-09 11:01 UTC (permalink / raw)
  To: akpm; +Cc: jdike, linux-kernel, user-mode-linux-devel, blaisorblade


This construct is refused by GCC 4, so here's the fix.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---

 linux-2.6.git-paolo/arch/um/sys-x86_64/signal.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN arch/um/sys-x86_64/signal.c~uml-fix-for-gcc4-lvalue arch/um/sys-x86_64/signal.c
--- linux-2.6.git/arch/um/sys-x86_64/signal.c~uml-fix-for-gcc4-lvalue	2005-07-09 13:01:03.000000000 +0200
+++ linux-2.6.git-paolo/arch/um/sys-x86_64/signal.c	2005-07-09 13:01:03.000000000 +0200
@@ -168,7 +168,7 @@ int setup_signal_stack_si(unsigned long 
 
 	frame = (struct rt_sigframe __user *)
 		round_down(stack_top - sizeof(struct rt_sigframe), 16) - 8;
-	((unsigned char *) frame) -= 128;
+	frame -= 128 / sizeof(frame);
 
 	if (!access_ok(VERIFY_WRITE, fp, sizeof(struct _fpstate)))
 		goto out;
_

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

end of thread, other threads:[~2005-07-14  9:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-09 11:01 [patch 1/1] uml: fix lvalue for gcc4 blaisorblade
2005-07-09 11:07 ` Russell King
2005-07-11 19:12   ` unregister_netdevice: waiting for tap24 to become free Peter
2005-07-11 22:20     ` [uml-devel] " Blaisorblade
2005-07-11 22:26       ` Peter
2005-07-11 22:47         ` Blaisorblade
2005-07-14  9:20           ` [uml-devel] " Peter
2005-07-11 22:05   ` [uml-devel] Re: [patch 1/1] uml: fix lvalue for gcc4 Blaisorblade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).