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.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 0F3F1C38A2A for ; Sat, 9 May 2020 01:43:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E1EB320820 for ; Sat, 9 May 2020 01:43:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728355AbgEIBnt (ORCPT ); Fri, 8 May 2020 21:43:49 -0400 Received: from mga12.intel.com ([192.55.52.136]:49691 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727828AbgEIBns (ORCPT ); Fri, 8 May 2020 21:43:48 -0400 IronPort-SDR: sR3Y3Jt3XVPPcY3ao8+6bIuutrXdV+sSJnguHelVmmayG1JTCgb1M3f9awUzB49f176yPXv0g1 VNgLgtfqmhMA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2020 18:43:48 -0700 IronPort-SDR: 6GkQifpP6x07iANnbu42bIwJf2flH9jNSTJrUa5MbgNmeLgSRKKBrMn/RtnMeAzvmYbZ/zdqK6 0Ngm6qwxSe1g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,369,1583222400"; d="scan'208";a="250623148" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 08 May 2020 18:43:47 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1jXEWp-000GcD-2R; Sat, 09 May 2020 09:43:47 +0800 Date: Sat, 9 May 2020 09:43:32 +0800 From: kbuild test robot To: Matthew Blecker , Wolfram Sang , linux-i2c@vger.kernel.org Cc: kbuild-all@lists.01.org, Matthew Blecker Subject: [PATCH] i2c: fix stream_open.cocci warnings Message-ID: <20200509014331.GA22477@2b00b1f31741> References: <20200507230513.246804-2-matthewb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507230513.246804-2-matthewb@google.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: kbuild test robot drivers/i2c/i2c-pseudo.c:2206:1-17: ERROR: i2cp_fileops: .read() can deadlock .write(); change nonseekable_open -> stream_open to fix. Generated by: scripts/coccinelle/api/stream_open.cocci CC: Matthew Blecker Signed-off-by: kbuild test robot --- url: https://github.com/0day-ci/linux/commits/Matthew-Blecker/i2c-Add-i2c-pseudo-driver-for-userspace-I2C-adapters/20200509-011221 base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next Please take the patch only if it's a positive warning. Thanks! i2c-pseudo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/i2c/i2c-pseudo.c +++ b/drivers/i2c/i2c-pseudo.c @@ -2203,7 +2203,7 @@ static int i2cp_cdev_open(struct inode * this_pseudo = i2cp_device; /* I2C pseudo adapter controllers are not seekable. */ - nonseekable_open(inodep, filep); + stream_open(inodep, filep); /* Refuse fsnotify events. Modeled after /dev/ptmx implementation. */ filep->f_mode |= FMODE_NONOTIFY; From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4330619417866913512==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: [PATCH] i2c: fix stream_open.cocci warnings Date: Sat, 09 May 2020 09:43:32 +0800 Message-ID: <20200509014331.GA22477@2b00b1f31741> In-Reply-To: <20200507230513.246804-2-matthewb@google.com> List-Id: --===============4330619417866913512== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kbuild test robot drivers/i2c/i2c-pseudo.c:2206:1-17: ERROR: i2cp_fileops: .read() can deadlo= ck .write(); change nonseekable_open -> stream_open to fix. Generated by: scripts/coccinelle/api/stream_open.cocci CC: Matthew Blecker Signed-off-by: kbuild test robot --- url: https://github.com/0day-ci/linux/commits/Matthew-Blecker/i2c-Add-i2= c-pseudo-driver-for-userspace-I2C-adapters/20200509-011221 base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/f= or-next Please take the patch only if it's a positive warning. Thanks! i2c-pseudo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/i2c/i2c-pseudo.c +++ b/drivers/i2c/i2c-pseudo.c @@ -2203,7 +2203,7 @@ static int i2cp_cdev_open(struct inode * this_pseudo =3D i2cp_device; = /* I2C pseudo adapter controllers are not seekable. */ - nonseekable_open(inodep, filep); + stream_open(inodep, filep); /* Refuse fsnotify events. Modeled after /dev/ptmx implementation. */ filep->f_mode |=3D FMODE_NONOTIFY; =20 --===============4330619417866913512==--