Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751398AbbD3Kxc (ORCPT ); Thu, 30 Apr 2015 06:53:32 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:65195 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751202AbbD3Kxb (ORCPT ); Thu, 30 Apr 2015 06:53:31 -0400 From: Wang Nan To: , , , , , , CC: , , , Subject: [RFC PATCH 02/22] perf: bpf: prepare: add __aligned_u64 to types.h. Date: Thu, 30 Apr 2015 10:52:25 +0000 Message-ID: <1430391165-30267-3-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1430391165-30267-1-git-send-email-wangnan0@huawei.com> References: <1430391165-30267-1-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.197.210] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1029 Lines: 33 Following patches will introduce linux/bpf.h to perf, which requires definition of __aligned_u64. This patch add it to the common types.h for tools. Signed-off-by: Wang Nan --- tools/include/linux/types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h index b5cf25e..10a2cdc 100644 --- a/tools/include/linux/types.h +++ b/tools/include/linux/types.h @@ -60,6 +60,11 @@ typedef __u32 __bitwise __be32; typedef __u64 __bitwise __le64; typedef __u64 __bitwise __be64; +/* Taken from uapi/linux/types.h. Required by linux/bpf.h */ +#ifndef __aligned_u64 +# define __aligned_u64 __u64 __attribute__((aligned(8))) +#endif + struct list_head { struct list_head *next, *prev; }; -- 1.8.3.4 -- 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/