From patchwork Sun Apr 4 15:26:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 12182307 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=-20.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,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 21CE9C433B4 for ; Sun, 4 Apr 2021 15:31:02 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A725B6108F for ; Sun, 4 Apr 2021 15:31:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A725B6108F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=inria.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=EYkQD72yNnOaFmBaWRZE74Z/Pwp6ZPn390fbEhtWJwM=; b=O01D+UAxD4I2rVvNAsBTSUiJWR 8jWjVcddQeXYm0ieRHckLu7hNy/Z05nbYVv9srnqh+dyeQxJMhYUULGt24fSE53cyZ756Jaw3vA+N 3Aus7FAeZzCmjUMUEVP4ttP1ER56khpaYoT3MFd6tcBaOG1rjqEohAyfRr4I8V4jTe/OR4Odce8tP 4VYXMEFswaq8perBi9ztse48ZUZd3v5kt7UmJaQNNu+ftKwU+aNldUyvbygQAqKgAxosWT/2GakH6 hVxcvEKY8pHU2YuqhcqeB2Vzp0f5nDoVDN2hVXURUs4C4msMb8ZWT7JG7YJeqBEjoJEZSi8xtm0Uu 1pmfj+MA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lT4dy-00FrzX-FI; Sun, 04 Apr 2021 15:26:30 +0000 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lT4dt-00FryE-PW for linux-arm-kernel@lists.infradead.org; Sun, 04 Apr 2021 15:26:27 +0000 IronPort-HdrOrdr: A9a23:Y2d9Ga8XTmD/lIU2x9Ruk+AYI+orLtY04lQ7vn1ZYxpTb8CeioSSjO0WvCWE6go5dXk8lbm7U5Wobmjb8fdOi7U5GZeHcE3YtHCzLIdkhLGSoAHIPyHl7OZS2eNBXsFFaeHYNlRxgcbk7ATQKb9J/PC87Kuqie3Cpk0CcShWbchbgztRNhyWCQlfSgVAGPMCdKa014534wCtfnkada2Aa0UtVeKrnbL2qK4= X-IronPort-AV: E=Sophos;i="5.81,304,1610406000"; d="scan'208";a="377727877" Received: from 173.121.68.85.rev.sfr.net (HELO hadrien) ([85.68.121.173]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2021 17:26:19 +0200 Date: Sun, 4 Apr 2021 17:26:19 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Sven Peter cc: Marc Zyngier , Joerg Roedel , Will Deacon , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kbuild-all@lists.01.org Subject: [PATCH] iommu: dart: fix call_kern.cocci warnings Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210404_162626_002438_C2F9C739 X-CRM114-Status: GOOD ( 10.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: kernel test robot Function apple_dart_attach_stream called on line 519 inside lock on line 509 but uses GFP_KERNEL Generated by: scripts/coccinelle/locks/call_kern.cocci Fixes: ce67d3b3ef37 ("iommu: dart: Add DART iommu driver") CC: Sven Peter Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/m1-pcie head: 1fd2c9634dd24fba323baba52200de18e4d3f4ee commit: ce67d3b3ef3734925631ec65deb1cf8078d826cf [14/15] iommu: dart: Add DART iommu driver :::::: branch date: 8 hours ago :::::: commit date: 8 hours ago Please take the patch only if it's a positive warning. Thanks! apple-dart-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iommu/apple-dart-iommu.c +++ b/drivers/iommu/apple-dart-iommu.c @@ -435,7 +435,7 @@ static int apple_dart_attach_stream(stru goto error; } - stream = kzalloc(sizeof(*stream), GFP_KERNEL); + stream = kzalloc(sizeof(*stream), GFP_ATOMIC); if (!stream) { ret = -ENOMEM; goto error;