From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752081Ab1A0PEW (ORCPT ); Thu, 27 Jan 2011 10:04:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:28010 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750960Ab1A0PEV (ORCPT ); Thu, 27 Jan 2011 10:04:21 -0500 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <20110126195810.247325792@linutronix.de> <20110126195833.970840140@linutronix.de> To: Thomas Gleixner Cc: dhowells@redhat.com, LKML , Peter Zijlstra , x86@kernel.org, Benjamin Herrenschmidt , Richard Henderson , Tony Luck , Heiko Carstens , Paul Mundt , David Miller , Chris Zankel Subject: Re: rwsem: rwsem: Remove redundant asmregparm annotation Date: Thu, 27 Jan 2011 15:03:40 +0000 Message-ID: <19896.1296140620@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thomas Gleixner wrote: > Peter Zijlstra pointed out, that the only user of asmregparm (x86) is > compiling the kernel already with -mregparm=3. So the annotation of > the rwsem functions is redundant. Remove it. That's fine - as long as we never remove the -mregparm=3 on i386. The inline assembly relies on the regparm=3 calling convention. David