netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* decnet: Fix complier warning
@ 2008-10-15 12:19 Steven Whitehouse
  2008-10-15 12:37 ` Ben Hutchings
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Whitehouse @ 2008-10-15 12:19 UTC (permalink / raw)
  To: davem; +Cc: netdev, Christine Caulfield


This patch fixes a warning seen during compiling dn_dev.c. The warning is harmless
since we know that the structure length in question is less than 2^32 bytes, but
this fixes it anyway.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Christine Caulfield <ccaulfie@redhat.com>

diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c
index 2f0ac3c..d9bc69c 100644
--- a/net/decnet/dn_dev.c
+++ b/net/decnet/dn_dev.c
@@ -152,7 +152,7 @@ static struct dn_dev_parms dn_dev_list[] =  {
 
 #define DN_DEV_LIST_SIZE ARRAY_SIZE(dn_dev_list)
 
-#define DN_DEV_PARMS_OFFSET(x) ((int) ((char *) &((struct dn_dev_parms *)0)->x))
+#define DN_DEV_PARMS_OFFSET(x) ((long) ((char *) &((struct dn_dev_parms *)0)->x))
 
 #ifdef CONFIG_SYSCTL
 



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-15 22:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-15 12:19 decnet: Fix complier warning Steven Whitehouse
2008-10-15 12:37 ` Ben Hutchings
2008-10-15 12:40   ` Steven Whitehouse
2008-10-15 22:57     ` 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).