Received: by 10.223.176.46 with SMTP id f43csp132058wra; Tue, 23 Jan 2018 17:36:37 -0800 (PST) X-Google-Smtp-Source: AH8x224/0xzE6gzSKLE0U6WahAgkRwTcnjvOUrhxTLN+2HGEI/nCl1w5KU61JTSSvBpIJbBh5/jM X-Received: by 2002:a17:902:bb0a:: with SMTP id l10-v6mr2757112pls.130.1516757797170; Tue, 23 Jan 2018 17:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516757797; cv=none; d=google.com; s=arc-20160816; b=GZN2OLHOtUVXuVGK+SnxUyT6hPkh4gNmhhPFzo9Vkb1E0eNLguW749Uh81F0Rp2lmQ AQ3f59ZVIjm3yxhVjNBPpvjVMbJr6DEenYnVZM3ZqeEYBcFEZQdPipakR3tlDOf8fiRQ hLME1cMJcUmRAQQKNqRVvfV9hpO16KyyOFTkRTQzD2myyIwpmbJGx56fFpBayoKhKPdY PSOBzLa/8agdf1gFsKwtTF7KYHZKqLgf9vUAuqr3MAJgYPP4Q6j4XHBnzPtqqCv00Egv b4dg3nxRx6+lWTivg+h+8N8LGUVAzLeSkVSZ8Qb3b0owNAU3UCTnCY72llG9is/1ekNq CdlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=JhbT7vMuCFA22N7cw3ncy0mVe5Dmi7yzZEmdNVH5NKQ=; b=jBqahXwmYBW36CpZg3AMrHBqJ9nT6xQw63nm+XKMM1BbTz3bWv9SLS9tHJqGb1atPK fufyOgmcHLhzglsIj5TZ0DnZnEZLRoG8LCZ3RmFCetSZg6nzoXnvMw+vM53I472iPK/w WeyR8FMtxULG+UWhAo9uoiTG8iWaQxbPIaIqPmIO4HXxtVZIWPzrcKrMR2ujwnGbeVTB mgitOJoL8mZTVrLR/+VJ1qU4rKTD5N3xBvSkmMEOBfZGSbEaTHoKzFMxz9gwytkB4EL4 OrMQnvFkIHhaWT5HyKhpTh2DgFmnYUY46maBUHfe4NJLizQQHNS1VpeFfu3tgfpK9shw 06CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K4qOYJPj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11si15125214pgv.625.2018.01.23.17.36.22; Tue, 23 Jan 2018 17:36:37 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K4qOYJPj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752044AbeAXBfv (ORCPT + 99 others); Tue, 23 Jan 2018 20:35:51 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:39361 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751681AbeAXBfu (ORCPT ); Tue, 23 Jan 2018 20:35:50 -0500 Received: by mail-pf0-f193.google.com with SMTP id e11so1788394pff.6 for ; Tue, 23 Jan 2018 17:35:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=JhbT7vMuCFA22N7cw3ncy0mVe5Dmi7yzZEmdNVH5NKQ=; b=K4qOYJPjItIg/e8JP4Vuu1jNEtSlTCSnsjfhaehYFTXsocMm+BpzxbhsPnZArf3Rle WaxCAkjZxIHDVP6CEJvYBYtAaQs/PrCQWWMSzlZzli0u4fglfS7TZJEM3mTmu6IENumn yoAD8zKOwOSSU7iL4vPgWIR8CazVXPWKPyswy1cyNYlrhuCOushJAdxUARQgfjp9MFdj J/x1K98FhyvS+0KEF2Je2xdU+NTKN2fmTefnVKgBcGZ8aI0mGvzSAYdhg+xF0VUw+jum um5Q23/AAtyTgGzw8TE5hpy/qNYUJrCJv9uCJQgQX3nREHUilZXWZ8xYgU9P04CZw2Iu 6bMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JhbT7vMuCFA22N7cw3ncy0mVe5Dmi7yzZEmdNVH5NKQ=; b=Fv8SbgWZ7pwaCVh6zs1U1k4jE4Toc4znKJ7LSXtIqUFxZwULdNyL8b8/02L3YV55RV KSvoFknTcVsslOMG87iehW+JDheCi800ml5yCF9HABHFeAMV/Kz2jtuJk0hPcbFfSVDI eImKYDqchkrDDrqqzgEXeR8xmZxkBY+NPfIVXP2sDtXzuttMUIaCBOGHZs8ZRXC2+r/0 RqNXOn0gsTXjhdSY2b6YMNUhrnwwL5nOAtLmbgkSFaPsKCi3Q5ykygLMGuzvjYXv2X8c xBwau5A/cpkmroHHP06y9DAGGAHGcslsA2tOY6QzlyDeOy4gb0hbYgI6k0PVcFQAgm5g hc9w== X-Gm-Message-State: AKwxytc1yFG7ufKfTrFqB+yM0W95TKKxDRFPmD2r9cq/mbd5J+inmM52 Sm6uIDFYpztRa+dny8JanNo= X-Received: by 2002:a17:902:6b05:: with SMTP id o5-v6mr6498979plk.179.1516757750073; Tue, 23 Jan 2018 17:35:50 -0800 (PST) Received: from bai-oslab.tsinghua.edu.cn ([2402:f000:1:4413:e16d:1588:961d:f546]) by smtp.gmail.com with ESMTPSA id o88sm6815994pfi.82.2018.01.23.17.35.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jan 2018 17:35:49 -0800 (PST) From: Jia-Ju Bai To: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, jgross@suse.com, douly.fnst@cn.fujitsu.com, kkamagui@gmail.com, gregkh@linuxfoundation.org, mka@chromium.org Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Jia-Ju Bai Subject: [PATCH] kernel: x86: apic: Replace GFP_ATOMIC with GFP_KERNEL in __add_pin_to_irq_node Date: Wed, 24 Jan 2018 09:40:15 +0800 Message-Id: <1516758015-7236-1-git-send-email-baijiaju1990@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function __add_pin_to_irq_node is not called in atomic context. Thus GFP_ATOMIC is not necessary, and it can be replaced with GFP_KERNEL. Signed-off-by: Jia-Ju Bai --- arch/x86/kernel/apic/io_apic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 201579d..665c013 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c @@ -379,7 +379,7 @@ static int __add_pin_to_irq_node(struct mp_chip_data *data, if (entry->apic == apic && entry->pin == pin) return 0; - entry = kzalloc_node(sizeof(struct irq_pin_list), GFP_ATOMIC, node); + entry = kzalloc_node(sizeof(struct irq_pin_list), GFP_KERNEL, node); if (!entry) { pr_err("can not alloc irq_pin_list (%d,%d,%d)\n", node, apic, pin); -- 1.7.9.5