* [PATCH] [TIPC]: Changed msg_set_bits params type
@ 2007-04-26 19:57 Jon Paul Maloy
2007-04-26 21:45 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Jon Paul Maloy @ 2007-04-26 19:57 UTC (permalink / raw)
To: netdev, David Miller, Stephens, Allan, Jon Paul Maloy, Per Liden
To ease use of sparse, as requested by Ingo Oeser.
Signed-off-by: Jon Paul Maloy <jon.maloy@ericsson.com>
---
net/tipc/msg.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/tipc/msg.h b/net/tipc/msg.h
index 5c64e55..f9f3dd0 100644
--- a/net/tipc/msg.h
+++ b/net/tipc/msg.h
@@ -69,7 +69,7 @@ static inline void msg_set_word(struct tipc_msg *m,
u32 w, u32 val)
}
static inline void msg_set_bits(struct tipc_msg *m, u32 w,
- u32 pos, u32 mask, u32 val)
+ u32 pos, __be32 mask, __be32 val)
{
val = (val & mask) << pos;
val = htonl(val);
--
1.5.0.5
///jon
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] [TIPC]: Changed msg_set_bits params type
2007-04-26 19:57 [PATCH] [TIPC]: Changed msg_set_bits params type Jon Paul Maloy
@ 2007-04-26 21:45 ` David Miller
2007-04-26 23:50 ` Jon Paul Maloy
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2007-04-26 21:45 UTC (permalink / raw)
To: jon.maloy; +Cc: netdev, allan.stephens, jon.maloy, per.liden
From: Jon Paul Maloy <jon.maloy@ericsson.com>
Date: Thu, 26 Apr 2007 15:57:55 -0400
> To ease use of sparse, as requested by Ingo Oeser.
>
> Signed-off-by: Jon Paul Maloy <jon.maloy@ericsson.com>
Did you actually run sparse to see what warnings this change
adds or deletes or are you submitting untested changes?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] [TIPC]: Changed msg_set_bits params type
2007-04-26 21:45 ` David Miller
@ 2007-04-26 23:50 ` Jon Paul Maloy
2007-04-29 4:24 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Jon Paul Maloy @ 2007-04-26 23:50 UTC (permalink / raw)
To: David Miller; +Cc: netdev, allan.stephens, jon.maloy, per.liden
David Miller wrote:
> Did you actually run sparse to see what warnings this change
> adds or deletes or are you submitting untested changes?
>
>
I did, and I am aware that sparse shows several warnings
for TIPC, which we will have to fix this asap, of course.
The patched line did not show up in the warning list, which
along with a full regression test made me conclude that we
didn't introduce a problem, at least. I see now that it
didn't cause a warning before the change either, so I was
probably too quick to try to please people. You can can
ignore the patch if you want to, but it is safe.
///jon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] [TIPC]: Changed msg_set_bits params type
2007-04-26 23:50 ` Jon Paul Maloy
@ 2007-04-29 4:24 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2007-04-29 4:24 UTC (permalink / raw)
To: jon.maloy; +Cc: netdev, allan.stephens, jon.maloy, per.liden
From: Jon Paul Maloy <jon.maloy@ericsson.com>
Date: Thu, 26 Apr 2007 19:50:42 -0400
> David Miller wrote:
> > Did you actually run sparse to see what warnings this change
> > adds or deletes or are you submitting untested changes?
> >
> >
> I did, and I am aware that sparse shows several warnings
> for TIPC, which we will have to fix this asap, of course.
> The patched line did not show up in the warning list, which
> along with a full regression test made me conclude that we
> didn't introduce a problem, at least. I see now that it
> didn't cause a warning before the change either, so I was
> probably too quick to try to please people. You can can
> ignore the patch if you want to, but it is safe.
Thanks for clarifying, but your email client corrupted the patch by
mangling the whitespace and adding newlines to break up long lines.
I feel like I write this to somebody every single day, but
could you please email patches to yourself and test that
they actually apply instead of wasting my time like this?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-29 4:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26 19:57 [PATCH] [TIPC]: Changed msg_set_bits params type Jon Paul Maloy
2007-04-26 21:45 ` David Miller
2007-04-26 23:50 ` Jon Paul Maloy
2007-04-29 4:24 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).