From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753606Ab3KTAh7 (ORCPT ); Tue, 19 Nov 2013 19:37:59 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:62883 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752211Ab3KTAh4 (ORCPT ); Tue, 19 Nov 2013 19:37:56 -0500 From: Arnd Bergmann To: Geert Uytterhoeven Subject: Re: [PATCH RESEND] asm/types.h: Remove include/asm-generic/int-l64.h Date: Wed, 20 Nov 2013 01:37:20 +0100 User-Agent: KMail/1.12.2 (Linux/3.8.0-22-generic; KDE/4.3.2; x86_64; ; ) Cc: Andrew Morton , Al Viro , Randy Dunlap , "Linux-Arch" , "linux-kernel@vger.kernel.org" References: <1376996476-12027-2-git-send-email-geert@linux-m68k.org> <201311191335.40506.arnd@arndb.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201311200137.20917.arnd@arndb.de> X-Provags-ID: V02:K0:Qr3PTjyMv85wmbSRb47Frl8p+lD2G5moEAZZSx1U9uJ 061RXWZzewibiJA3Z3GB8r7Usn8J2XTdfERGSFaYH8GIcNmEZP 1feEv3lnI61FTR2tDDBDBjnx6zP3B2d0T9hit62xLUMpdJ0SCj XA6rdPPLCxteyYqz19eCT73VXFzk9ZPPUEQZXOUWQ4udXtiNeV R6tz0DLj81uTvCCI3PtWxPkX+nCHpRAzvixZjAGL78eWHaMSiT kZPj+fWwrZKbuYg5qPU5Rloj1YTQTHq3yU+2mCvDeTfZXBxhzq KQWZuXWatv0qcnIq4ftAZcFwMFggfJn3z/dDdTJk/6RqaCnzjW Cx+Lm1Pf8kD+52LYARKw= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 19 November 2013, Geert Uytterhoeven wrote: > On Tue, Nov 19, 2013 at 1:35 PM, Arnd Bergmann wrote: > > > I'm pretty sure you are right with this, but I don't remember at all > > what I suggested and don't understand what the problem (if any) is. > > Can you remind me? > > Me neither :-( > You said https://lkml.org/lkml/2011/8/13/109, and Al's umode_t > consolidation has been completed. > > I think it had to do with include/uapi/asm-generic/types.h including > . Let's try... > > In userspace, it will include from uapi to get > e.g. __u32. > In kernelspace, it will include plain (to get e.g. > u32), which will in turn include (to also > get e.g. __u32). > > As there's only include/uapi/asm-generic/types.h, but not > include/asm-generic/types.h (the individual architectures still have their > own asm/types.h), you cannot easily move (the contents of) int-ll64.h > to asm-generic/types.h for both the normal and uapi headers. > > Does this make sense? I'm pretty sure I was not talking about include/uapi/asm-generic/types.h there, and I still think we can just move include/asm-generic/int-ll64.h to include/asm-generic/types.h but leave the uapi logic in place. All architectures that do nothing but #include from asm/types.h at the moment can then remove their private file and use the generic version, the others need to change to #include . You can no longer #include from kernel space after this change, since it refers to which now only exists in user space, but that's ok because it would be a bug to include already (it defines the wrong types), and we don't. > Note that this discussion is about what to do with the remaining int-ll64.h, > not about removing int-l64.h, which is what this patch is really about. > So _this_ patch can just go in. Right. Arnd