From patchwork Mon Sep 12 12:54:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Nan X-Patchwork-Id: 75998 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp835776qgf; Mon, 12 Sep 2016 05:55:44 -0700 (PDT) X-Received: by 10.98.223.218 with SMTP id d87mr2191261pfl.48.1473684944166; Mon, 12 Sep 2016 05:55:44 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si21629621pfg.195.2016.09.12.05.55.41; Mon, 12 Sep 2016 05:55:44 -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 S933059AbcILMzX (ORCPT + 27 others); Mon, 12 Sep 2016 08:55:23 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:44319 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932944AbcILMzS (ORCPT ); Mon, 12 Sep 2016 08:55:18 -0400 Received: from 172.24.1.137 (EHLO szxeml434-hub.china.huawei.com) ([172.24.1.137]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id CHR24217; Mon, 12 Sep 2016 20:54:51 +0800 (CST) Received: from linux-4hy3.site (10.107.193.248) by szxeml434-hub.china.huawei.com (10.82.67.225) with Microsoft SMTP Server id 14.3.235.1; Mon, 12 Sep 2016 20:54:42 +0800 From: Wang Nan To: CC: , , , Wang Nan Subject: [PATCH 2/3] tools include: Introduce bits/mman.h Date: Mon, 12 Sep 2016 12:54:30 +0000 Message-ID: <1473684871-209320-3-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1473684871-209320-1-git-send-email-wangnan0@huawei.com> References: <1473684871-209320-1-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.107.193.248] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.57D6A59C.00E6, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 4b5d81b065b4da58f10bbd44051ea96f Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Makes '#include ' automatically uses macros defined in uapi/asm for each architecture. At least for glibc, includes for mmap macros. This patch replaces bits/mman.h, makes it use headers in uapi. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo --- tools/include/bits/mman.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tools/include/bits/mman.h -- 1.8.3.4 diff --git a/tools/include/bits/mman.h b/tools/include/bits/mman.h new file mode 100644 index 0000000..9be2717 --- /dev/null +++ b/tools/include/bits/mman.h @@ -0,0 +1,6 @@ +#ifndef TOOLS_INCLUDE_BITS_MMAN_H +#define TOOLS_INCLUDE_BITS_MMAN_H + +#include + +#endif