From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 5B2F6711 for ; Wed, 6 Aug 2014 16:11:15 +0000 (UTC) Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 80AED1F8AC for ; Wed, 6 Aug 2014 16:11:13 +0000 (UTC) Received: by mail-ie0-f169.google.com with SMTP id rd18so3132280iec.0 for ; Wed, 06 Aug 2014 09:11:12 -0700 (PDT) Message-ID: <53E2539F.8040409@mojatatu.com> Date: Wed, 06 Aug 2014 12:11:11 -0400 From: Jamal Hadi Salim MIME-Version: 1.0 To: Greg KH , David Howells References: <18667.1407324523@warthog.procyon.org.uk> <20140806144519.GB14247@kroah.com> In-Reply-To: <20140806144519.GB14247@kroah.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: ksummit-discuss@lists.linuxfoundation.org Subject: Re: [Ksummit-discuss] Should .c files be discouraged from #including UAPI headers directly? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 08/06/14 10:45, Greg KH wrote: > On Wed, Aug 06, 2014 at 12:28:43PM +0100, David Howells wrote: > >> >> #include >> >> given that appropriate -I flags are supplied such that they'll fall back to >> the UAPI header if a kernel-internal header does not exist? > > Why does it matter? What works "better" if a .c file doesn't include > the uapi.h file? > IMO, it is more intuitive to have an explicit uapi/ Issue i came across recently: Old tutorials floating around specify a tc action module should stash the user header in linux/tc_act - which would work given current makefiles; but that is not what we want them to do given iproute2 picks headers off uapi/linux We cant fix old floating tutorials but by fixing the code to point to the correct header location we are essentially documenting. cheers, jamal