Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp961531ima; Wed, 24 Oct 2018 11:58:09 -0700 (PDT) X-Google-Smtp-Source: AJdET5ej3izmvxSswLLm5kVUUGCtENMieosGE9W9EFqTZtH50jgB0VBtJuRkBs+tE6CtbDQpPsYU X-Received: by 2002:a63:c802:: with SMTP id z2-v6mr3587564pgg.78.1540407489885; Wed, 24 Oct 2018 11:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540407489; cv=none; d=google.com; s=arc-20160816; b=PSxYzfyvscx9NhbKUJQkBiKA8N8qXj3WIOkXANZIKlAmiiwzID9J6wYaMeZJQ5+nN5 Mw0jaZMDjXiTc81hlPIjHU1NeCBkcU1RkKzRlugJ0H8RKVA5NOOkonmxOlJ0csP/4GgY 67uQ31+7udHLMvkgnre4wFjT9ZqYID8yqHU7Y7TjDlcs5XEctmqw1nsor0JCof0nNLIo clHMEfyNJ7oe9l82XRqZJgOs5ZcdAvif7TobV/MsAiIXF3RUh6DZ97YdhTNdn0owVht0 F2FaQcFaZ70Ssnu5slolLE2u2RG15lBPDpIk6YLPtStU2dX97lRkUNSRLMK/3eVu7N6z Gh+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date; bh=SSlESFN+RUq87+1pRJf/Rtv/fBRItLuIt0b15VIW3fQ=; b=HMYT2kkyrrhpRpnJlzVrYJNf3iqWpwG6qDwp1jA5N8C5PD6rUwf0YhZ+7rwVLipIbH KpDnn++LjEAgC4fDWT0aHIaJhtjGSLRNrcoV4rpyD4hDyUdnU+Ime+kZhyVwqp3ns8Hg /D+D9AtPtaOA2vBmeZcSqXMifkCiM3h1EXyUvQv3w07kAcP8iKGVnmskHpuuC/IxQgsl 6cmlj3jgxwgLi9C4S43qH5J4V+X/gyi4S536Iehv+Y4M3+5QU48Svv9SC+K94WsnHIo+ GRV2ZZkkOTkmJK6VX5mOHajSUmLJspAapbWpRll3LQKp1rONxSKoNyg9LWV1ttIBbW85 lKvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8-v6si5527259pge.545.2018.10.24.11.57.53; Wed, 24 Oct 2018 11:58:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727423AbeJYD0p (ORCPT + 99 others); Wed, 24 Oct 2018 23:26:45 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:30225 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727010AbeJYD0p (ORCPT ); Wed, 24 Oct 2018 23:26:45 -0400 X-IronPort-AV: E=Sophos;i="5.54,421,1534802400"; d="scan'208";a="352679581" Received: from 30.9-255-62.static.virginmediabusiness.co.uk (HELO [172.16.5.17]) ([62.255.9.30]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2018 20:57:29 +0200 Date: Wed, 24 Oct 2018 19:57:27 +0100 (BST) From: Julia Lawall X-X-Sender: jll@hadrien To: Chunming Zhou cc: kbuild-all@01.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, =?ISO-8859-15?Q?Christian_K=F6nig?= , Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm: fix call_kern.cocci warnings (fwd) Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-944385150-1540407448=:3776" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-944385150-1540407448=:3776 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT The containing function is called with a spin_lock held, so GFP_KERNEL can't be used. julia ---------- Forwarded message ---------- Date: Tue, 23 Oct 2018 17:14:25 +0800 From: kbuild test robot To: kbuild@01.org Cc: Julia Lawall Subject: [PATCH] drm: fix call_kern.cocci warnings CC: kbuild-all@01.org CC: intel-gfx@lists.freedesktop.org CC: dri-devel@lists.freedesktop.org TO: Chunming Zhou CC: "Christian K?nig" CC: Gustavo Padovan CC: Maarten Lankhorst CC: Sean Paul CC: David Airlie CC: dri-devel@lists.freedesktop.org CC: linux-kernel@vger.kernel.org From: kbuild test robot drivers/gpu/drm/drm_syncobj.c:202:4-14: ERROR: function drm_syncobj_find_signal_pt_for_point called on line 390 inside lock on line 389 but uses GFP_KERNEL Find functions that refer to GFP_KERNEL but are called with locks held. Semantic patch information: The proposed change of converting the GFP_KERNEL is not necessarily the correct one. It may be desired to unlock the lock, or to not call the function under the lock in the first place. Generated by: scripts/coccinelle/locks/call_kern.cocci Fixes: 48197bc564c7 ("drm: add syncobj timeline support v9") CC: Chunming Zhou Signed-off-by: kbuild test robot --- tree: git://anongit.freedesktop.org/drm/drm-tip drm-tip head: 8d7ffd2298c607c3e1a16f94d51450d7940fd6a7 commit: 48197bc564c7a1888c86024a1ba4f956e0ec2300 [1968/2033] drm: add syncobj timeline support v9 :::::: branch date: 4 hours ago :::::: commit date: 5 days ago Please take the patch only if it's a positive warning. Thanks! drm_syncobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/drm_syncobj.c +++ b/drivers/gpu/drm/drm_syncobj.c @@ -199,7 +199,7 @@ static struct dma_fence (point <= syncobj->timeline)) { struct drm_syncobj_stub_fence *fence = kzalloc(sizeof(struct drm_syncobj_stub_fence), - GFP_KERNEL); + GFP_ATOMIC); if (!fence) return NULL; --8323329-944385150-1540407448=:3776--