On 02/10/2011 06:05 AM, David Miller wrote: > From: David Miller > Date: Wed, 09 Feb 2011 14:03:23 -0800 (PST) > >> From: Xiaotian feng >> Date: Wed, 9 Feb 2011 18:52:49 +0800 >> >>> From: Xiaotian Feng >>> >>> commit a512b92 adds sysfs entry for net device group, but >>> before this commit, tun also uses group sysfs, so after this >>> commit checkin, kernel warns like this: >>> sysfs: cannot create duplicate filename '/devices/virtual/net/vnet0/group' >>> >>> Since tun has used this for years, rename sysfs under tun might >>> break existing userspace, so rename group sysfs entry for net device >>> group is a better choice. >>> >>> Signed-off-by: Xiaotian Feng >> >> I don't think we have much choice in this matter, so I have applied >> this patch, thanks! > > Wait, you didn't even build test this patch?!?!?!?! > > net/core/net-sysfs.c: In function ¡format_netdev_group¢: > net/core/net-sysfs.c:298: error: ¡const struct net_device¢ has no member named ¡netdev_group¢ > net/core/net-sysfs.c: At top level: > net/core/net-sysfs.c:333: error: ¡show_group¢ undeclared here (not in a function) > > "RFC" doesn't preclude you from at least build testing patches you > post. > > Sigh... > Sorry, my bad ... v2 patch is attatched, I've built and r/w this renamed sysfs, all work fine now. Sorry again about my carelessness ... Regards Xiaotian > >