Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5720167imm; Wed, 12 Sep 2018 10:03:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbdE3JIJHpck9479FUA9dji2QLvfhfKi8SXkicir58h2ozQ9VS4eEIAZfFeA+BFEokC7U92 X-Received: by 2002:a63:706:: with SMTP id 6-v6mr1612846pgh.137.1536771834237; Wed, 12 Sep 2018 10:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536771834; cv=none; d=google.com; s=arc-20160816; b=izad4YklbR8Kzl8e8i0hsUr+bAsyrVQwCsTvLAAsISXgGrpNdKSuBRG3RKwvhXBm+J W8L3DTQ1H7VwpJJu1XodudG/IlEpPPgaKqS8PJQrnNHbm1Db25SYOfqY5aLQB8vld3Je 3ZtkglJ9YQLnOGJjR69VMJaD3G6fduEQzxgJP7aEF+d0v6WK93G0Fb7oAwG/IWh7pDBJ UF70CuKixCb14GfM2dN+TJrrUjoY9WJvanZ+aWXyjHKCzJIvcoEDKTDTjl+YjuEII8YS tZDGZJD+iWt5NBms12ppLHyfyudq7FEy6/9zcPALa5eFKzD2zdwZHQmEZYBhVVJb7B0k ZCag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=T5IXjQJQHXQ9Jc/79DfGoAA7QFw1a2q9tyVtlEeP6Nk=; b=HBH4+TA0xkP7A+zEWGPNNEqL6ogVg5K4k3KSbg2v/+J0BEp65OnEP/TxJWK/ZWoM3v hBiFFwqPob2oDiqQ5lcutC0rdkcHnSBSaoLP0QsfRmhHTp2foHRFNyQLgcDCU3eA+qZL 5WDNJJTvVgTxUNj9WWscA0r2/J2fdMixlbOBavq5e5DrzEwRY7ZrWRddf8vxj3Zds+Ql and0EdsXuL9r4DZNJ1+9Z6z7Xkj7S7+UXASDk1W4jilAM9Jc9ZAIirvrtieDt4DBz7XS hFWFFfgxThO6VT0HeZpTESFUbhNBi/cGHG/qlQBUqA/IU6M4Ei9RYmhqhimD2Pbn7STt 91zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-com header.b=mBGxYAdi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nokia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d6-v6si1612190pln.233.2018.09.12.10.03.30; Wed, 12 Sep 2018 10:03:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-com header.b=mBGxYAdi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nokia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727760AbeILWIV (ORCPT + 99 others); Wed, 12 Sep 2018 18:08:21 -0400 Received: from mail-db5eur01on0133.outbound.protection.outlook.com ([104.47.2.133]:44960 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726428AbeILWIV (ORCPT ); Wed, 12 Sep 2018 18:08:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T5IXjQJQHXQ9Jc/79DfGoAA7QFw1a2q9tyVtlEeP6Nk=; b=mBGxYAdia+XjwaodJnLmst+vZzDjOH9PkYV8aTkVdUfrmXEStqUhft5GdusyuE+rDPG0zU5q8yTfKxQUe2eyAHcv+0GoGHTxanB4QLCuK0K7/VvPeepRAQvNxli+z1uWdz2o/hyj2XEvAzuH1pklFGIBeho47OmlOWIza+aq4Aw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=alexander.sverdlin@nokia.com; Received: from ulegcpsvdell.emea.nsn-net.net (131.228.32.181) by VI1PR07MB3981.eurprd07.prod.outlook.com (2603:10a6:803:39::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.10; Wed, 12 Sep 2018 17:02:50 +0000 From: Alexander Sverdlin To: linux-kernel@vger.kernel.org Cc: Alexander Sverdlin , Greg Kroah-Hartman , Thomas Gleixner , Arnaldo Carvalho de Melo , Peter Zijlstra Subject: [PATCH] tools: Remove conflicting BITS_PER_LONG define Date: Wed, 12 Sep 2018 19:02:32 +0200 Message-Id: <20180912170232.25258-1-alexander.sverdlin@nokia.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [131.228.32.181] X-ClientProxiedBy: AM0PR02CA0014.eurprd02.prod.outlook.com (2603:10a6:208:3e::27) To VI1PR07MB3981.eurprd07.prod.outlook.com (2603:10a6:803:39::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0e75eba0-db71-44d1-caa1-08d618d1929d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:VI1PR07MB3981; X-Microsoft-Exchange-Diagnostics: 1;VI1PR07MB3981;3:gUwoIncl4WVs8vls98Ar1GizSOc2GmWXTetZ6qOuXtxdc4BApKoxpEAbyqzpag9nV6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6teAMO8kQ51tGwBTcExxpR3MkPonFF10/1uVvZmXIJQh+JmMuqpSGUdZRf9GtqgaSifx3w3c3JCP0DNaTt52cHBJ8w+1ZM+EXWh6NEbF3iqA3mpL8sFXtP8lx51yIu69DeTgEav02ZpBGyXMwZpkRIs78CWEy0dgowhKgbgYs5HJLoLaloa8qv0D9X63E3cRbbOMDjV4WAJganMSzD+PmOJyfL/rP1cWhkfDAzcuna0wpKxy5kHA3DQ9ikUNnp9R5bdz5zhvILdDZJrsrqYe6shDf8Lx7a4N;4:OZLMJst6Scll6GiP/g3QtYROa/aCPUHcFFirmCD6eCuWoeZSkQshgU511UYCWi2/v4zuim/zaYEGAtWvmHr4jxwYKBR8THa4/0oFUHBpcsUhYUzKNTAscBcK/0n+kYpbz/8UmGrmgYcXc/8Uj6Co9o6VfHK6vAOvXLQt+gAOEPyCx1PoBloIsBpaqtJIrDsj/lrMeLvwU7I/pP17HEbR00yC+XZfkd5VFip5x+qplrsjehTn9LqcpKT8AfsLQ4B+i6fvwJjkugzfA71iYXGG8YpRxHzWITQZGgot1qVLlO8ajE6sGAcuyTkJSKHIOWAoDE5VAu4i6z9hgLd9ngjfeEaiS5DvRiEAslS42JjoKh6KU1UfpAzFT4cq3cWUccGi X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(82608151540597)(109105607167333)(195916259791689); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231311)(11241501184)(806099)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050);SRVR:VI1PR07MB3981;BCL:0;PCL:0;RULEID:;SRVR:VI1PR07MB3981; X-Forefront-PRVS: 07935ACF08 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(376002)(136003)(396003)(346002)(39860400002)(366004)(189003)(199004)(106356001)(86362001)(8676002)(6512007)(4326008)(53936002)(6666003)(25786009)(5660300001)(316002)(16586007)(54906003)(68736007)(6916009)(48376002)(44832011)(97736004)(305945005)(6486002)(105586002)(7736002)(2906002)(8936002)(81166006)(3846002)(50466002)(6116002)(81156014)(1076002)(47776003)(2361001)(1857600001)(26005)(66066001)(50226002)(186003)(478600001)(386003)(6506007)(36756003)(16526019)(956004)(51416003)(486006)(2351001)(476003)(52116002)(2616005);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR07MB3981;H:ulegcpsvdell.emea.nsn-net.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: nokia.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR07MB3981;23:0qq5Y5jL8ZTtfXn2CFfihfTZwE74FOaxhHAW6LsGX?= =?us-ascii?Q?sXUZttwa7zj9V56IiRvTWvXJ1Lz6NiH+k6pIHrSoNTvmkCiwqlddOnSYBJFl?= =?us-ascii?Q?rHV3fD758MBkPwHNaexLDvegd1AaXyrZexxw47WKRgjS5lNHuohMnC6OlEGQ?= =?us-ascii?Q?oMhRP7rw2oQavgNxDAzXSwlLMGmS9JNdC3cV6pHl2z7rW9pb5qtNO4bhjKIz?= =?us-ascii?Q?AJrg6Omv2bqCJLCTZZfMBLNwmJ24kdgkbD+UDdNc87QMZSpwzh0CMWXsV4F/?= =?us-ascii?Q?n83srfgmgX1HpjMA7TTfD1IAeR4FOdpGwYQuZbHc60Z9y/caWQpYTQ+r/E/M?= =?us-ascii?Q?R+yLO/pIGS+elN9dnjCl5BOmy6ZFzz1keT9KY5JYHrlz4E6mHebdHo+PN+/t?= =?us-ascii?Q?/MhJgZydseZVUBbMYH8ubH02+FEmRHTPFT9ZzAuw1krW/sUkiQ2q38s08Rsn?= =?us-ascii?Q?W0iByIe0KixJtS2t4GN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o67eU1utTjOZdeNgJj3uD8b7ttKFxlDcibcB8VhOzzWnhH99UmVV5o4rZNn0cv5kVV+yr0BlOJHDxH7MiGS6vxV+O37Zafw4GfL9dRfbe03ynUD/zg+O83AeQIIhIJFVWD+IObadyEArphjmhYO28URSC+hRONzOQvekJQp0MhU9YVWEpHpA/moe3ElMG SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2018 17:02:50.3581 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0e75eba0-db71-44d1-caa1-08d618d1929d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB3981 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC .../tools/objtool/builtin-check.o ... In file included from .../tools/arch/x86/include/uapi/asm/bitsperlong.h:11:0, from .../tools/include/asm-generic/bitops/__ffs.h:6, from .../tools/include/asm-generic/bitops.h:16, from .../tools/include/linux/bitops.h:35, from .../tools/include/linux/hashtable.h:13, from elf.h:24, from check.h:22, from builtin-check.c:30: .../tools/include/asm-generic/bitsperlong.h:8:0: error: "BITS_PER_LONG" redefined [-Werror] #define BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__) Include instead as other headers do. Signed-off-by: Alexander Sverdlin --- Seen during x86_64 build. Seems that most of the compilers do not define __SIZEOF_LONG__, but my does. tools/include/linux/bitops.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/include/linux/bitops.h b/tools/include/linux/bitops.h index acc704b..4ae5232 100644 --- a/tools/include/linux/bitops.h +++ b/tools/include/linux/bitops.h @@ -3,16 +3,13 @@ #define _TOOLS_LINUX_BITOPS_H_ #include +#include #include #ifndef __WORDSIZE #define __WORDSIZE (__SIZEOF_LONG__ * 8) #endif -#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) #define BITS_PER_BYTE 8 -- 2.4.6