All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] parisc: Remove sizeof(frame) from call to get_sigframe
@ 2014-07-05  3:20 Nicholas Krause
  2014-07-05  3:58 ` Joe Perches
  2014-07-07 12:55 ` One Thousand Gnomes
  0 siblings, 2 replies; 5+ messages in thread
From: Nicholas Krause @ 2014-07-05  3:20 UTC (permalink / raw)
  To: jejb; +Cc: deller, tiwai, jkosina, dave.anglin, joe, linux-parisc, linux-kernel

This removes the sizeof(frame) from the call to get_sigframe on line
243 in order to fix the call to this function as the sizeof in not
needed to call this function.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
 arch/parisc/kernel/signal.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c
index 1cba8f2..3b7caac 100644
--- a/arch/parisc/kernel/signal.c
+++ b/arch/parisc/kernel/signal.c
@@ -240,8 +240,7 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
 #endif
 	
 	usp = (regs->gr[30] & ~(0x01UL));
-	/*FIXME: frame_size parameter is unused, remove it. */
-	frame = get_sigframe(ka, usp, sizeof(*frame));
+	frame = get_sigframe(ka, usp)
 
 	DBG(1,"SETUP_RT_FRAME: START\n");
 	DBG(1,"setup_rt_frame: frame %p info %p\n", frame, info);
-- 
1.9.1


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

* Re: [PATCH] parisc: Remove sizeof(frame) from call to get_sigframe
  2014-07-05  3:20 [PATCH] parisc: Remove sizeof(frame) from call to get_sigframe Nicholas Krause
@ 2014-07-05  3:58 ` Joe Perches
  2014-07-05  4:01   ` Nick Krause
  2014-07-07 12:55 ` One Thousand Gnomes
  1 sibling, 1 reply; 5+ messages in thread
From: Joe Perches @ 2014-07-05  3:58 UTC (permalink / raw)
  To: Nicholas Krause
  Cc: jejb, deller, tiwai, jkosina, dave.anglin, linux-parisc, linux-kernel

On Fri, 2014-07-04 at 23:20 -0400, Nicholas Krause wrote:
> This removes the sizeof(frame) from the call to get_sigframe on line
> 243 in order to fix the call to this function as the sizeof in not
> needed to call this function.

How did you compile this?

arch/parisc/kernel/signal.c:178:get_sigframe(struct k_sigaction *ka, unsigned long sp, size_t frame_size)

> diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c
[]
> @@ -240,8 +240,7 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
[]
> -	/*FIXME: frame_size parameter is unused, remove it. */
> -	frame = get_sigframe(ka, usp, sizeof(*frame));
> +	frame = get_sigframe(ka, usp)

Nichola

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

* Re: [PATCH] parisc: Remove sizeof(frame) from call to get_sigframe
  2014-07-05  3:58 ` Joe Perches
@ 2014-07-05  4:01   ` Nick Krause
  0 siblings, 0 replies; 5+ messages in thread
From: Nick Krause @ 2014-07-05  4:01 UTC (permalink / raw)
  To: Joe Perches
  Cc: jejb, deller, tiwai, Jiri Kosina, dave.anglin, linux-parisc,
	linux-kernel

I didn't compile check it seems to be a valid line after reading this.
I will resend a new patch removing the FIX ME line.
Sorry Nick

On Fri, Jul 4, 2014 at 11:58 PM, Joe Perches <joe@perches.com> wrote:
> On Fri, 2014-07-04 at 23:20 -0400, Nicholas Krause wrote:
>> This removes the sizeof(frame) from the call to get_sigframe on line
>> 243 in order to fix the call to this function as the sizeof in not
>> needed to call this function.
>
> How did you compile this?
>
> arch/parisc/kernel/signal.c:178:get_sigframe(struct k_sigaction *ka, unsigned long sp, size_t frame_size)
>
>> diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c
> []
>> @@ -240,8 +240,7 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
> []
>> -     /*FIXME: frame_size parameter is unused, remove it. */
>> -     frame = get_sigframe(ka, usp, sizeof(*frame));
>> +     frame = get_sigframe(ka, usp)
>
> Nichola
>

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

* Re: [PATCH] parisc: Remove sizeof(frame) from call to get_sigframe
  2014-07-05  3:20 [PATCH] parisc: Remove sizeof(frame) from call to get_sigframe Nicholas Krause
  2014-07-05  3:58 ` Joe Perches
@ 2014-07-07 12:55 ` One Thousand Gnomes
  2014-07-07 13:05   ` Jiri Kosina
  1 sibling, 1 reply; 5+ messages in thread
From: One Thousand Gnomes @ 2014-07-07 12:55 UTC (permalink / raw)
  To: Nicholas Krause
  Cc: jejb, deller, tiwai, jkosina, dave.anglin, joe, linux-parisc,
	linux-kernel

On Fri,  4 Jul 2014 23:20:57 -0400
Nicholas Krause <xerofoify@gmail.com> wrote:

> This removes the sizeof(frame) from the call to get_sigframe on line
> 243 in order to fix the call to this function as the sizeof in not
> needed to call this function.

If you are going to submit patches then

- actually read what you are submitting

- check it actually compiles

- run it on the system in question and verify your changed code paths are
  used

*then* consider submitting it, otherwise all you are doing is wasting
people's time.

Alan

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

* Re: [PATCH] parisc: Remove sizeof(frame) from call to get_sigframe
  2014-07-07 12:55 ` One Thousand Gnomes
@ 2014-07-07 13:05   ` Jiri Kosina
  0 siblings, 0 replies; 5+ messages in thread
From: Jiri Kosina @ 2014-07-07 13:05 UTC (permalink / raw)
  To: One Thousand Gnomes
  Cc: Nicholas Krause, jejb, deller, tiwai, dave.anglin, joe,
	linux-parisc, linux-kernel

On Mon, 7 Jul 2014, One Thousand Gnomes wrote:

> > This removes the sizeof(frame) from the call to get_sigframe on line
> > 243 in order to fix the call to this function as the sizeof in not
> > needed to call this function.
> 
> If you are going to submit patches then
> 
> - actually read what you are submitting
> 
> - check it actually compiles
> 
> - run it on the system in question and verify your changed code paths are
>   used
> 
> *then* consider submitting it, otherwise all you are doing is wasting
> people's time.

Seconded. Nicholas, this is a third time I've seen patch from you in my 
mailbox that didn't make any sense whatsoever. Please be more careful, 
once certain reputation is gained, it's very difficult to escape it.

-- 
Jiri Kosina
SUSE Labs

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

end of thread, other threads:[~2014-07-07 13:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-05  3:20 [PATCH] parisc: Remove sizeof(frame) from call to get_sigframe Nicholas Krause
2014-07-05  3:58 ` Joe Perches
2014-07-05  4:01   ` Nick Krause
2014-07-07 12:55 ` One Thousand Gnomes
2014-07-07 13:05   ` Jiri Kosina

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.