Received: by 10.223.185.116 with SMTP id b49csp2660786wrg; Sun, 25 Feb 2018 03:13:18 -0800 (PST) X-Google-Smtp-Source: AH8x224OaQCpXSKCyjCB6n2hVfIo4BujWUbrPBZg6dZFM+aDMetJccCpVGmUEkaJWG1pf9JBpl+w X-Received: by 10.99.183.5 with SMTP id t5mr5973428pgf.416.1519557198488; Sun, 25 Feb 2018 03:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519557198; cv=none; d=google.com; s=arc-20160816; b=kGDo5Rp/cEo3sIsq28KP2W0dRuFcFcR4YQVxZAQkCigRuABXxNCS/tguucO9ZA6yek 5HMvoYDJ6s9uK0QR6R88kTj75nxyq4Fo3MREVvwn0wMMr58cKEzhbLW1Td8ufOWB2asd mBV2d6+dxWBayDPyzkxaYpC7r/lpQnMOIszb1mxiJtUTn6lkuNT8tZLefomnsJZnac/i ZVCR9ktBHt4mN2JT7VJ9gL4O/6GK6ro5Ns9FvBphvip1oTZtM3ntpB7oQpzrCBU0L3ZM XPpZfBLzNBLBsCrOXQM3P398e969SSXQ7wwTi1LwFvo4rpwB3yJnvjbRsRQMi6qzzbDo 94BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=QV+tUo/GjCajGkUNX2vdtx2fyJPiKkznRdC7zwRfA10=; b=b+eqUYCS22NA29u6IIl0MyYmgHfcetpioeUzBF43Hky2GOq2pCK47M1V75kWU7VMUi XCprzsyelxBdOLpaf1a9R6FfCZzt7ro9LQoj7H2XcHsMRpyJzbeNOAI+LsxxImK5q3iA Wgb2IXDp8C3/fvQnTNPE5cS818GE0CaHANtNf3aNnDmPwo6ATo8zugt7hLfXaUwzK1a1 Z6eV0/fUgW8z6tyO812V0CIwvSasOrmMYPK/u8nmRAHiINK9ZLKMoz60MhxEi4531Xhh ssXxbagTMJFxpKr6oZhTT7AyGGolpqVs/VA8yG36+SLImTehw2IlZ+AiS0eAGKtQwUU+ BeIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XdGS1hMU; 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=QUARANTINE 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 u5si4127055pgv.424.2018.02.25.03.13.04; Sun, 25 Feb 2018 03:13:18 -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=XdGS1hMU; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751805AbeBYLLd (ORCPT + 99 others); Sun, 25 Feb 2018 06:11:33 -0500 Received: from mail-vk0-f65.google.com ([209.85.213.65]:46333 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751888AbeBYLLF (ORCPT ); Sun, 25 Feb 2018 06:11:05 -0500 Received: by mail-vk0-f65.google.com with SMTP id x125so8128489vkc.13; Sun, 25 Feb 2018 03:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=QV+tUo/GjCajGkUNX2vdtx2fyJPiKkznRdC7zwRfA10=; b=XdGS1hMUk//J4Qt5Bo7fCVuCtKcv8+ojotO6XLU278jQy+TyBPR80xY5rnbjRq4EOx dS9AAqgjweFGsbobkHiZXblP92UQbnws6kB9hYCPXsfBNnZ9tF+GXjbLiJQpJEOdAgHN Iflg+SivmquEU3wNnZLhpZZDNqqUPM4DRDuiB7R2p/2aTB/l4HrWnrVJNry+M19SGH/s b2bDUVidAaj4CoEkFUBdjqlEeFZri7+PxgazPcPxbcw5KzWeCdKYgItm97oVSl8htCUw 6fjhDvOpY4KGQK7Mmacrxk1Rji1BzOvdjwTL4Njv6e2phxv/nI632V/Iv+MVK/v89vXj bcpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=QV+tUo/GjCajGkUNX2vdtx2fyJPiKkznRdC7zwRfA10=; b=KPtrV/QZw2Wbb+8NGqb2xBAT1tzw+85CsZzjzRQEjFH5y2ccItRk+5LORF3Asl1Aef O5vjd86h4NjTf5sa0VRMaETfboiG/kZmVP/Se+aeB5YmJ2JcPjqVSenSwTfATNrJu0S1 xDAgctYKo01BAACedoHG7Qr5LaCxrWdXkWXfY9avVCEfuXlCQLr0O7AfqCvUbzZ0SbwN etN3rjyo5blIs/wX6IfKLy4LMtRXxZcCFWFVPeUF4QiZ2avH0GHdZ0POLRObYGibQjfS crMsmX9NY3GZd7fDXtzONbZtk2q6ImRHseVvZYa5i5Jtda+ZqrdUZac2cjPnYTDqfOZQ k5XA== X-Gm-Message-State: APf1xPBb2wX9ehRbfak5UdHTu2y935xQLV9Jy3gu4kMbtBp6gZMdquyj Im9OAq/5tYQ2kVcKHXfT5IbenuOBLbF5iXCOOK0ibA== X-Received: by 10.31.21.209 with SMTP id 200mr5242930vkv.135.1519557064854; Sun, 25 Feb 2018 03:11:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.61.75 with HTTP; Sun, 25 Feb 2018 03:10:34 -0800 (PST) In-Reply-To: <94b486c9-92ce-dae8-3d5e-db1943fc0119@users.sourceforge.net> References: <94b486c9-92ce-dae8-3d5e-db1943fc0119@users.sourceforge.net> From: Oded Gabbay Date: Sun, 25 Feb 2018 13:10:34 +0200 Message-ID: Subject: Re: [PATCH] drm/amdkfd: Delete an error message for a failed memory allocation in kfd_topology_init() To: SF Markus Elfring Cc: amd-gfx list , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , David Airlie , LKML , kernel-janitors@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 8, 2018 at 11:33 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 8 Feb 2018 22:23:57 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- > drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c > index 19ce59028d6b..610e3d4ac575 100644 > --- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c > +++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c > @@ -1019,7 +1019,6 @@ int kfd_topology_init(void) > crat_image = kmalloc(image_size, GFP_KERNEL); > if (!crat_image) { > ret = -ENOMEM; > - pr_err("No memory for allocating CRAT image\n"); > goto err; > } > ret = kfd_topology_get_crat_acpi(crat_image, &image_size); > -- > 2.16.1 > Hi, Thanks for the patch but this code block is going to be refactored in the next merge window and the patch will no longer be relevant. Oded