From patchwork Thu Nov 29 20:45:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Luis R. Rodriguez" X-Patchwork-Id: 1822671 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id B71B4DF23A for ; Thu, 29 Nov 2012 20:50:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E2B8E66BB for ; Thu, 29 Nov 2012 12:50:39 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 98252E66BE; Thu, 29 Nov 2012 12:45:22 -0800 (PST) Received: by mail-pb0-f49.google.com with SMTP id un15so9742704pbc.36 for ; Thu, 29 Nov 2012 12:45:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=woHI/tMC4TfFaD7Mc5QpDMnmzmlPxO4wVBNAywYr5G8=; b=qLQnzozS8h4LO1YVF4LkhhYhZJJbYDTwrsbDfFe7AMQwWwntzTPi365J0DrL2r0nhT kZ2avhcCjybFwMPckUu3NLEM+XJg3Kg7e+r3RJ+TFCrgU/CQkl//iW3R9xEHXi47bFI9 yepspSIfQoNuXvCArb5VaErl3ZleSuaEhnkNMYRwOy8HNL21IGAzjLfHuPzvJY/AIk5z J6W7xVzWwB0bKLMB6KIeEbJtVGAZUIBzvQcblDndP8xbRDSXHB3w0PMvtrmn41BElOhr WEhBpB1iGTxeQjGdiPjVGvceFaqfwKVMsWN5sYqVDdGZlHrVlPgA8bskAI7Myxaipg0Z 3X0Q== Received: by 10.68.239.232 with SMTP id vv8mr71230071pbc.53.1354221922471; Thu, 29 Nov 2012 12:45:22 -0800 (PST) Received: from mcgrof@gmail.com (c-24-7-61-223.hsd1.ca.comcast.net. [24.7.61.223]) by mx.google.com with ESMTPS id t10sm1598107paz.5.2012.11.29.12.45.18 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Nov 2012 12:45:21 -0800 (PST) Received: by mcgrof@gmail.com (sSMTP sendmail emulation); Thu, 29 Nov 2012 12:45:17 -0800 From: "Luis R. Rodriguez" To: linux-kernel@vger.kernel.org, tglx@linutronix.de Date: Thu, 29 Nov 2012 12:45:05 -0800 Message-Id: <1354221910-22493-2-git-send-email-mcgrof@do-not-panic.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1354221910-22493-1-git-send-email-mcgrof@do-not-panic.com> References: <1354221910-22493-1-git-send-email-mcgrof@do-not-panic.com> Cc: linus.walleij@linaro.org, backports@vger.kernel.org, kanyan@broadcom.com, brcm80211-dev-list@broadcom.com, rvossen@broadcom.com, frankyl@broadcom.com, linux-wireless@vger.kernel.org, dri-devel@lists.freedesktop.org, daniel.vetter@ffwll.ch, kyungmin.park@samsung.com, srinidhi.kasagar@stericsson.com, s.nawrocki@samsung.com, brudley@broadcom.com, arend@broadcom.com, "Luis R. Rodriguez" , linux-media@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, alexander.stein@systec-electronic.com Subject: [Intel-gfx] [PATCH 1/6] ux500: convert struct spinlock to spinlock_t X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org From: "Luis R. Rodriguez" spinlock_t should always be used. I was unable to build test with allmodconfig: mcgrof@frijol ~/linux-next (git::(no branch))$ make C=1 M=drivers/crypto/ux500/ WARNING: Symbol version dump /home/mcgrof/linux-next/Module.symvers is missing; modules will have no dependencies and modversions. LD drivers/crypto/ux500/built-in.o Building modules, stage 2. MODPOST 0 modules Cc: Srinidhi Kasagar Cc: Linus Walleij Cc: linux-arm-kernel@lists.infradead.org Reported-by: Hauke Mehrtens Signed-off-by: Luis R. Rodriguez --- drivers/crypto/ux500/cryp/cryp.h | 4 ++-- drivers/crypto/ux500/hash/hash_alg.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/ux500/cryp/cryp.h b/drivers/crypto/ux500/cryp/cryp.h index 14cfd05..ba324b2 100644 --- a/drivers/crypto/ux500/cryp/cryp.h +++ b/drivers/crypto/ux500/cryp/cryp.h @@ -236,12 +236,12 @@ struct cryp_device_data { struct clk *clk; struct regulator *pwr_regulator; int power_status; - struct spinlock ctx_lock; + spinlock_t ctx_lock; struct cryp_ctx *current_ctx; struct klist_node list_node; struct cryp_dma dma; bool power_state; - struct spinlock power_state_spinlock; + spinlock_t power_state_spinlock; bool restore_dev_ctx; }; diff --git a/drivers/crypto/ux500/hash/hash_alg.h b/drivers/crypto/ux500/hash/hash_alg.h index cd9351c..0183f5e 100644 --- a/drivers/crypto/ux500/hash/hash_alg.h +++ b/drivers/crypto/ux500/hash/hash_alg.h @@ -363,10 +363,10 @@ struct hash_device_data { struct hash_register __iomem *base; struct klist_node list_node; struct device *dev; - struct spinlock ctx_lock; + spinlock_t ctx_lock; struct hash_ctx *current_ctx; bool power_state; - struct spinlock power_state_lock; + spinlock_t power_state_lock; struct regulator *regulator; struct clk *clk; bool restore_dev_state;