Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755637AbbBQNz4 (ORCPT ); Tue, 17 Feb 2015 08:55:56 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:49217 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754384AbbBQNzy (ORCPT ); Tue, 17 Feb 2015 08:55:54 -0500 From: Arnd Bergmann To: Alasdair G Kergon Cc: Mikko Rapeli , linux-kernel@vger.kernel.org, Mike Snitzer , dm-devel@redhat.com, linux-api@vger.kernel.org Subject: Re: [PATCH 15/45] dm-log-userspace.h: include stdint.h in userspace Date: Tue, 17 Feb 2015 14:55:49 +0100 Message-ID: <2286739.alIuOL4vnt@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20150217133806.GA5220@agk-dp.fab.redhat.com> References: <1424127948-22484-1-git-send-email-mikko.rapeli@iki.fi> <2309592.iOl8K3u7d8@wuerfel> <20150217133806.GA5220@agk-dp.fab.redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:TVsFVIaclJHhpcwi9MEPsrgqlsrbsPNfnrt9v2Ufltnzb6zGDO7 a5lP951U+Dnbtyv70WRTduUTVeUhKBPoaLulb4IfAPTMF5JNwptABGSOGpVh8mmiNPwjOxe DFWPoho3nNYU8U1TF8ygk+NyJ5sbTqCJ3WqNLszyI3varMH5+hCh8OGT9FdYTkAJ4WM99WH QvT8m1/trHN3MPDFnt4TA== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1330 Lines: 36 On Tuesday 17 February 2015 13:38:06 Alasdair G Kergon wrote: > On Tue, Feb 17, 2015 at 10:08:56AM +0100, Arnd Bergmann wrote: > > The normal way to do this in kernel headers is to use linux/types.h > > but change the data structures to use __u64 instead of uint64_t > > to avoid the build error. > > That's what happened to dm-ioctl.h. Ah, indeed. It turns out that it was my own change that did this: commit 9adfbfb611307060db54691bc7e6d53fdc12312b Author: Arnd Bergmann Date: Thu Feb 26 00:51:40 2009 +0100 make most exported headers use strict integer types This takes care of all files that have only a small number of non-strict integer type uses. > (Or someone could adjust linux/types.h to include these as standard.) No, that wouldn't work. The C user space headers are not meant to be included implicitly by any standard headers, which might pull in linux/types.h implicitly. I think it would be best to change all patches in the new series in the same way for consistency and try to avoid using stdint.h as much as we can. 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/