parisc: Remove FIXME comment
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
@@ -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
Helge Deller
maintainerQuoted 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
Signed-off-by Nicholas Krause <[email protected]>--- arch/parisc/kernel/signal.c | 1 - 1 file changed, 1 deletion(-)arch/parisc/kernel/signal.c +0
-1@@ -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" );
James Bottomley
maintainerQuoted 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
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_sizeis 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
James Bottomley
maintainerQuoted 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_sizeis 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
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_sizeis 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