From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752960AbbE0F00 (ORCPT ); Wed, 27 May 2015 01:26:26 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:6879 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752455AbbE0FV0 (ORCPT ); Wed, 27 May 2015 01:21:26 -0400 From: Wang Nan To: , , , , , , , , , CC: , , Subject: [RFC PATCH v4 03/29] perf tools: Move linux/{list.h,poison.h} to tools/include Date: Wed, 27 May 2015 05:19:38 +0000 Message-ID: <1432704004-171454-4-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1432704004-171454-1-git-send-email-wangnan0@huawei.com> References: <1432704004-171454-1-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.197.200] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch moves list.h from tools/perf/util/include/linux/list.h to tools/include/linux/list.h to enable other libraries use macros in it, like libbpf which will be introduced by further patches. Since list.h depend on poison.h, poison.h is also moved. Both file use relative path, so one '..' is removed for each header to make them suit for new directory. Signed-off-by: Wang Nan --- tools/{perf/util => }/include/linux/list.h | 6 +++--- tools/include/linux/poison.h | 1 + tools/perf/util/include/linux/poison.h | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) rename tools/{perf/util => }/include/linux/list.h (90%) create mode 100644 tools/include/linux/poison.h delete mode 100644 tools/perf/util/include/linux/poison.h diff --git a/tools/perf/util/include/linux/list.h b/tools/include/linux/list.h similarity index 90% rename from tools/perf/util/include/linux/list.h rename to tools/include/linux/list.h index 76ddbc7..76b014c 100644 --- a/tools/perf/util/include/linux/list.h +++ b/tools/include/linux/list.h @@ -1,10 +1,10 @@ #include #include -#include "../../../../include/linux/list.h" +#include "../../../include/linux/list.h" -#ifndef PERF_LIST_H -#define PERF_LIST_H +#ifndef TOOLS_LIST_H +#define TOOLS_LIST_H /** * list_del_range - deletes range of entries from list. * @begin: first element in the range to delete from the list. diff --git a/tools/include/linux/poison.h b/tools/include/linux/poison.h new file mode 100644 index 0000000..0c27bdf --- /dev/null +++ b/tools/include/linux/poison.h @@ -0,0 +1 @@ +#include "../../../include/linux/poison.h" diff --git a/tools/perf/util/include/linux/poison.h b/tools/perf/util/include/linux/poison.h deleted file mode 100644 index fef6dbc..0000000 --- a/tools/perf/util/include/linux/poison.h +++ /dev/null @@ -1 +0,0 @@ -#include "../../../../include/linux/poison.h" -- 1.8.3.4