Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753917AbbFRH7V (ORCPT ); Thu, 18 Jun 2015 03:59:21 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:60155 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753428AbbFRH67 (ORCPT ); Thu, 18 Jun 2015 03:58:59 -0400 From: Arnd Bergmann To: mtk.manpages@gmail.com Cc: Andy Lutomirski , "linux-kernel@vger.kernel.org" , Linux API , David Woodhouse Subject: Re: UAPI headers including non-UAPI headers by accident? Date: Thu, 18 Jun 2015 09:58:52 +0200 Message-ID: <9141492.JqTlmk9dHk@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:WuRFr4ROTI965HqQZZYxyWYFWmEvpJo/06pIIkWmHdzE0eac64Q Zj+TkYFfrA6iub3oy5FPRolbJZHy+4ikxzwh5uQW1cFpelkWw0VJPalvgXE6O7el8OITD4G TrglX/UAyDvbZwBLKcksCDeUzMKKyRw8y4zU1POxNs4P+1T7TfwbpmGM1VRmrsGVY4sep1X yQoKIxCztKp1SQIVbH4Gw== X-UI-Out-Filterresults: notjunk:1;V01:K0:TVVjuH2iCz8=:pn23WG6iv4e15+zPD5teq1 2WF1L1J7XaG9SsFU3q2JbZgKHZ8yxgFUTjlOmFTY/L9nZcK50mGUyHnkNyxoBHp7ZgAruE1oI tpJcxTg1BUMLmrLwcJ0OFrL9FUOgQ2/SbD9TP4Kuuxq73L6sKdPYRlRgvGrZk8dDOauB0I3Oy SeszJ6Zep/R787DbymwtrJpflhTIigeRGsgqU6YXwhFQtqrNPJIa1fsvZZKb8MPkHvJFtyFue 5W+dHV/W3tc4kgTS3jWV2cNWxM8hCwFYITXqT8IiXzYqQyzeOaIGLwtZFBlRUPT/twLk1IoKQ ooBH04q6WjByMnTLjEKdQ/CUou9MREx5zx7NXhGGWN3rt9YW12tudo2z2HspDWcdAoWjajjcj 4FEsYw1rrk12938OjYEvNvQysw4803JmYWUaq+QmZ0Oo5Vds6MaxWy8zRMk+4tI8oCBl2MzKd MjI7QVnQVm0DHBFlBteuslnjym+0Ff1YezOCCtkKjOgj3AUZLxvckq/mgrO6MSxac/SVK92b2 VZb4lVdzPxHQerTbHe43hVAkn8lGioOY8CebysFvj+EfsInIPu24BSoZH+uHtmYEAjghaNyz0 NPta3ModFAlgHKbxpAqOlu2oQMnzt3aLcaPFIb7BQd3z8kJee1xe1LPA8SC0lalDGJrKXWmNM PFPn8f8kuv+n6v9IAuYvHxMNo5cvPz3gb/DBtRaxV2o0rYA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1412 Lines: 44 On Thursday 18 June 2015 09:52:36 Michael Kerrisk wrote: > [CC += David] > > On 2 June 2015 at 18:36, Andy Lutomirski wrote: > > include/uapi/linux/signal.h starts with: > > > > #ifndef _UAPI_LINUX_SIGNAL_H > > #define _UAPI_LINUX_SIGNAL_H > > > > #include > > #include > > > > This causes it to include , which is not the same thing > > as . Changing that will break userspace use of > > this header, though, as the uapi/ won't get removed. > > > > What's the correct fix? This is causing trouble with a UML build for me. > > Perhaps David has some insight, since he architected the original UAPI split. The uapi headers are installed without the uapi prefix. This means that inside of the kernel, we get linux/signal.h -> uapi/linux/signal.h -> asm/signal.h -> uapi/asm/signal.h while in the installed headers we just get linux/signal.h -> asm/signal.h This all looks right to me: user space only sees the exported portions under the traditional names, while the kernel sees both the kernel-side and user-side definitions from the same path. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/