* [PATCH] tipc: trivial endian annotation in debug statement
@ 2008-11-08 1:12 Harvey Harrison
2008-11-08 7:38 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Harvey Harrison @ 2008-11-08 1:12 UTC (permalink / raw)
To: David Miller; +Cc: linux-netdev
Use htonl rather than ntohl on a u32.
net/tipc/name_table.c:557:2: warning: cast to restricted __be32
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
net/tipc/name_table.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/tipc/name_table.c b/net/tipc/name_table.c
index cd72e22..acab41a 100644
--- a/net/tipc/name_table.c
+++ b/net/tipc/name_table.c
@@ -555,7 +555,7 @@ static struct name_seq *nametbl_find_seq(u32 type)
struct name_seq *ns;
dbg("find_seq %u,(%u,0x%x) table = %p, hash[type] = %u\n",
- type, ntohl(type), type, table.types, hash(type));
+ type, htonl(type), type, table.types, hash(type));
seq_head = &table.types[hash(type)];
hlist_for_each_entry(ns, seq_node, seq_head, ns_list) {
--
1.6.0.3.756.gb776d
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tipc: trivial endian annotation in debug statement
2008-11-08 1:12 [PATCH] tipc: trivial endian annotation in debug statement Harvey Harrison
@ 2008-11-08 7:38 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-11-08 7:38 UTC (permalink / raw)
To: harvey.harrison; +Cc: netdev
From: Harvey Harrison <harvey.harrison@gmail.com>
Date: Fri, 07 Nov 2008 17:12:07 -0800
> Use htonl rather than ntohl on a u32.
> net/tipc/name_table.c:557:2: warning: cast to restricted __be32
>
> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Applied thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-08 7:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-08 1:12 [PATCH] tipc: trivial endian annotation in debug statement Harvey Harrison
2008-11-08 7:38 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox