From patchwork Fri Nov 6 22:42:05 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 58225 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA6Mha13022373 for ; Fri, 6 Nov 2009 22:43:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932999AbZKFWmg (ORCPT ); Fri, 6 Nov 2009 17:42:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933249AbZKFWm3 (ORCPT ); Fri, 6 Nov 2009 17:42:29 -0500 Received: from www.tglx.de ([62.245.132.106]:54106 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932425AbZKFWmZ (ORCPT ); Fri, 6 Nov 2009 17:42:25 -0500 Received: from localhost.localdomain (www.tglx.de [127.0.0.1]) by www.tglx.de (8.13.8/8.13.8/TGLX-2007100201) with ESMTP id nA6Mg5dZ016796; Fri, 6 Nov 2009 23:42:06 +0100 Message-Id: <20091106223806.933145642@linutronix.de> User-Agent: quilt/0.47-1 Date: Fri, 06 Nov 2009 22:42:05 -0000 From: Thomas Gleixner To: LKML Cc: Ingo Molnar , Peter Zijlstra , Paul Mundt , linux-sh@vger.kernel.org Subject: [patch 13/16] sh: Replace old style lock initializer References: <20091106223547.784916750@linutronix.de> Content-Disposition: inline; filename=sh-replace-old-style-lock-init.patch X-Virus-Scanned: clamav-milter 0.95.1 at www.tglx.de X-Virus-Status: Clean X-Spam-Status: No, score=-1.7 required=5.0 tests=ALL_TRUSTED,AWL autolearn=failed version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on www.tglx.de Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Index: linux-2.6/arch/sh/include/asm/rwsem.h =================================================================== --- linux-2.6.orig/arch/sh/include/asm/rwsem.h +++ linux-2.6/arch/sh/include/asm/rwsem.h @@ -41,7 +41,7 @@ struct rw_semaphore { #endif #define __RWSEM_INITIALIZER(name) \ - { RWSEM_UNLOCKED_VALUE, SPIN_LOCK_UNLOCKED, \ + { RWSEM_UNLOCKED_VALUE, __SPIN_LOCK_UNLOCKED((name).wait_lock), \ LIST_HEAD_INIT((name).wait_list) \ __RWSEM_DEP_MAP_INIT(name) }