From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932563AbYEUJ5Q (ORCPT ); Wed, 21 May 2008 05:57:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753675AbYEUJ45 (ORCPT ); Wed, 21 May 2008 05:56:57 -0400 Received: from stinky.trash.net ([213.144.137.162]:35228 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752004AbYEUJ45 (ORCPT ); Wed, 21 May 2008 05:56:57 -0400 Message-ID: <4833F1E7.5050700@trash.net> Date: Wed, 21 May 2008 11:56:55 +0200 From: Patrick McHardy User-Agent: Mozilla-Thunderbird 2.0.0.12 (X11/20080405) MIME-Version: 1.0 To: David Miller CC: greg@nest.cx, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, Sam Ravnborg Subject: Re: include/linux/netfilter.h after make headers_install is incomplete References: <20080520.142121.15017166.davem@davemloft.net> In-Reply-To: <20080520.142121.15017166.davem@davemloft.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Miller wrote: > From: "Greg Steuck" > Date: Tue, 20 May 2008 11:44:56 -0700 > >> I ran make headers_install in 2.6.25 tree and the installed netfilter.h is >> not complete. Namely, it declares >> union nf_inet_addr { >> __u32 all[4]; >> __be32 ip; >> __be32 ip6[4]; >> ... >> } >> >> The __u32, __be32 types are declared in and the #include >> directive is removed by the installation process. This in turn makes some >> applications unbuildable against such an exported tree, e.g. >> >> busybox-1.10.1/networking/tcpudp.c:#include >> >> If I correctly understand the purpose of make headers_install, it is >> supposed to generate an API for applications. I could certainly >> make tcpudp.c include linux/types.h, but given that the application >> does not even use nf_inet_addr, this would be the wrong place for >> the fix. These types are used by countless header files. I don't know why types.h is stripped, I guess this question can be best answered by whoever maintains the header-install stuff (Sam? I don't know).