From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5789DC0650F for ; Thu, 8 Aug 2019 19:54:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 212C32184E for ; Thu, 8 Aug 2019 19:54:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565294058; bh=JpSgraDyEUv7RDVZuc+7neB6LsPc2oMv3dax6MERXBc=; h=From:To:Subject:Date:In-Reply-To:References:In-Reply-To: References:List-ID:From; b=DdgxpnE4Wh+W8Ac7Uy+TZe3RI4+3xvUzALY37dMhUKR2Pdj2iz25n7ExsPCBjjqHR yC59AvmA2yrTGAcP0m7ulgtzdufDMmEmx2XEQc8+Ql2fkB3D/r5/mezG2LjDPYesbm 7pteMRPMh7y+1ffzpg2ssM8cSQQ8tHsRXKUJ73Q4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390326AbfHHTyN (ORCPT ); Thu, 8 Aug 2019 15:54:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:58076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404479AbfHHTxU (ORCPT ); Thu, 8 Aug 2019 15:53:20 -0400 Received: from localhost.localdomain (c-98-220-238-81.hsd1.il.comcast.net [98.220.238.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D53C218BB; Thu, 8 Aug 2019 19:53:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565293999; bh=JpSgraDyEUv7RDVZuc+7neB6LsPc2oMv3dax6MERXBc=; h=From:To:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=ZIWPskHuZtVohFU/PRsXN1s9nBsFncO2UeopoKTFbsdSv7pASdmm6QVd6f91Cafld GNQ8E8T2tte8Q66R0KZaRMsr/HPL/vrLwHr/vz4ggaeGDOQ7qRdhOiEMALTYyLRttV bSkTXhkqbQ3gJJ9uzczki9q3SMlvwKfP+4Do0AVg= From: zanussi@kernel.org To: LKML , linux-rt-users , Steven Rostedt , Thomas Gleixner , Carsten Emde , John Kacur , Sebastian Andrzej Siewior , Daniel Wagner , Tom Zanussi , Julia Cartwright Subject: [PATCH RT 10/19] pci/switchtec: fix stream_open.cocci warnings Date: Thu, 8 Aug 2019 14:52:38 -0500 Message-Id: X-Mailer: git-send-email 2.14.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-rt-users-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rt-users@vger.kernel.org From: kbuild test robot v4.14.137-rt65-rc1 stable review patch. If anyone has any objections, please let me know. ----------- [ Upstream commit 9462c69e29307adc95c289f50839d5d683973891 ] drivers/pci/switch/switchtec.c:395:1-17: ERROR: switchtec_fops: .read() can deadlock .write(); change nonseekable_open -> stream_open to fix. Generated by: scripts/coccinelle/api/stream_open.cocci Cc: Kirill Smelkov Cc: Julia Lawall Fixes: 8a29a3bae2a2 ("pci/switchtec: Don't use completion's wait queue") Cc: stable-rt@vger.kernel.org # where it applies to Link: https://lkml.kernel.org/r/alpine.DEB.2.21.1904131849350.2536@hadrien Signed-off-by: kbuild test robot Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Tom Zanussi --- drivers/pci/switch/switchtec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c index 69875a196ad8..2b6641c9e868 100644 --- a/drivers/pci/switch/switchtec.c +++ b/drivers/pci/switch/switchtec.c @@ -625,7 +625,7 @@ static int switchtec_dev_open(struct inode *inode, struct file *filp) return PTR_ERR(stuser); filp->private_data = stuser; - nonseekable_open(inode, filp); + stream_open(inode, filp); dev_dbg(&stdev->dev, "%s: %p\n", __func__, stuser); -- 2.14.1