* [PATCH] parisc: Remove FIXME comment
@ 2014-07-18 20:37 Nicholas Krause
2014-07-18 20:49 ` Helge Deller
2014-07-18 21:03 ` James Bottomley
0 siblings, 2 replies; 6+ messages in thread
From: Nicholas Krause @ 2014-07-18 20:37 UTC (permalink / raw)
To: jejb; +Cc: deller, tiwai, jkosina, joe, dave.anglin, linux-parisc,
linux-kernel
The comment for size of frame not being needed is incorrect , the
function called needs this parameter.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
arch/parisc/kernel/signal.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c
index 1cba8f2..1d550b5 100644
--- a/arch/parisc/kernel/signal.c
+++ b/arch/parisc/kernel/signal.c
@@ -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");
--
1.9.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] parisc: Remove FIXME comment
2014-07-18 20:37 [PATCH] parisc: Remove FIXME comment Nicholas Krause
@ 2014-07-18 20:49 ` Helge Deller
2014-07-18 21:03 ` James Bottomley
1 sibling, 0 replies; 6+ messages in thread
From: Helge Deller @ 2014-07-18 20:49 UTC (permalink / raw)
To: Nicholas Krause, jejb
Cc: tiwai, jkosina, joe, dave.anglin, linux-parisc, linux-kernel
On 07/18/2014 10:37 PM, Nicholas Krause wrote:
> 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
>
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> ---
> arch/parisc/kernel/signal.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c
> index 1cba8f2..1d550b5 100644
> --- a/arch/parisc/kernel/signal.c
> +++ b/arch/parisc/kernel/signal.c
> @@ -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");
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] parisc: Remove FIXME comment
2014-07-18 20:37 [PATCH] parisc: Remove FIXME comment Nicholas Krause
2014-07-18 20:49 ` Helge Deller
@ 2014-07-18 21:03 ` James Bottomley
2014-07-19 2:25 ` Nick Krause
1 sibling, 1 reply; 6+ messages in thread
From: James Bottomley @ 2014-07-18 21:03 UTC (permalink / raw)
To: Nicholas Krause
Cc: deller, tiwai, jkosina, joe, dave.anglin, linux-parisc,
linux-kernel
On Fri, 2014-07-18 at 16:37 -0400, Nicholas Krause wrote:
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] parisc: Remove FIXME comment
2014-07-18 21:03 ` James Bottomley
@ 2014-07-19 2:25 ` Nick Krause
2014-07-19 5:20 ` James Bottomley
0 siblings, 1 reply; 6+ messages in thread
From: Nick Krause @ 2014-07-19 2:25 UTC (permalink / raw)
To: James Bottomley
Cc: deller, tiwai, Jiri Kosina, Joe Perches, dave.anglin,
linux-parisc, linux-kernel@vger.kernel.org
On Fri, Jul 18, 2014 at 5:03 PM, James Bottomley
<James.Bottomley@hansenpartnership.com> wrote:
> On Fri, 2014-07-18 at 16:37 -0400, Nicholas Krause wrote:
>> 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
>
>
So I need to need a patch removing the parameter from the function
and this part of the code?
Cheers Nick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] parisc: Remove FIXME comment
2014-07-19 2:25 ` Nick Krause
@ 2014-07-19 5:20 ` James Bottomley
2014-07-19 5:28 ` Nick Krause
0 siblings, 1 reply; 6+ messages in thread
From: James Bottomley @ 2014-07-19 5:20 UTC (permalink / raw)
To: Nick Krause
Cc: deller, tiwai, Jiri Kosina, Joe Perches, dave.anglin,
linux-parisc, linux-kernel@vger.kernel.org
On Fri, 2014-07-18 at 22:25 -0400, Nick Krause wrote:
> On Fri, Jul 18, 2014 at 5:03 PM, James Bottomley
> <James.Bottomley@hansenpartnership.com> wrote:
> > On Fri, 2014-07-18 at 16:37 -0400, Nicholas Krause wrote:
> >> 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
> >
> >
>
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] parisc: Remove FIXME comment
2014-07-19 5:20 ` James Bottomley
@ 2014-07-19 5:28 ` Nick Krause
0 siblings, 0 replies; 6+ messages in thread
From: Nick Krause @ 2014-07-19 5:28 UTC (permalink / raw)
To: James Bottomley
Cc: deller, tiwai, Jiri Kosina, Joe Perches, dave.anglin,
linux-parisc, linux-kernel@vger.kernel.org
On Sat, Jul 19, 2014 at 1:20 AM, James Bottomley
<James.Bottomley@hansenpartnership.com> wrote:
> On Fri, 2014-07-18 at 22:25 -0400, Nick Krause wrote:
>> On Fri, Jul 18, 2014 at 5:03 PM, James Bottomley
>> <James.Bottomley@hansenpartnership.com> wrote:
>> > On Fri, 2014-07-18 at 16:37 -0400, Nicholas Krause wrote:
>> >> 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
>> >
>> >
>>
>> 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
>
>
Ok then , seems its going through I can however write some comments to
explain this
if needed.
Cheers Nick
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-07-19 5:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18 20:37 [PATCH] parisc: Remove FIXME comment Nicholas Krause
2014-07-18 20:49 ` Helge Deller
2014-07-18 21:03 ` James Bottomley
2014-07-19 2:25 ` Nick Krause
2014-07-19 5:20 ` James Bottomley
2014-07-19 5:28 ` Nick Krause
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.