Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751498AbcLDMpG (ORCPT ); Sun, 4 Dec 2016 07:45:06 -0500 Received: from mailrelay110.isp.belgacom.be ([195.238.20.137]:48843 "EHLO mailrelay110.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751411AbcLDMpF (ORCPT ); Sun, 4 Dec 2016 07:45:05 -0500 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AHAwCzDkRY/9JLtVtdHAEBBAEBCgEBg?= =?us-ascii?q?zgBAQEBAR+BYI1Hly8BkkeCD4IIhhwEAoIeQBQBAgEBAQEBAQFiKIVFIykmSyQ?= =?us-ascii?q?TiHOvUItchj6Ic4J8C4MKBZpmiVuHPAKQO0mRRh83gRmDCgELgkA9NIYqgj0BA?= =?us-ascii?q?QE?= X-IPAS-Result: =?us-ascii?q?A2AHAwCzDkRY/9JLtVtdHAEBBAEBCgEBgzgBAQEBAR+BYI1?= =?us-ascii?q?Hly8BkkeCD4IIhhwEAoIeQBQBAgEBAQEBAQFiKIVFIykmSyQTiHOvUItchj6Ic?= =?us-ascii?q?4J8C4MKBZpmiVuHPAKQO0mRRh83gRmDCgELgkA9NIYqgj0BAQE?= From: Fabian Frederick To: Scott Wood Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, fabf@skynet.be Subject: [PATCH 1/1 linux-next] soc/qman: test: use DEFINE_SPINLOCK() Date: Sun, 4 Dec 2016 13:44:59 +0100 Message-Id: <1480855499-19565-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 691 Lines: 20 Signed-off-by: Fabian Frederick --- drivers/soc/fsl/qbman/qman_test_stash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qbman/qman_test_stash.c b/drivers/soc/fsl/qbman/qman_test_stash.c index b9795f3..e87b654 100644 --- a/drivers/soc/fsl/qbman/qman_test_stash.c +++ b/drivers/soc/fsl/qbman/qman_test_stash.c @@ -175,7 +175,7 @@ static DEFINE_PER_CPU(struct hp_cpu, hp_cpus); /* links together the hp_cpu structs, in first-come first-serve order. */ static LIST_HEAD(hp_cpu_list); -static spinlock_t hp_lock = __SPIN_LOCK_UNLOCKED(hp_lock); +static DEFINE_SPINLOCK(hp_lock); static unsigned int hp_cpu_list_length; -- 2.7.4