Received: by 10.223.176.46 with SMTP id f43csp3945994wra; Tue, 23 Jan 2018 01:34:07 -0800 (PST) X-Google-Smtp-Source: AH8x225kU3RX8Fp7UzLm/Sv5H9vlYT+PvPxo/EPfECEJ3uh7Nd5uyTPLhy9Lc/Ca5QbmUgTWrI03 X-Received: by 2002:a17:902:8f87:: with SMTP id z7-v6mr5056847plo.242.1516700046888; Tue, 23 Jan 2018 01:34:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516700046; cv=none; d=google.com; s=arc-20160816; b=rInGsORg5ysIK7bWijzMDPJLjR1WxAKMDPK9AwjjLFmXdczNT+y81ePevygsOHiF5T wG9K9viIKcDSz7EDeFHujjfGjQo8hQP+tx643cKaVO8o/VFgK27TQNLfscZBnqX0f3J+ 6/XyWVmMPZoemrw7UutbJCiwrkDzQ3XxAeTKVMCmSlS6gzRh0fniQQjSDVp0+hlBsSGJ eZdpXYP8n3kSBJWefhWRl0caPuDxBO2Bs11ycApE+BCaw0OlFCQYCMk1HOQxVpxD5VQn uw1lZACSgOsa4aJZ4/e8DXBva7Ogs1yV9FhNZa92D3EM3cQLWY2YlsxWIQCi7yVyrhco HHqw== 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=IsXh4DEmFn8hhqkd7JP16PQSS6vfHtZm41m7UDKZAMM=; b=ZWwvC1eYZdtm9E2ukEfpfi0uNDXcoki2Kl63/ZGkGAcBuGt3Da3Pr+b8tA6InyTKSM Jh5DnUkwdxrgRmkMKOsk86HWH0xdl6YpShn8yW25y7G0dwp31M/W6zAxNCZ+4JlhGLWH ABjBPDB4M00wVEoK1kdHhyakdrgEZdUwfNe3iyOSuyxLgKCfkDRv5bFs7euUZE9XuieA Yr/2lJlTMbjCWJ6+vMMj1hhSV90bduaZFdoi7/YWe30qJ8gDX53ULDZDLSd+dffiF/Za zhfvsBGrQ02pE1WXqxiuvoHGDmldkOJ/fXthtN2SE70qK5wnaghHpKmVywXpxOcJfW9Q m5YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fTmTBUmv; 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 n10-v6si4437698plp.158.2018.01.23.01.33.52; Tue, 23 Jan 2018 01:34:06 -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=fTmTBUmv; 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 S1751192AbeAWJd0 (ORCPT + 99 others); Tue, 23 Jan 2018 04:33:26 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:46167 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751141AbeAWJdZ (ORCPT ); Tue, 23 Jan 2018 04:33:25 -0500 Received: by mail-io0-f193.google.com with SMTP id f34so224464ioi.13 for ; Tue, 23 Jan 2018 01:33:24 -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=IsXh4DEmFn8hhqkd7JP16PQSS6vfHtZm41m7UDKZAMM=; b=fTmTBUmvJj5PMOrpRKlH834hQysVcXnBTgnqaLZYCjypuiOvC2+HhrIEUpeTPeG9wf edVCc2dDuhgg/TwPcA1d9oBB4WbI5/s4id8qvxKQ/i5hIGdQWuRRwS4HblHCLGomMKym YV1VxlpQSJp+pJIVrsMSjFPdBp8SA58NpBwME2WGRffSnLWjmV2ZbQIv8GbLy1uM6672 wv6p1Mgo7FqQt26Fr1q9cVlJ9XtuMMq7ReOQEXugtR7WhfycmldyRQbEUF+PF/g9fU10 cJ1Pq48Td5Me01U/tFa4I82m+LPepebLSd8LUnd3dxWmtUOa3crkmBDXAc/IOor8xtKL LyDw== 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=IsXh4DEmFn8hhqkd7JP16PQSS6vfHtZm41m7UDKZAMM=; b=BmnAFdQSoQpybrAFSu5m6Ds4/alMp0uzLcopEnhXIanK4VeabwjZquYYngTQTrdcBj tkTKhZDj16YlJZqS2Kfw8m0P6AhFWkBMM+9USLm8xEAx1kz8g1no9Zd/yqgSmKDRyNaf ageGo9nd7ESRAgFjghg9zX+o17+8hD+7xZwpVwDrsmznkZcdQOE3eR964PaC4mWzJa6r JXiR+bLZqPpjYDl0DZjzQuyCfTveyhwftG7SvkLAFkJiEZQRKJAqNUcx/b6vqn/0OHPb JpDryzz0OTdxrr/0SzTmUz6FTOlUr0iPnpuOyooTbjUP9iP1t/OexB/ApoPmbcY6oKpA 3/yQ== X-Gm-Message-State: AKwxytdYH5XOJUJ02i2Pp3KZgtN6+d3g/HTzkK1uA0h3u/YpalOASsoD 9BncsKpp1zs1tXN0yk58O/Y= X-Received: by 10.107.142.68 with SMTP id q65mr2875818iod.133.1516700004476; Tue, 23 Jan 2018 01:33:24 -0800 (PST) Received: from bai-oslab.tsinghua.edu.cn ([2402:f000:1:4413:e16d:1588:961d:f546]) by smtp.gmail.com with ESMTPSA id z136sm9307274ioe.68.2018.01.23.01.33.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jan 2018 01:33:23 -0800 (PST) From: Jia-Ju Bai To: perex@perex.cz, tiwai@suse.com Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jia-Ju Bai Subject: [PATCH] sound: emu10k1: Replace GFP_ATOMIC with GFP_KERNEL in synth_alloc_pages Date: Tue, 23 Jan 2018 17:37:48 +0800 Message-Id: <1516700268-26923-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 synth_alloc_pages 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 --- sound/pci/emu10k1/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/emu10k1/memory.c b/sound/pci/emu10k1/memory.c index 4f1f69b..a4dbae1 100644 --- a/sound/pci/emu10k1/memory.c +++ b/sound/pci/emu10k1/memory.c @@ -477,7 +477,7 @@ static int synth_alloc_pages(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk if (p) __free_page(p); /* try to allocate from <16MB zone */ - p = alloc_page(GFP_ATOMIC | GFP_DMA | + p = alloc_page(GFP_KERNEL | GFP_DMA | __GFP_NORETRY | /* no OOM-killer */ __GFP_NOWARN); } -- 1.7.9.5