Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757238Ab0HNNpE (ORCPT ); Sat, 14 Aug 2010 09:45:04 -0400 Received: from mail.skyhub.de ([78.46.96.112]:40240 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757093Ab0HNNpC (ORCPT ); Sat, 14 Aug 2010 09:45:02 -0400 Date: Sat, 14 Aug 2010 15:44:55 +0200 From: Borislav Petkov To: "H. Peter Anvin" , Mike Frysinger Cc: Chris Metcalf , Linus Torvalds , linux-kernel@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , Andrew Morton , Ingo Molnar Subject: Re: [GIT PULL] core/hweight changes for v2.6.35 Message-ID: <20100814134455.GA21218@liondog.tnic> Mail-Followup-To: Borislav Petkov , "H. Peter Anvin" , Mike Frysinger , Chris Metcalf , Linus Torvalds , linux-kernel@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , Andrew Morton , Ingo Molnar References: <20100517212138.GA21629@elte.hu> <4C65BF90.6000302@zytor.com> <4C65DF22.5090406@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4C65DF22.5090406@zytor.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1330 Lines: 34 From: "H. Peter Anvin" Date: Fri, Aug 13, 2010 at 05:11:14PM -0700 > On 08/13/2010 02:59 PM, Mike Frysinger wrote: > > > > but those targets still define CONFIG_GENERIC_HWEIGHT right ? so at > > the least, we should be wrapping the prototypes in linux/bitops.h with > > that ... > > > > Yes, I guess they do. Actually, Mike's issue is valid, if I understand it correctly. From looking at , Blackfin doesn't need the generic software variants __sw_hweightXX at all, right? In that case, is pulling in needlessly unresolved symbols for arches which have their hw versions of hweight and don't need sw variants. However, if you want to include and benefit from the compile-time evaluation of the const hweight args, you're going to need to rename the hweightXX() functions in to __arch_hweightXX but that shouldn't be a problem I guess :). Let me give your patch from couple of mails ago a quick spin... -- Regards/Gruss, Boris. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/