From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: Kernel header changes break glibc build Date: Wed, 6 Dec 2006 20:34:12 +0000 Message-ID: <20061206203411.GI4587@ftp.linux.org.uk> References: <1165148731.12649.51.camel@pmac.infradead.org> <20061204091341.GM8693@postel.suug.ch> <1165410114.5253.218.camel@pmac.infradead.org> <20061206134308.GL9556@sunsite.mff.cuni.cz> <20061206135931.GB8693@postel.suug.ch> <1165414039.5253.233.camel@pmac.infradead.org> <20061206141841.GN9556@sunsite.mff.cuni.cz> <20061206143146.GD8693@postel.suug.ch> <20061206171336.GB4587@ftp.linux.org.uk> <20061206202639.GG8693@postel.suug.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jakub Jelinek , David Woodhouse , Ulrich Drepper , "Joseph S. Myers" , netdev@vger.kernel.org, libc-alpha@sourceware.org, akpm@osdl.org, "David S. Miller" Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:58732 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937611AbWLFUeS (ORCPT ); Wed, 6 Dec 2006 15:34:18 -0500 To: Thomas Graf Content-Disposition: inline In-Reply-To: <20061206202639.GG8693@postel.suug.ch> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Wed, Dec 06, 2006 at 09:26:39PM +0100, Thomas Graf wrote: > * Al Viro 2006-12-06 17:13 > > On Wed, Dec 06, 2006 at 03:31:46PM +0100, Thomas Graf wrote: > > > > > At the time they were added they were meant to be exported but netlink > > > has evolved and we now have a type safe API. > > > > Where? AFAICS, netlink might be considered type-safe only within an > > address family... > > The new interface can be found in net/netlink.h, it obsoletes the > old interface which is spread over linux/netlink.h and linux/rtnetlink.h ... and for different address families you have conflicting policies. You can't tell if ATTR_... means __le16, __be32, 16byte-array or something else - the answer depends on the code interpreting the damn thing. Moreover, you get zero warnings if you use wrong accessor to decode.