: Compilation fix for include/linux/netdevice.h.
Subsystems (3)
PATCH 1/2 : Compilation fix for include/linux/netdevice.h.
Commit commit c346dca10840a874240c78efe3f39acf4312a1f2 ([NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS) breaks compilation with CONFIG_NET_NS set.
Fix the typo.
--- include/linux/netdevice.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/netdevice.h +1 -1
@@ -756,7 +756,7 @@ static inlinevoid dev_net_set (struct net_device *dev,const struct net *net) {#ifdef CONFIG_NET_NS - dev->nd_dev = net; + dev->nd_net = net;#endif }
Signature · 1 line
1.5.3.rc5
PATCH 2/2 : Compilation warnings under CONFIG_NET_NS.
Recent commits from YOSHIFUJI Hideaki <[email protected]> have been introduced a several compilation warnings 'assignment discards qualifiers from pointer target type' due to extra const modifier in the inline call parameters of {dev|sock|twsk}_net_set.
Drop it.
--- include/linux/netdevice.h | 2 +- include/net/inet_timewait_sock.h | 2 +- include/net/sock.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
include/linux/netdevice.h +1 -1
@@ -753,7 +753,7 @@ struct net *dev_net(const struct net_device *dev) }static inline -void dev_net_set (struct net_device *dev,const struct net *net) +void dev_net_set (struct net_device *dev,struct net *net) {#ifdef CONFIG_NET_NS dev->nd_net = net;
include/net/inet_timewait_sock.h +1 -1
@@ -219,7 +219,7 @@ struct net *twsk_net(const struct inet_timewait_sock *twsk) }static inline -void twsk_net_set (struct inet_timewait_sock *twsk,const struct net *net) +void twsk_net_set (struct inet_timewait_sock *twsk,struct net *net) {#ifdef CONFIG_NET_NS twsk->tw_net = net;
include/net/sock.h +1 -1
@@ -1358,7 +1358,7 @@ struct net *sock_net(const struct sock *sk) }static inline -void sock_net_set (struct sock *sk,const struct net *net) +void sock_net_set (struct sock *sk,struct net *net) {#ifdef CONFIG_NET_NS sk->sk_net = net;
Signature · 1 line
1.5.3.rc5
From: "Denis V. Lunev" <[email protected]>
Date: Wed, 26 Mar 2008 10:40:58 +0300
Quoted 7 lines
Commit commit
c346dca10840a874240c78efe3f39acf4312a1f2([NET] NETNS: Omitnet_device->nd_netwithoutCONFIG_NET_NS) breaks compilation withCONFIG_NET_NSset.Fix the typo.
Signed-off-by Denis V. Lunev <[email protected]>
Applied.
Too bad allmodconfig doesn't enable things which are y/n only.
David Miller
maintainerRe: [PATCH 2/2 net-2.6.26] [NETNS]: Compilation warnings under CONFIG_NET_NS.
In reply to Denis V. LunevFrom: "Denis V. Lunev" <[email protected]>
Date: Wed, 26 Mar 2008 10:40:59 +0300
Quoted 9 lines
Recent commits from YOSHIFUJI Hideaki <[email protected]> have been introduced a several compilation warnings 'assignment discards qualifiers from pointer target type' due to extra const modifier in the inline call parameters of {dev|sock|twsk}_net_set.
Drop it.
Signed-off-by Denis V. Lunev <[email protected]>
Also applied, thanks a lot.
Quoted 7 lines · David Miller
From: "Denis V. Lunev" <[email protected]>
Date: Wed, 26 Mar 2008 10:40:58 +0300Quoted 4 lines
Commit commit
c346dca10840a874240c78efe3f39acf4312a1f2([NET] NETNS: Omitnet_device->nd_netwithoutCONFIG_NET_NS) breaks compilation withCONFIG_NET_NSset.
Quoted 7 lines
Quoted 3 lines
Fix the typo.
Signed-off-by Denis V. Lunev <[email protected]>Applied.
Too bad allmodconfig doesn't enable things which are y/n only.
We are in trouble for this right now :( there we do not work with SYSFS enabled right now.
In article <[email protected]> (at Wed, 26 Mar 2008 00:47:42 -0700 (PDT)), David Miller <[email protected]> says:
Quoted 7 lines
From: "Denis V. Lunev" <[email protected]>
Date: Wed, 26 Mar 2008 10:40:58 +0300Quoted 4 lines
Commit commit
c346dca10840a874240c78efe3f39acf4312a1f2([NET] NETNS: Omitnet_device->nd_netwithoutCONFIG_NET_NS) breaks compilation withCONFIG_NET_NSset.
Quoted 7 lines
Quoted 3 lines
Fix the typo.
Signed-off-by Denis V. Lunev <[email protected]>Applied.
Too bad allmodconfig doesn't enable things which are y/n only.
Sorry for the typo.
Unfortunately, NET_NS depends on !SYSFS,
so allyesconfig might not help...
--yoshfuji
Quoted 12 lines · YOSHIFUJI Hideaki / 吉藤英明
In article <[email protected]> (at Wed, 26 Mar 2008 00:47:42 -0700 (PDT)), David Miller <[email protected]> says:
Quoted 10 lines
From: "Denis V. Lunev" <[email protected]>
Date: Wed, 26 Mar 2008 10:40:58 +0300Quoted 7 lines
Commit commit
c346dca10840a874240c78efe3f39acf4312a1f2([NET] NETNS: Omitnet_device->nd_netwithoutCONFIG_NET_NS) breaks compilation withCONFIG_NET_NSset.Fix the typo.
Signed-off-by Denis V. Lunev <[email protected]>
Quoted 8 lines
Quoted 3 lines
Applied.
Too bad allmodconfig doesn't enable things which are y/n only.
Sorry for the typo.
Unfortunately,
NET_NSdepends on !SYSFS,
so allyesconfig might not help...
Eric Biederman told us he has community acceptance for his approach and he will push sysfs per namespace in a few weeks.
Quoted 7 lines · On Wednesday 26 March 2008 10:47:42 David Miller wrote:
From: "Denis V. Lunev" <[email protected]>
Date: Wed, 26 Mar 2008 10:40:58 +0300Quoted 4 lines
Commit commit
c346dca10840a874240c78efe3f39acf4312a1f2([NET] NETNS: Omitnet_device->nd_netwithoutCONFIG_NET_NS) breaks compilation withCONFIG_NET_NSset.
Quoted 7 lines
Quoted 3 lines
Fix the typo.
Signed-off-by Denis V. Lunev <[email protected]>Applied.
Too bad allmodconfig doesn't enable things which are y/n only.
Right now NET_NS can be more or less reliably selected via:
echo '# CONFIG_SYSFS is not set' >foo
echo 'CONFIG_NET_NS=y' >>foo
KCONFIG_ALLCONFIG=foo make allmodconfig
But this trick a) doesn't work with some options, b) likely to break when someone will start selecting SYSFS.