Thread (19 messages) 19 messages, 7 authors, 2010-07-06

Re: [PATCH net-next-2.6 1/3] ethtool: Change ethtool_op_set_flags to validate flags

From: David Miller <davem@davemloft.net>
Date: 2010-07-03 05:06:58

From: Randy Dunlap <redacted>
Date: Fri, 2 Jul 2010 09:55:14 -0700
On Wed, 30 Jun 2010 13:44:32 +0100 Ben Hutchings wrote:
quoted
@@ -457,7 +457,7 @@ int ethtool_op_set_tso(struct net_device *dev, u32 data);
 u32 ethtool_op_get_ufo(struct net_device *dev);
 int ethtool_op_set_ufo(struct net_device *dev, u32 data);
 u32 ethtool_op_get_flags(struct net_device *dev);
-int ethtool_op_set_flags(struct net_device *dev, u32 data);
+int ethtool_op_set_flags(struct net_device *dev, u32 data, u32 supported);
That one-line change is missing from linux-next-20100702, causing:

drivers/infiniband/ulp/ipoib/ipoib_ethtool.c:157: warning: initialization from incompatible pointer type
Strange, it's in net-next-2.6 for sure:

davem@sunset:~/src/GIT/net-next-2.6$ egrep ethtool_op_set_flags include/linux/ethtool.h
int ethtool_op_set_flags(struct net_device *dev, u32 data, u32 supported);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help