Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3455508pxf; Mon, 29 Mar 2021 02:42:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzV3z8jMuy1RSUfR+hkOCR62s9Tg//KyJTIf8x1wvKIO6wadrtZWs+glEFBje896eVDZGy X-Received: by 2002:a17:906:add7:: with SMTP id lb23mr27360083ejb.273.1617010975815; Mon, 29 Mar 2021 02:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617010975; cv=none; d=google.com; s=arc-20160816; b=ARYr8fjjqU1zFsCqIIaoDJy0zHGcOUajTXA6MMZj6hWhRIjw4OwxrvprKPspfMyGW7 QgWCUJuvhZfvsjGFbLOlnIE7Ud3IgBYYEZCX41zlKFmTDYdMKMGlYy9oXEQ6kZL4mkCA Wv8RIO8dCqPhxm9vnRA2NDu6m3QQ8QXIgNSkzUAX4ZSd0NBINvnBsWzlv8EfIGMz6DiO 8eFyxrEe3Q/AyspJl/wlZFGnOLOOhnbI8u5C95WUWx+hOANWJ0jguiz4eZpAiXnW3ozr hgsVHSoo0nUQWRLs0IJobpM4lv4/39RwyDRsaOR0DOUwcy25CYZSbUkicZ9vFxD2h2Qq pSCQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=P0Mx+pkp0peoKRWt2RUxdtL1T2DL6E8B9sLHFHttFzg=; b=EcnkYSDQmzgIECFXfOyacfMMBSETvCXgMq/aUB7T1IAgrCiWyHXF9tHr099hMCAcc2 xOTpY3Ix5d/0SjzNSg9l7SMZVQuiHKWH1C+GZyNdf5W8h/UX504sxWgqoyzVCjvnPWni U/a71O9ooXLbmcREEs/qC+CQzaLCH0jiuBqM20R15ZxNXNbxIjOEs6XnC9J87H7CZIcY y5VL2fb5qBva+DzgYv3NgbDOHUbSE2EHFVbAZZrdeW0924SQylSGviHMqZibZ7U4UyCJ 8P+EUdL2/4DNRfj7zUjXbRM4q1SDXoA3PteJQVK6aSVlAjiJfswTBEbHtfpV/5VlM6M7 L9CA== 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 h6si12422387ede.557.2021.03.29.02.42.33; Mon, 29 Mar 2021 02:42:55 -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 S232396AbhC2JlC (ORCPT + 99 others); Mon, 29 Mar 2021 05:41:02 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15092 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231949AbhC2Jkk (ORCPT ); Mon, 29 Mar 2021 05:40:40 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4F86vv0sqFz19Jtx; 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:31 +0800 From: Shixin Liu To: Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Christian Borntraeger CC: , , Shixin Liu Subject: [PATCH -next 2/2] s390/cio: use DECLARE_WAIT_QUEUE_HEAD() for wait_queue Date: Mon, 29 Mar 2021 17:40:19 +0800 Message-ID: <20210329094019.67044-2-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210329094019.67044-1-liushixin2@huawei.com> References: <20210329094019.67044-1-liushixin2@huawei.com> 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 wait_queue_head_t can be initialized automatically with DECLARE_WAIT_QUEUE_HEAD() rather than explicitly calling init_waitqueue_head(). 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 f01ef6325039..a974943c27da 100644 --- a/drivers/s390/cio/css.c +++ b/drivers/s390/cio/css.c @@ -652,13 +652,12 @@ static void css_sch_todo(struct work_struct *work) static struct idset *slow_subchannel_set; static DEFINE_SPINLOCK(slow_subchannel_lock); -static wait_queue_head_t css_eval_wq; +static DECLARE_WAIT_QUEUE_HEAD(css_eval_wq); static atomic_t css_eval_scheduled; static int __init slow_subchannel_init(void) { atomic_set(&css_eval_scheduled, 0); - init_waitqueue_head(&css_eval_wq); slow_subchannel_set = idset_sch_new(); if (!slow_subchannel_set) { CIO_MSG_EVENT(0, "could not allocate slow subchannel set\n"); -- 2.25.1