Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1889892imm; Sun, 8 Jul 2018 13:43:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdPnOBNrC/56OiO8Y4cC3h/FqpiY2PlFLwX6Yb+QEMgNc3EuTJekfx8PbnkHZ/AW1xxOKrO X-Received: by 2002:a62:1c16:: with SMTP id c22-v6mr5161360pfc.148.1531082616268; Sun, 08 Jul 2018 13:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531082616; cv=none; d=google.com; s=arc-20160816; b=aYWCkg3RTuY77GrUl8orNI9TGX3EWLijVujET5DfBUBcQIO0r7t7Q/V+lY6DIbDgj2 Bor59T2PnJC6Zd/rEcL1744d/gMTQpl2Q/cZESdrY/sGWtw/oXTXyM9wfiDARxSg/Ho7 MlmXdIcW7OlyrG00YBsFd8B/7gbgATANG6ulZWwphXT8GjLI5nYaVo7mM4UG1UKRbC7u xDNvKmCyb7AJX17yUXpudgwdjUTNcDqJ1dsSYxrXEY0IP78Kia3CafgofZe9n6Yq/N1f tqASAWPktHmEB8zd1ERJLeduTbKVKp+JTVSvh2G9WsqQtqgWvV2KQLE6OFUnq6yXbAzX 2GiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=Am0KSPN5lZuU7IcmoK6UBMjIpGL0vkawFTaoVUPvMPQ=; b=mAXGoyeLOC6q9tVxnSZbVgD0/dAa6/hH/ynXSx8dUGUR2tczBM9oq2weRlfOD3dU7y VIeJaB/+1sN7q9fmbXgfJjSIPVrl4OF+IBVO1PpzOd6vfrJ9ZopFkzVq9k3k2ujYwGVA z7KaU6k0rm0yBcgP5Gpq1BJaFkRxr185mQG62swy5tbeZXCUTdZKiiHaGq4tE1AzNf01 29oVqoEePFdkVjxnIvYqf8PvmOPjrN+AnsvWIo9zpDSBRPjv1gGt/ffAmJzQz5ZazNgo nv9yOwa5tQWZX8YbzkQjvPusxhbF0bmeoUZIu/H19ybxObWG7fhx0vINuohwBkm1a030 LYWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q136-v6si12073880pgq.483.2018.07.08.13.43.21; Sun, 08 Jul 2018 13:43:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754381AbeGHUmk (ORCPT + 99 others); Sun, 8 Jul 2018 16:42:40 -0400 Received: from verein.lst.de ([213.95.11.211]:39600 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754289AbeGHUmi (ORCPT ); Sun, 8 Jul 2018 16:42:38 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 181427FDC5; Sun, 8 Jul 2018 22:44:00 +0200 (CEST) Date: Sun, 8 Jul 2018 22:44:00 +0200 From: Christoph Hellwig To: Adrian Reber Cc: Christoph Hellwig , viro@zeniv.linux.org.uk, Avi Kivity , linux-aio@kvack.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/7] aio: implement io_pgetevents Message-ID: <20180708204359.GA19198@lst.de> References: <20180502211448.18276-1-hch@lst.de> <20180502211448.18276-8-hch@lst.de> <20180704142116.GM17048@lisas.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180704142116.GM17048@lisas.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 04, 2018 at 04:21:16PM +0200, Adrian Reber wrote: > In file included from /usr/include/linux/signal.h:5, > from /usr/include/linux/aio_abi.h:32, > from include.c:2: > /usr/include/asm/signal.h:16:23: error: conflicting types for ‘sigset_t’ > typedef unsigned long sigset_t; > ^~~~~~~~ > In file included from /usr/include/signal.h:35, > from include.c:1: > /usr/include/bits/types/sigset_t.h:7:20: note: previous declaration of ‘sigset_t’ was here > typedef __sigset_t sigset_t; I guess we could do something like the patch below, although it is rather ugly: diff --git a/include/uapi/linux/aio_abi.h b/include/uapi/linux/aio_abi.h index 75846164290e..b7705ad66d78 100644 --- a/include/uapi/linux/aio_abi.h +++ b/include/uapi/linux/aio_abi.h @@ -29,7 +29,11 @@ #include #include +#ifdef __KERNEL__ #include +#else +#include +#endif #include typedef __kernel_ulong_t aio_context_t;