Skip to contentSkip to conversation

parisc: Remove FIXME comment

PATCH In review Nicholas Krause 3 participants 6 messages Jul 18, 2014 – Jul 19, 2014 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parisc: Remove FIXME comment

The comment for size of frame not being needed is incorrect , the function called needs this parameter.

---
 arch/parisc/kernel/signal.c | 1 -
 1 file changed, 1 deletion(-)
arch/parisc/kernel/signal.c +0 -1
index 1cba8f2..1d550b5 100644
@@ -240,7 +240,6 @@ 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));
 
 	DBG(1,"SETUP_RT_FRAME: START\n");
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 2 lines · Nicholas Krause

The comment for size of frame not being needed is incorrect , the function called needs this parameter.

Thanks for the patch Nicholas.

It has been queued up:
https://patchwork.kernel.org/patch/4587631/
and
https://patchwork.kernel.org/patch/4486231/

I will apply it at some point, but not yet.
There are other (more important) patches upcoming regarding the signal handling, and I don't want to break those at the moment.

Helge

Quoted 19 lines
---
 arch/parisc/kernel/signal.c | 1 -
 1 file changed, 1 deletion(-)
arch/parisc/kernel/signal.c +0 -1
index 1cba8f2..1d550b5 100644
@@ -240,7 +240,6 @@ 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));
 
 	DBG(1,"SETUP_RT_FRAME: START\n");
maintainer
#2 lore raw
In reply to Nicholas Krause
Quoted 2 lines · Nicholas Krause

The comment for size of frame not being needed is incorrect , the function called needs this parameter.

Actually, that's not correct. The point of the FIXME is that fram_size is only used in a debug print and could be eliminated since the internals of the function excluding the debugging statements don't use it.

James

#3 lore raw
Quoted 4 lines · James Bottomley
Quoted 2 lines · Nicholas Krause

The comment for size of frame not being needed is incorrect , the function called needs this parameter.

Quoted 8 lines

Actually, that's not correct. The point of the FIXME is that fram_size is only used in a debug print and could be eliminated since the internals of the function excluding the debugging statements don't use it.

James

So I need to need a patch removing the parameter from the function and this part of the code?
Cheers Nick

maintainer
#4 lore raw
Quoted 11 lines · Nick Krause
Quoted 9 lines · James Bottomley
Quoted 2 lines · Nicholas Krause

The comment for size of frame not being needed is incorrect , the function called needs this parameter.

Actually, that's not correct. The point of the FIXME is that fram_size is only used in a debug print and could be eliminated since the internals of the function excluding the debugging statements don't use it.

Quoted 6 lines
Quoted 3 lines

James

So I need to need a patch removing the parameter from the function and this part of the code?

Well, no, I'm not sure there's any action to take. The FIXME reminds us that there's no actual use of the frame size in the function body except for the debugging prints. The parameter could be removed if everyone who debugs the kernel agrees either to remove the debug code or remove the frame pointer from the prints, but it's probably not worth bothering about, which is why it's still there.

James

#5 lore raw
Quoted 19 lines · James Bottomley
Quoted 11 lines · Nick Krause
Quoted 9 lines · James Bottomley
Quoted 2 lines · Nicholas Krause

The comment for size of frame not being needed is incorrect , the function called needs this parameter.

Actually, that's not correct. The point of the FIXME is that fram_size is only used in a debug print and could be eliminated since the internals of the function excluding the debugging statements don't use it.

Quoted 6 lines
Quoted 3 lines

James

So I need to need a patch removing the parameter from the function and this part of the code?

Quoted 10 lines

Well, no, I'm not sure there's any action to take. The FIXME reminds us that there's no actual use of the frame size in the function body except for the debugging prints. The parameter could be removed if everyone who debugs the kernel agrees either to remove the debug code or remove the frame pointer from the prints, but it's probably not worth bothering about, which is why it's still there.

James

Ok then , seems its going through I can however write some comments to explain this
if needed.
Cheers Nick