From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751394AbbIFGl5 (ORCPT ); Sun, 6 Sep 2015 02:41:57 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:35409 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750867AbbIFGlt (ORCPT ); Sun, 6 Sep 2015 02:41:49 -0400 Date: Sun, 6 Sep 2015 08:41:45 +0200 From: Ingo Molnar To: Mikko Rapeli Cc: linux-kernel@vger.kernel.org, Andy Lutomirski , Andrew Morton , Denys Vlasenko , Brian Gerst , Peter Zijlstra , Borislav Petkov , "H. Peter Anvin" , Linus Torvalds , Oleg Nesterov , Thomas Gleixner Subject: Re: [PATCH 15/15] x86/headers: Remove Message-ID: <20150906064145.GA2364@gmail.com> References: <1441438363-9999-1-git-send-email-mingo@kernel.org> <1441438363-9999-16-git-send-email-mingo@kernel.org> <20150905105753.GC9187@lakka.kapsi.fi> <20150905115943.GA15548@gmail.com> <20150905121108.GD9187@lakka.kapsi.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150905121108.GD9187@lakka.kapsi.fi> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mikko Rapeli wrote: > On Sat, Sep 05, 2015 at 01:59:43PM +0200, Ingo Molnar wrote: > > > > * Mikko Rapeli wrote: > > > > > > diff --git a/arch/x86/include/uapi/asm/sigcontext32.h b/arch/x86/include/uapi/asm/sigcontext32.h > > > > index a92b0f0dc09e..8b870175befa 100644 > > > > --- a/arch/x86/include/uapi/asm/sigcontext32.h > > > > +++ b/arch/x86/include/uapi/asm/sigcontext32.h > > > > @@ -3,6 +3,6 @@ > > > > > > > > /* This is a legacy file - all the type definitions are in sigcontext.h: */ > > > > > > > > -#include > > > > +#include > > > > > > This needs to be without uapi directory in path. > > > > What do you mean? > > There is not uapi in path in userspace so it fails to compile: Ok, I see. So it's not common, but I don't think there's an outright prohibition for uapi headers to refer to each other: arch/hexagon/include/uapi/asm/signal.h:#include arch/mips/include/uapi/asm/siginfo.h:#include arch/x86/include/uapi/asm/sigcontext32.h:#include There are a couple of solutions: - copy the uapi/ directory if you take the kernel headers as-is - adapt the headers to the old user-space layout when you import them. (i.e. do a sed -i 's/ This is the fix: > > --- a/arch/x86/include/uapi/asm/sigcontext32.h > +++ b/arch/x86/include/uapi/asm/sigcontext32.h > @@ -3,6 +3,6 @@ > > /* This is a legacy file - all the type definitions are in sigcontext.h: */ > > -#include > +#include There's no asm/sigcontext.h file anymore if you apply my patches - but we could reintroduce it to make the copy of UAPI headers to user-space work as-is. Thanks, Ingo