Skip to contentSkip to conversation

parisc: Remove sizeof(frame) from call to get_sigframe

PATCH In review Nicholas Krause 4 participants 5 messages Jul 5, 2014 – Jul 7, 2014 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parisc: Remove sizeof(frame) from call to get_sigframe

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.

---
 arch/parisc/kernel/signal.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/parisc/kernel/signal.c +1 -2
index 1cba8f2..3b7caac 100644
@@ -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);
Signature · 1 line
1.9.1
#1 lore raw
Quoted 3 lines · Nicholas Krause

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)

arch/parisc/kernel/signal.c

Quoted 1 line
arch/parisc/kernel/signal.c +0 -0

[]

arch/parisc/kernel/signal.c setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,

Quoted 1 line
arch/parisc/kernel/signal.c +0 -0
@@ -240,8 +240,7 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,

[]

arch/parisc/kernel/signal.c setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, · line 243

Quoted 3 lines
arch/parisc/kernel/signal.c +1 -2
-	/*FIXME: frame_size parameter is unused, remove it. */
-	frame = get_sigframe(ka, usp, sizeof(*frame));
+	frame = get_sigframe(ka, usp)

Nichola

#2 lore raw

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

Quoted 19 lines · Joe Perches
Quoted 3 lines · Nicholas Krause

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)

arch/parisc/kernel/signal.c

Quoted 1 line
arch/parisc/kernel/signal.c +0 -0

[]

arch/parisc/kernel/signal.c setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,

Quoted 1 line
arch/parisc/kernel/signal.c +0 -0
@@ -240,8 +240,7 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,

[]

arch/parisc/kernel/signal.c setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, · line 243

Quoted 3 lines
arch/parisc/kernel/signal.c +1 -2
-     /*FIXME: frame_size parameter is unused, remove it. */
-     frame = get_sigframe(ka, usp, sizeof(*frame));
+     frame = get_sigframe(ka, usp)

Nichola

#3 lore raw
In reply to Nicholas Krause
Quoted 3 lines · On Fri, 4 Jul 2014 23:20:57 -0400 Nicholas Krause <[email protected]> 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

#4 lore raw
Quoted 8 lines · One Thousand Gnomes
Quoted 3 lines

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

Quoted 7 lines

- 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.

Signature · 2 lines
Jiri Kosina
SUSE Labs