Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751294AbWC2Xum (ORCPT ); Wed, 29 Mar 2006 18:50:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751290AbWC2Xul (ORCPT ); Wed, 29 Mar 2006 18:50:41 -0500 Received: from omx2-ext.sgi.com ([192.48.171.19]:45735 "EHLO omx2.sgi.com") by vger.kernel.org with ESMTP id S1751288AbWC2Xuk (ORCPT ); Wed, 29 Mar 2006 18:50:40 -0500 Date: Wed, 29 Mar 2006 15:50:31 -0800 (PST) From: Christoph Lameter To: "Chen, Kenneth W" cc: Nick Piggin , "Boehm, Hans" , "Grundler, Grant G" , Zoltan Menyhart , akpm@osdl.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org Subject: RE: Fix unlock_buffer() to work the same way as bit_unlock() In-Reply-To: <200603292348.k2TNmNg12952@unix-os.sc.intel.com> Message-ID: References: <200603292348.k2TNmNg12952@unix-os.sc.intel.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 481 Lines: 12 On Wed, 29 Mar 2006, Chen, Kenneth W wrote: > Is gcc smart enough to turn constant argument and collapse inline of > inline function? I hope it does. Sure we use that all the time. Look at the cmpxchg definition in asm-ia64/system.h - 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/