From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754788Ab2IBUUk (ORCPT ); Sun, 2 Sep 2012 16:20:40 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:59548 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754417Ab2IBUUj (ORCPT ); Sun, 2 Sep 2012 16:20:39 -0400 MIME-Version: 1.0 In-Reply-To: <503E424E.6080606@gmail.com> References: <503E424E.6080606@gmail.com> From: Irina Tirdea Date: Sun, 2 Sep 2012 23:20:18 +0300 Message-ID: Subject: Re: [PATCH 05/13] perf tools: fix ALIGN redefinition in system headers To: David Ahern Cc: Steven Rostedt , Arnaldo Carvalho de Melo , Ingo Molnar , LKML , Namhyung Kim , Peter Zijlstra , Frederic Weisbecker Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Simpler to undef ALIGN in util/include/linux/kernel.h right before the perf > version is declared. This was actually my initial approach as well. The problem is that just to undef ALIGN before it is defined in perf is not enough. Somehow the bionic version overrides the perf definition even if I use undef. A solution would be to move the entire block of #undef and #define ALIGN at the beginning of util/include/linux/kernel.h, before the header's #ifndef PERF_LINUX_KERNEL_H_ define. I thought that renaming the ALIGN in perf is cleaner than having defines outside the include guards. Irina