Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933353AbbBQJJF (ORCPT ); Tue, 17 Feb 2015 04:09:05 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:58618 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933111AbbBQJJA (ORCPT ); Tue, 17 Feb 2015 04:09:00 -0500 From: Arnd Bergmann To: Mikko Rapeli Cc: linux-kernel@vger.kernel.org, Alasdair Kergon , 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 10:08:56 +0100 Message-ID: <2309592.iOl8K3u7d8@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1424127948-22484-16-git-send-email-mikko.rapeli@iki.fi> References: <1424127948-22484-1-git-send-email-mikko.rapeli@iki.fi> <1424127948-22484-16-git-send-email-mikko.rapeli@iki.fi> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:uDFgBR4RUR1ylvIFSCL6EKAH3p23GEIogVO2qWwijma0hj0SaNZ lkvYkaMZk4umyoSbdNwgCs/A/fOCRlqzK/M7ddL/CRxNrMO4fD/2B/dRsnXUNLEqwaCrnI9 DRDn2Ew2ggyHW12uyMpCVoyooqoUlM5PIr5gWEYqLU3a1AYqMGgM/aFstaDi0NyG70pbfsG Ml0Lwmv/tkfAEZjTioU2w== 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: 911 Lines: 28 On Tuesday 17 February 2015 00:05:18 Mikko Rapeli wrote: > --- a/include/uapi/linux/dm-log-userspace.h > +++ b/include/uapi/linux/dm-log-userspace.h > @@ -7,6 +7,11 @@ > #ifndef __DM_LOG_USERSPACE_H__ > #define __DM_LOG_USERSPACE_H__ > > +#ifdef __KERNEL__ > +#include > +#else > +#include > +#endif > #include /* For DM_UUID_LEN */ > 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. It's possible that the maintainers of this code have a strong opinion on this matter, but try doing that first. 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/