Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752737Ab2H2QYv (ORCPT ); Wed, 29 Aug 2012 12:24:51 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:37301 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907Ab2H2QYu (ORCPT ); Wed, 29 Aug 2012 12:24:50 -0400 Message-ID: <503E424E.6080606@gmail.com> Date: Wed, 29 Aug 2012 10:24:46 -0600 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Irina Tirdea CC: Steven Rostedt , Arnaldo Carvalho de Melo , Ingo Molnar , LKML , Namhyung Kim , Peter Zijlstra , Frederic Weisbecker Subject: Re: [PATCH 05/13] perf tools: fix ALIGN redefinition in system headers References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 973 Lines: 28 On 8/28/12 4:02 PM, Irina Tirdea wrote: > On some systems (e.g. Android), ALIGN is defined in > system headers as ALIGN(p). The definition of ALIGN used > in perf takes 2 parameters: ALIGN(x,a). This leads to > redefinition conflicts. > > Redefinition error on Android: > In file included from util/include/linux/list.h:1:0, > from util/callchain.h:5, > from util/hist.h:6, > from util/session.h:4, > from util/build-id.h:4, > from util/annotate.c:11: > util/include/linux/kernel.h:11:0: error: "ALIGN" redefined [-Werror] > bionic/libc/include/sys/param.h:38:0: note: this is the location of > the previous definition > Simpler to undef ALIGN in util/include/linux/kernel.h right before the perf version is declared. David -- 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/