Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3244203pxb; Thu, 10 Feb 2022 16:14:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpQ9uI385e2pSiiABk6LOvWmRAbb25XO8Pnq+5xrA/mXj39HrZc0te7vw8R4fZLiZaCDO3 X-Received: by 2002:a17:90a:58:: with SMTP id 24mr5418372pjb.118.1644538482152; Thu, 10 Feb 2022 16:14:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644538482; cv=none; d=google.com; s=arc-20160816; b=A4LB8ih+YTBzJnhW6Y07/+X8u8FXC3YA4FiKQvD9kHrzrCPhjnu0bCHfcKcRg4RiJJ 2GMDro5E50JvHg8MkLR+BICkrn0tJaJc97dn/DJhhIwSVyQet8ntXiIm1FjT3W5U2431 u7GoN6Kou72HnwsXADdq42/RPsZmHulhfhZmiVO0NHzss0nSEb80LdlC9A74ThUKSaae TTy6WCALuCponZsdP6GJEgdnpEGtYsxkS1Ro4xQVjdwqF8g5Q1pNHqkhQosGiIYdHsp/ n9VboaXYUxoDe4abHescPEBBVbr8SOQjC/dQW1ugRh8q5c3geUFeoIPgOtRxCENs0GFd 6ocw== 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=lQBibZq98j772x4krzVb7Cr++yffcSk2ylohO656ZEQ=; b=LMriNdLxPJd9+5b0ZOjuBjceuoLOoUwCqyI32hGiviSAZTaTysWyO8tybfPVOEtvT8 3fh7AcLnfKJHRXSTyXFQvlozNOWU16hM/BirZI0BOdGF/gVwZH4yCP2S9se6+0F3NvlR W5ZhqD4HCcjQCMH4w4od6HOQotBlrwPkfY7E6K1vozz0Ja/DzPR0Dsxomf8aYwz1Y8WU opySqhK/U83+5rN31WcmswDt7Ot27/iqeqnHe5GnMrv8v5kvdGni7H/NkDQhuh2iBMA/ HUQESIW+CU8ObrILParOUGr6pChym/8tmo9NufvFZBCty10n/SXb/L5pf5eFxi+wlEHR +yTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10si3761601ple.311.2022.02.10.16.14.29; Thu, 10 Feb 2022 16:14:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245198AbiBJUmq (ORCPT + 99 others); Thu, 10 Feb 2022 15:42:46 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344302AbiBJUmi (ORCPT ); Thu, 10 Feb 2022 15:42:38 -0500 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4374F108D for ; Thu, 10 Feb 2022 12:42:37 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.88,359,1635199200"; d="scan'208";a="5603087" Received: from i80.paris.inria.fr (HELO i80.paris.inria.fr.) ([128.93.90.48]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 21:42:33 +0100 From: Julia Lawall To: Sergey Shtylyov Cc: kernel-janitors@vger.kernel.org, Damien Le Moal , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/9] pata_mpc52xx: use GFP_KERNEL Date: Thu, 10 Feb 2022 21:42:19 +0100 Message-Id: <20220210204223.104181-6-Julia.Lawall@inria.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220210204223.104181-1-Julia.Lawall@inria.fr> References: <20220210204223.104181-1-Julia.Lawall@inria.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Platform_driver probe functions aren't called with locks held and thus don't need GFP_ATOMIC. Use GFP_KERNEL instead. Problem found with Coccinelle. Signed-off-by: Julia Lawall --- drivers/ata/pata_mpc52xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c index c1b138d24b05..a2a3a95c71ed 100644 --- a/drivers/ata/pata_mpc52xx.c +++ b/drivers/ata/pata_mpc52xx.c @@ -736,7 +736,7 @@ static int mpc52xx_ata_probe(struct platform_device *op) } /* Prepare our private structure */ - priv = devm_kzalloc(&op->dev, sizeof(*priv), GFP_ATOMIC); + priv = devm_kzalloc(&op->dev, sizeof(*priv), GFP_KERNEL); if (!priv) { rv = -ENOMEM; goto err1;