hi David, * David Miller <davem@davemloft.net> wrote:this broke !COMPAT builds in current -git. Fix below. NOTE: fix is just a quick guess. Ingo -----------------------> Subject: net: ipv6 build fix From: Ingo Molnar <mingo@elte.hu> Date: Wed Apr 30 22:32:09 CEST 2008 x86.git testing found the following build error on -git: ERROR: "compat_mc_getsockopt" [net/ipv6/ipv6.ko] undefined! with this config: http://redhat.com/~mingo/misc/config-Wed_Apr_30_22_23_37_CEST_2008.bad this hits on !COMPAT + IPV6 modular builds. It is caused by commit 42908c69f6 ("net: Add compat support for getsockopt (MCAST_MSFILTER)"). this fix here is just a quick guess - i _suspect_ that do_ipv6_getsockopt() will just DTRT and return -EINVAL but i havent checked. It obviously solves the build issue. Signed-off-by: Ingo Molnar <mingo@elte.hu> --- net/ipv6/ipv6_sockglue.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux/net/ipv6/ipv6_sockglue.c =================================================================== --- linux.orig/net/ipv6/ipv6_sockglue.c +++ linux/net/ipv6/ipv6_sockglue.c @@ -1089,9 +1089,11 @@ int ipv6_getsockopt(struct sock *sk, int if(level != SOL_IPV6) return -ENOPROTOOPT; +#ifdef CONFIG_COMPAT if (optname == MCAST_MSFILTER) return compat_mc_getsockopt(sk, level, optname, optval, optlen, ipv6_getsockopt); +#endif err = do_ipv6_getsockopt(sk, level, optname, optval, optlen); #ifdef CONFIG_NETFILTER -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Karl Meyer | PROBLEM: 2.6.23-rc "NETDEV WATCHDOG: eth0: transmit timed out" |
| Greg Kroah-Hartman | [PATCH 040/196] kobject: add kobject_add_ng function |
| Steven Rostedt | [RFC PATCH v4] Unified trace buffer |
| Dave Airlie | [git pull] drm patches for 2.6.27 final |
| Krzysztof Halasa | Re: [PATCH v2] Re: WAN: new PPP code for generic HDLC |
| David Miller | Re: [PATCH] Expose netdevice dev_id through sysfs |
| Jay Cliburn | Re: atl1 64-bit => 32-bit DMA borkage (reproducible, bisected) |
| Evgeniy Polyakov | [resend take 2 0/4] Distributed storage. |
git: | |
| Andrew Morton | Untracked working tree files |
| Miklos Vajna | [rfc] git submodules howto |
| Ben Collins | Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins |
| Jon Smirl | ! [rejected] master -> master (non-fast forward) |
| rancor | How to copy/pipe console buffert to file? |
| Pieter Verberne | File collision while using pkg_add |
| Greg Thomas | Re: Is it possible to fix a stale NFS hadle without rebooting? |
| Didier Wiroth | win32-codecs, avi and amd64 question |
| Netfilter kernel module | 9 hours ago | Linux kernel |
| serial driver xmit problem | 12 hours ago | Linux kernel |
| Why Windows is better than Linux | 12 hours ago | Linux general |
| How can I see my kernel messages in vt12? | 19 hours ago | Linux kernel |
| Grub | 1 day ago | Linux general |
| vmalloc_fault handling in x86_64 | 1 day ago | Linux kernel |
| epoll_wait()ing on epoll FD | 1 day ago | Linux kernel |
| Framebuffer in x86_64 causes problems to multiseat | 1 day ago | Linux kernel |
| Difference between 2.4 and 2.6 regarding thread creation | 1 day ago | Linux general |
| Compiling gfs2 on kernel 2.6.27 | 2 days ago | Linux kernel |
