Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3456498pxf; Mon, 29 Mar 2021 02:45:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJj3KdS98o8y8aaI1DKtLQWkepP/P7Jw+EnX3yWvVwVGiLbsQVOKanhpHDxkB7N1WVrZ1k X-Received: by 2002:a17:906:f1c8:: with SMTP id gx8mr28401755ejb.385.1617011109287; Mon, 29 Mar 2021 02:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617011109; cv=none; d=google.com; s=arc-20160816; b=WW94M4zF4jCjRXCbQrqyKuzDAcq9rV8hEK9OoQpiTErKPl4NzfBKuysokQ/wYlB/Sa tQu2nFlw2dj3kyebe1Bn7ReHdyGR7bfew+YIhVTrg+pOAbbok1eHERTH4+FJcsuab5Nr T65PfzKcNVlA4YDjv5oAdOkuEuuWTxcdlVFW1At08IU9rhmTiVeJdJnzr8zlw233s4rV bLdBNPBbsl0KDDGa3M+PMNybyie1Yhvxkajvl1XB0LD5l7kWZYhUckAALZIpeloJZNUP x4WkAVnFdsnTD8/0iyhRtc5Lw8NAsrVqYERGAz7jTqeNUaxms3f+OaVE8vUmkknZVfHh 24NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=9fUqvLvK60x4ycf0NmHkVbm/FO1h7XWp1Q7RfX/IRZo=; b=P5HPCzgrwGQb0YWwIsWFuQHP36Ecj/xMAntqR+r1FE8geh2tT5MquqB3wimbgG5sNq urshmbUekL3HdGWF05je4evuIFuTq4OIY48O/Jd1arItVlEubRO6SZfcBMmqSHXwviX9 dUElPjnduIdVJ/QIY4dTOi+hrFdeiEiGDfl104BDRyEcH+i5MHqOSl9vY0ds7+4iEw0J BXqWYLke/1/VnDpYWNeko6bHzqMrkdFWoaMZbCvpGtbrLlWvSBkRHkAu/puHc57wytM1 cpYN95CQvbkAdTAiE/wu8aIVt5E8GEzje7VKv7QJY1BS3mzjLfKJzyKP3KQIdSR8ANTq avrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si12351567edy.54.2021.03.29.02.44.47; Mon, 29 Mar 2021 02:45:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232419AbhC2JlD (ORCPT + 99 others); Mon, 29 Mar 2021 05:41:03 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15093 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231955AbhC2Jkk (ORCPT ); Mon, 29 Mar 2021 05:40:40 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4F86vv1c5Sz19Jtg; Mon, 29 Mar 2021 17:38:35 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Mon, 29 Mar 2021 17:40:30 +0800 From: Shixin Liu To: Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Christian Borntraeger CC: , , Shixin Liu Subject: [PATCH -next 1/2] s390/cio: use DEFINE_SPINLOCK() for spinlock Date: Mon, 29 Mar 2021 17:40:18 +0800 Message-ID: <20210329094019.67044-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Signed-off-by: Shixin Liu --- drivers/s390/cio/css.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c index 253ab4e7a415..f01ef6325039 100644 --- a/drivers/s390/cio/css.c +++ b/drivers/s390/cio/css.c @@ -651,13 +651,12 @@ static void css_sch_todo(struct work_struct *work) } static struct idset *slow_subchannel_set; -static spinlock_t slow_subchannel_lock; +static DEFINE_SPINLOCK(slow_subchannel_lock); static wait_queue_head_t css_eval_wq; static atomic_t css_eval_scheduled; static int __init slow_subchannel_init(void) { - spin_lock_init(&slow_subchannel_lock); atomic_set(&css_eval_scheduled, 0); init_waitqueue_head(&css_eval_wq); slow_subchannel_set = idset_sch_new(); -- 2.25.1