From patchwork Mon Aug 7 21:28:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9886227 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F416F602CC for ; Mon, 7 Aug 2017 21:28:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3D0728702 for ; Mon, 7 Aug 2017 21:28:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D611928706; Mon, 7 Aug 2017 21:28:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7147F28702 for ; Mon, 7 Aug 2017 21:28:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751881AbdHGV2t (ORCPT ); Mon, 7 Aug 2017 17:28:49 -0400 Received: from mout.gmx.net ([212.227.17.22]:57970 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751662AbdHGV2s (ORCPT ); Mon, 7 Aug 2017 17:28:48 -0400 Received: from p100.box ([193.159.19.71]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M8MyE-1dRxKV2sOw-00vwpn; Mon, 07 Aug 2017 23:28:41 +0200 Date: Mon, 7 Aug 2017 23:28:39 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Static initialization of pcxl_res_lock spinlock Message-ID: <20170807212839.GA4891@p100.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:rX/Sa3hIcvYk78EB3vhjNKb/0A0EzuwWMbH4HxCvrphFdZtG+HA 4F6hRmMGZ0ZRPHg/qO7QlT5Euo67ExFoO7tz0uY5ItmaqTvcDGgIs5a0iSDxa2KvJk72ZUj TmpLgI+RSuNnF6KNxoUUjkjEW5mZDfChjxd1ujtIWguu7pSOsJSHupueZ2Ze0VV3mPTK2ZW YTk8ktcS2uYtJH2bGsyDw== X-UI-Out-Filterresults: notjunk:1; V01:K0:KLOxPzoU6TA=:sAmTn7RLI1fPLamBqIYgnQ iVv9GTgTlfn+iY7BHEwYji/bIDcdqjo8AQ5ufrdgUHt0NJVcLo3+xvCegxsgLCh4AHs4SVZl3 Q1uO5TmfnDZ5wrB2dV2jOw94x1QQn6NZxTPaB6KdF4yruNGtiI0U0E2KqKkvLLFKQb/09Jzje h/rjlnlTxLwh3oJOjvCfzVj0b+CLl2rNqZE9FtsDBwxMTSzxIq/mhCRl56bw4MZtC1SMmN08s ilG0e5l4l/uIhTr5Dpb4xCSIrFE+rkg0jH6vWwCxw+ON05r56Th3arZa5Pu5FeFHPFyPxgDG/ f/DZzIYgRx8+jfkQG8dY2e2v5aWmfVSe3ZRyb9To8sXd6dPSOorbyuEW6kOaEjuG+OKh9BBcj 75tR5ybDQKu2p6ozkk0MQkX9TBuFRFdR2KWdc55yx5i+/4ofB4xXg7tt+hHXL9rmlS46kJwY5 XYfDH/kCDkoqVRcFG99JtXlFuo2QNfdK+D/DergZnctoyJ6JqSBo+OLf/tJ9cuaR25n5w5PfI G3PUdvZD7YGGsdoLgsf3OfeH8hSxqJ+vQMcfjKcuCsn7UGH+kUixOvG3OoY2f9mu/RZIvTWsE q+1Hr96i3zFnl4RtKC/gXy1xnVF2MvnfMkB1BtsjK3tZdSMnOz+WzWqhz0Z5n4/uHAsqeP8k4 t1XhIb7Gbt1e32J0ES38UFsaAbFWcbhv0N4z+ZHPrfDDOy3iYNbg8BWfowHYzBLTc1wsJnWGL d1WhU2uZVdLrLsBETDZk8mG+bVqX3f1cw4noV8QKdSotrqmYbkcQ0WPAI3M+ImZi49TyYoD4p ow32qDSG4q6YD7qI3+tz0vPQ3I8qQ== Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/kernel/pci-dma.c b/arch/parisc/kernel/pci-dma.c index 5f0067a..bd4c0a7 100644 --- a/arch/parisc/kernel/pci-dma.c +++ b/arch/parisc/kernel/pci-dma.c @@ -41,7 +41,7 @@ static unsigned long pcxl_used_bytes __read_mostly = 0; static unsigned long pcxl_used_pages __read_mostly = 0; extern unsigned long pcxl_dma_start; /* Start of pcxl dma mapping area */ -static spinlock_t pcxl_res_lock; +static DEFINE_SPINLOCK(pcxl_res_lock); static char *pcxl_res_map; static int pcxl_res_hint; static int pcxl_res_size; @@ -390,7 +390,6 @@ pcxl_dma_init(void) if (pcxl_dma_start == 0) return 0; - spin_lock_init(&pcxl_res_lock); pcxl_res_size = PCXL_DMA_MAP_SIZE >> (PAGE_SHIFT + 3); pcxl_res_hint = 0; pcxl_res_map = (char *)__get_free_pages(GFP_KERNEL,