From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S944575AbdDTLHq (ORCPT ); Thu, 20 Apr 2017 07:07:46 -0400 Received: from terminus.zytor.com ([65.50.211.136]:34015 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S944561AbdDTLHm (ORCPT ); Thu, 20 Apr 2017 07:07:42 -0400 Date: Thu, 20 Apr 2017 04:05:29 -0700 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: wangnan0@huawei.com, mingo@kernel.org, tglx@linutronix.de, adrian.hunter@intel.com, dsahern@gmail.com, hpa@zytor.com, jolsa@kernel.org, namhyung@kernel.org, linux-kernel@vger.kernel.org, acme@redhat.com, jpoimboe@redhat.com Reply-To: adrian.hunter@intel.com, wangnan0@huawei.com, mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com, dsahern@gmail.com, linux-kernel@vger.kernel.org, acme@redhat.com, jolsa@kernel.org, namhyung@kernel.org, jpoimboe@redhat.com To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] tools include: Drop ARRAY_SIZE() definition from linux/hashtable.h Git-Commit-ID: 68289cbd83eaa20faef7cc818121bc8e769065de X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 68289cbd83eaa20faef7cc818121bc8e769065de Gitweb: http://git.kernel.org/tip/68289cbd83eaa20faef7cc818121bc8e769065de Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 17 Apr 2017 12:01:36 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 19 Apr 2017 13:01:45 -0300 tools include: Drop ARRAY_SIZE() definition from linux/hashtable.h As tools/include/linux/kernel.h has it now, with the goodies present in the kernel.h counterpart, i.e. checking that the parameter is an array at build time. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Josh Poimboeuf Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-v0b41ivu6z6dyugbq9ffa9ez@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/include/linux/hashtable.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/include/linux/hashtable.h b/tools/include/linux/hashtable.h index c65cc0a..251eabf 100644 --- a/tools/include/linux/hashtable.h +++ b/tools/include/linux/hashtable.h @@ -13,10 +13,6 @@ #include #include -#ifndef ARRAY_SIZE -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -#endif - #define DEFINE_HASHTABLE(name, bits) \ struct hlist_head name[1 << (bits)] = \ { [0 ... ((1 << (bits)) - 1)] = HLIST_HEAD_INIT }