Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7000883ybi; Thu, 1 Aug 2019 01:41:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyskAl+0ar/X0jy9M6D3Eostk/xaRJScDo/qGGFesr/Vghq4Z3daDlUptLc5b0JEaM0D0KB X-Received: by 2002:a17:90a:d791:: with SMTP id z17mr6997133pju.40.1564648898090; Thu, 01 Aug 2019 01:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564648898; cv=none; d=google.com; s=arc-20160816; b=D4DAJG3SkZQSYgHUSi4KLXIzzymKho4GOUbybAl1Z6znoAIwk0daUVMzfJkzmpny4z 212JxdSs+Af/XClT41AXqp80ZQkaD7C6AfbJDHdgsFYDEuzcr/1eFo/excrz2AduFIgE YAhcZH+SxC8mWswvCTilDTb0y37SoeKwtoc0ihLoqqKfg5/rqoN2urXtwpBF4w0kt9jd vdfMlcC7gfzqRqBhi4PnlJOdWgUwL2sAfMehO1faF1XK3159F/Re/mUhokwJ9LgJpSa2 MLLCWlhZLiqgNnSlG9709TNZMzymZWX//A/0SbjaAHY8QiNGH3pbYqoUwks5PS5QtosL AKkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dlcR6T4pzPvOZ/OhZ/Fm5ngR7Zcozesk5tYzHOqsX4g=; b=OTYiAklvGLoooxfv/RcYmiHv8vSGD2VRnANrDJ5PpRfWESz3OUcpwkRVvFuOoeWyCT Ldmv8LCRmVkbBrMbxjjNoqeUfnwt6HQoi7HElJ/Wd6/HWvxpQWWg6HRsBDV82Koy4/Jz 9j7flH6V9m3YuISajmhzQ8ZIZWdidk1iasMBXsBXOqMK4OHago4iGe6aOx8khh5EASEy IQLOGxIH1Y8rjuAWybe/QOT/GJCe4hQ21LlPgXF75/hvyZWmghZx02/fTENAq0lqvjgr yWJSNrQiYmDkNzyCn8QJUyn95B4uqGPTHW+xEVdN7ef3LnB4h8Ej6la9P2FcMktLKRz+ Erag== 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 c8si36024568pfo.42.2019.08.01.01.41.21; Thu, 01 Aug 2019 01:41:38 -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 S1730286AbfHAIc2 (ORCPT + 99 others); Thu, 1 Aug 2019 04:32:28 -0400 Received: from smtp04.smtpout.orange.fr ([80.12.242.126]:46759 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730133AbfHAIc1 (ORCPT ); Thu, 1 Aug 2019 04:32:27 -0400 Received: from localhost.localdomain ([176.167.121.156]) by mwinf5d80 with ME id jkYQ2000L3NZnML03kYRHB; Thu, 01 Aug 2019 10:32:26 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Thu, 01 Aug 2019 10:32:26 +0200 X-ME-IP: 176.167.121.156 From: Christophe JAILLET To: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, allison@lohutok.net, tglx@linutronix.de, clg@kaod.org, groug@kaod.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 1/2] powerpc/xive: Use GFP_KERNEL instead of GFP_ATOMIC in 'xive_irq_bitmap_add()' Date: Thu, 1 Aug 2019 10:32:31 +0200 Message-Id: <85d5d247ce753befd6aa63c473f7823de6520ccd.1564647619.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to use GFP_ATOMIC here. GFP_KERNEL should be enough. GFP_KERNEL is also already used for another allocation just a few lines below. Signed-off-by: Christophe JAILLET --- arch/powerpc/sysdev/xive/spapr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/sysdev/xive/spapr.c b/arch/powerpc/sysdev/xive/spapr.c index 8ef9cf4ebb1c..b4f5eb9e0f82 100644 --- a/arch/powerpc/sysdev/xive/spapr.c +++ b/arch/powerpc/sysdev/xive/spapr.c @@ -45,7 +45,7 @@ static int xive_irq_bitmap_add(int base, int count) { struct xive_irq_bitmap *xibm; - xibm = kzalloc(sizeof(*xibm), GFP_ATOMIC); + xibm = kzalloc(sizeof(*xibm), GFP_KERNEL); if (!xibm) return -ENOMEM; -- 2.20.1