From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752658AbcDNDGf (ORCPT ); Wed, 13 Apr 2016 23:06:35 -0400 Received: from m50-135.163.com ([123.125.50.135]:41307 "EHLO m50-135.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751938AbcDNDGd (ORCPT ); Wed, 13 Apr 2016 23:06:33 -0400 From: zengzhaoxiu@163.com To: linux-kernel@vger.kernel.org Cc: Zhaoxiu Zeng , Ralf Baechle , Chris Metcalf , Leonid Yegoshin , linux-mips@linux-mips.org Subject: [PATCH V3 06/29] Tile and MIPS (if has usable __builtin_popcount) use popcount parity functions Date: Thu, 14 Apr 2016 11:05:59 +0800 Message-Id: <1460603162-4670-1-git-send-email-zengzhaoxiu@163.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1460601525-3822-1-git-send-email-zengzhaoxiu@163.com> References: <1460601525-3822-1-git-send-email-zengzhaoxiu@163.com> X-CM-TRANSID: D9GowAB3f6sbCQ9XeSLcCQ--.24885S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxJr1rCF1ktrWxXFWftFWfuFg_yoW8Xw4kpF 1DCF1kJrZ5G34UXFWjkrnFvF43twsxGF43trWY9asFyF17ta1jyFsY9F1DJw1kXayjqrW5 Wr9rGryUJa1IvrJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07b5Wl9UUUUU= X-Originating-IP: [112.95.225.98] X-CM-SenderInfo: p2hqw6xkdr5xrx6rljoofrz/1tbiMB9LgFWBVYMT3wAAsq Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhaoxiu Zeng Signed-off-by: Zhaoxiu Zeng --- arch/mips/include/asm/bitops.h | 7 +++++++ arch/tile/include/asm/bitops.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/arch/mips/include/asm/bitops.h b/arch/mips/include/asm/bitops.h index ce9666c..4192068 100644 --- a/arch/mips/include/asm/bitops.h +++ b/arch/mips/include/asm/bitops.h @@ -626,6 +626,13 @@ static inline int ffs(int word) #include #include +#ifdef ARCH_HAS_USABLE_BUILTIN_POPCOUNT +#include +#else +#include +#endif +#include + #include #include diff --git a/arch/tile/include/asm/bitops.h b/arch/tile/include/asm/bitops.h index 20caa34..4dd89d8 100644 --- a/arch/tile/include/asm/bitops.h +++ b/arch/tile/include/asm/bitops.h @@ -85,6 +85,8 @@ static inline unsigned long __arch_hweight64(__u64 w) #include #include #include +#include +#include #include #include #include -- 2.5.0