include/net/rtnetlink.h: In function ‘rtnl_msg_family’:
include/net/rtnetlink.h:22:21: warning: comparison between signed and
    unsigned integer expressions [-Wsign-compare]

Seen with gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2).

Signed-off-by: Chuck Lever <chuck.le...@oracle.com>
---

 include/net/netlink.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/net/netlink.h b/include/net/netlink.h
index 27c7ab7..0c46179 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -285,7 +285,7 @@ static inline void *nlmsg_data(const struct nlmsghdr *nlh)
  * nlmsg_len - length of message payload
  * @nlh: netlink message header
  */
-static inline int nlmsg_len(const struct nlmsghdr *nlh)
+static inline size_t nlmsg_len(const struct nlmsghdr *nlh)
 {
        return nlh->nlmsg_len - NLMSG_HDRLEN;
 }


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel&#174; Ethernet, visit 
http://communities.intel.com/community/wired

Reply via email to