From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752507AbcGMHhg (ORCPT ); Wed, 13 Jul 2016 03:37:36 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36566 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750975AbcGMHh2 (ORCPT ); Wed, 13 Jul 2016 03:37:28 -0400 Date: Wed, 13 Jul 2016 09:37:14 +0200 From: Ingo Molnar To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, Adrian Hunter , Alexander Shishkin , Alexander Yarygin , Alexey Brodkin , Ananth N Mavinakayanahalli , Andrew Morton , Brendan Gregg , Chris Phlipot , Christoffer Dall , David Ahern , Davidlohr Bueso , David Tolnay , Eric Auger , Hemant Kumar , Hitoshi Mitake , Jiri Olsa , Josh Poimboeuf , Marc Zyngier , Masami Hiramatsu , Namhyung Kim , "Naveen N . Rao" , Peter Zijlstra , Peter Zijlstra , Srikar Dronamraju , Steven Rostedt , Vineet Gupta , Wang Nan , Yunlong Song , Arnaldo Carvalho de Melo Subject: Re: [GIT PULL 00/66] perf/core improvements and fixes Message-ID: <20160713073714.GA28443@gmail.com> References: <1468363241-14555-1-git-send-email-acme@kernel.org> <20160713065906.GA13006@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160713065906.GA13006@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I have worked around the build failure for the time being via the patch below - but I guess there must be a better way. Thanks, Ingo tools/include/linux/bitops.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/include/linux/bitops.h b/tools/include/linux/bitops.h index 5ad9ee1dd7f6..49c929a104ee 100644 --- a/tools/include/linux/bitops.h +++ b/tools/include/linux/bitops.h @@ -9,7 +9,9 @@ #define __WORDSIZE (__SIZEOF_LONG__ * 8) #endif -#define BITS_PER_LONG __WORDSIZE +#ifndef BITS_PER_LONG +# define BITS_PER_LONG __WORDSIZE +#endif #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) #define BIT_WORD(nr) ((nr) / BITS_PER_LONG)