From patchwork Thu Feb 18 06:19:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 80206 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1I6GhVm028803 for ; Thu, 18 Feb 2010 06:19:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751243Ab0BRGTe (ORCPT ); Thu, 18 Feb 2010 01:19:34 -0500 Received: from mail-ew0-f219.google.com ([209.85.219.219]:44415 "EHLO mail-ew0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751155Ab0BRGTd (ORCPT ); Thu, 18 Feb 2010 01:19:33 -0500 Received: by ewy19 with SMTP id 19so6466616ewy.21 for ; Wed, 17 Feb 2010 22:19:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:mail-followup-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=poLZAfreiG3bODu2gdk9hwTzQc7lsl9SSVgmRWr4ct8=; b=XWkwpQ92VDJIgr/cmVrcVgDdd04m1qYvUHrzAEMjRAin9B+Jqu115SX4XZg7UqDR68 bhEHuukL9Ya+0Pkz/BeB0FeeGT7vJuGq97V6uRX5jlnkVZBQsZKVPvOdyuDEwME6bw59 oZzB/CCSRad9Ds7qlRejIFP9OJQ9HA/rHjlmQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=p9/IPFqIx2sHcWmlB6kc21RUASqnRCA1uxxRNXwFxcCBjrKxNLUIUQb8qxMhBpv5aQ ZD65uGsHh+r+jGgPZw7UTNuzJudGKRFsPxKaVNb+vf1pA05WlYhgkD855RCKBwaYFpS/ 0eJtfY6220ad+JmEZPAFwxfMG7+xr3ovoU398= Received: by 10.216.89.213 with SMTP id c63mr3140127wef.211.1266473970048; Wed, 17 Feb 2010 22:19:30 -0800 (PST) Received: from liondog.tnic (f053085150.adsl.alicedsl.de [78.53.85.150]) by mx.google.com with ESMTPS id i34sm3811642gve.14.2010.02.17.22.19.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 17 Feb 2010 22:19:27 -0800 (PST) Received: by liondog.tnic (Postfix, from userid 1000) id 146824B8C60; Thu, 18 Feb 2010 07:19:24 +0100 (CET) Date: Thu, 18 Feb 2010 07:19:23 +0100 From: Borislav Petkov To: Michal Marek Cc: Borislav Petkov , "H. Peter Anvin" , linux-kbuild , Peter Zijlstra , Andrew Morton , Wu Fengguang , LKML , Jamie Lokier , Roland Dreier , Al Viro , "linux-fsdevel@vger.kernel.org" , Ingo Molnar , Brian Gerst Subject: Re: [PATCH 2/5] bitops: compile time optimization for hweight_long(CONSTANT) Message-ID: <20100218061923.GA1594@liondog.tnic> Mail-Followup-To: Borislav Petkov , Michal Marek , Borislav Petkov , "H. Peter Anvin" , linux-kbuild , Peter Zijlstra , Andrew Morton , Wu Fengguang , LKML , Jamie Lokier , Roland Dreier , Al Viro , "linux-fsdevel@vger.kernel.org" , Ingo Molnar , Brian Gerst References: <20100211172424.GB19779@aftab> <4B743F7D.3090605@zytor.com> <20100212170649.GC3114@aftab> <4B758FC0.1020600@zytor.com> <20100212174751.GD3114@aftab> <4B75A66A.70005@zytor.com> <4B7BF5D6.3030701@suse.cz> <20100217172040.GC13429@aftab> <4B7C27D8.9050408@suse.cz> <4B7C29C1.10906@suse.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4B7C29C1.10906@suse.cz> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 18 Feb 2010 06:19:35 +0000 (UTC) diff --git a/lib/Makefile b/lib/Makefile index 3b0b4a6..e2ad17c 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -39,7 +39,10 @@ lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o lib-$(CONFIG_GENERIC_FIND_FIRST_BIT) += find_next_bit.o lib-$(CONFIG_GENERIC_FIND_NEXT_BIT) += find_next_bit.o obj-$(CONFIG_GENERIC_FIND_LAST_BIT) += find_last_bit.o + +CFLAGS_hweight.o = $(subst $(quote),,$(CONFIG_ARCH_HWEIGHT_CFLAGS)) obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o + obj-$(CONFIG_LOCK_KERNEL) += kernel_lock.o obj-$(CONFIG_DEBUG_PREEMPT) += smp_processor_id.o obj-$(CONFIG_DEBUG_LIST) += list_debug.o diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index f9bdf26..cbcd654 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -245,3 +245,7 @@ quiet_cmd_lzo = LZO $@ cmd_lzo = (cat $(filter-out FORCE,$^) | \ lzop -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ (rm -f $@ ; false) + +# misc stuff +# --------------------------------------------------------------------------- +quote:="