Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1234188ybt; Wed, 1 Jul 2020 23:43:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUx34kNtjsC4+vdr58SWnlhe4ZN0NtK8GO5AzoWXnLZ3KHn4rJprDlyFXG9VR8/X/qjwqe X-Received: by 2002:aa7:c442:: with SMTP id n2mr23393215edr.309.1593672221807; Wed, 01 Jul 2020 23:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593672221; cv=none; d=google.com; s=arc-20160816; b=P9ajEDi1+iMrdLe+uaCDaDw5Sx0NbYmA3JODfhyjc0emZDORicO2jk5z/wv8B2HoDj inJC/QNSEtKIpgpVjUOZAzHmG+mo9f9+XUgXxlmgZ447Ebnnm/j+UcHxUpIon+2ILlJr 7b3gvgrR/pc4Fdu2FNaLS+fowvOY5FyNfsRwkOZP3x4joWB5KoTd++zeOhDDXH9rbt30 lc7PlrfKQeP4nfAZ5mIdsC6+osKfu2eajl45JhNroROO/snA31BdO/uMvmHnrIzRYxXY W2Ck3P6iKmpScGpb6XT55Ky7+2geb3d4x9R28rUA7YrBhUJvF24KeCEmiOlbuqn7SFlf tTFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=DLCDXCfO/2aT4vMBPbxWXdKCQPZNDRosGc21LMdFRTU=; b=pp/akh2og9rvf47BzoMSJ/AHM8wwEE5NvK30BF7BmFaIk3c96RcllZOnmJiqT+S14Y zxasAdSa+orVxCnZI+U64X30LL6qIhG2hy01QuQmD5rpCzarGWEkj8Be6rdOXV7aNH8S OttJayMjzgOoLDbiLgi6D/1TGkmqPuTbngPGlx8Kuard67xgUjUB05O2UTR5gf9kCCG2 XtHZWw+GeHvsD5U2imuSbCUwwwH/DSfnYxCiN+4m53lPcC5gFSPQINjjT8E02IKovwPg 8BV0r94EOAGCiQyPL4aYpYIF0MyIrllgP3fxIhmGApFOWXLEtNU5h7DCRurnOAbTTAWz DSMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si5576922edi.356.2020.07.01.23.43.19; Wed, 01 Jul 2020 23:43:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726734AbgGBGmk (ORCPT + 99 others); Thu, 2 Jul 2020 02:42:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:51028 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726671AbgGBGmk (ORCPT ); Thu, 2 Jul 2020 02:42:40 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id D4347AB7D; Thu, 2 Jul 2020 06:42:37 +0000 (UTC) Subject: Re: [PATCH] drm/hisilicon: Use drmm_kzalloc() instead of devm_kzalloc() To: Tian Tao , puck.chen@hisilicon.com, airlied@linux.ie, daniel@ffwll.ch, kraxel@redhat.com, alexander.deucher@amd.com, tglx@linutronix.de, dri-devel@lists.freedesktop.org, xinliang.liu@linaro.org, linux-kernel@vger.kernel.org Cc: inuxarm@huawei.com References: <1593652914-19639-1-git-send-email-tiantao6@hisilicon.com> From: Thomas Zimmermann Message-ID: <50ea833a-7d8d-a1ad-3622-3456afc87719@suse.de> Date: Thu, 2 Jul 2020 08:42:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <1593652914-19639-1-git-send-email-tiantao6@hisilicon.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HkQdo8CuyD11ZMY15qc1sXizDvmjfLw22" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HkQdo8CuyD11ZMY15qc1sXizDvmjfLw22 Content-Type: multipart/mixed; boundary="29yr6CmlInDzUlDanFunYns2V6k80gprO"; protected-headers="v1" From: Thomas Zimmermann To: Tian Tao , puck.chen@hisilicon.com, airlied@linux.ie, daniel@ffwll.ch, kraxel@redhat.com, alexander.deucher@amd.com, tglx@linutronix.de, dri-devel@lists.freedesktop.org, xinliang.liu@linaro.org, linux-kernel@vger.kernel.org Cc: inuxarm@huawei.com Message-ID: <50ea833a-7d8d-a1ad-3622-3456afc87719@suse.de> Subject: Re: [PATCH] drm/hisilicon: Use drmm_kzalloc() instead of devm_kzalloc() References: <1593652914-19639-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1593652914-19639-1-git-send-email-tiantao6@hisilicon.com> --29yr6CmlInDzUlDanFunYns2V6k80gprO Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Am 02.07.20 um 03:21 schrieb Tian Tao: > using the new API drmm_kzalloc() instead of devm_kzalloc() >=20 > Signed-off-by: Tian Tao > --- > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/= gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c > index a6fd0c2..2f20704 100644 > --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c > +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c > @@ -23,6 +23,7 @@ > #include > #include > #include > +#include Please keep the DRM include statements sorted alphabetically. With this fixed Reviewed-by: Thomas Zimmermann > =20 > #include "hibmc_drm_drv.h" > #include "hibmc_drm_regs.h" > @@ -267,7 +268,7 @@ static int hibmc_load(struct drm_device *dev) > struct hibmc_drm_private *priv; > int ret; > =20 > - priv =3D devm_kzalloc(dev->dev, sizeof(*priv), GFP_KERNEL); > + priv =3D drmm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); > if (!priv) { > DRM_ERROR("no memory to allocate for hibmc_drm_private\n"); > return -ENOMEM; >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --29yr6CmlInDzUlDanFunYns2V6k80gprO-- --HkQdo8CuyD11ZMY15qc1sXizDvmjfLw22 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl79gd0UHHR6aW1tZXJt YW5uQHN1c2UuZGUACgkQaA3BHVMLeiNm1wf/d7B9/p6rLC/KHbnag1cY9+sy59pp 5ahpPxXK/NQX7TIyaaDc6b3o1lwP8ytXJ28vI9ptltsH3cWHzKflyYoSpW/rvXyG 3OPW0kH6CP3WbICVPS0PPpuThZfn2YyX3VfdrO3fug3JRaX6AaTH2wqQTXC7X2Xu /hOoQtP/+nzD9ihqiepuS8qu60fKF5MoEwV+jcjgJ6GclrYuPcDSI+B5lfDgErlL Z8x0HD4C4BMgW44qzDAKZihAjFJ99f4WLEK0b2xSgSRBTP5+ucLuxOFfUzrgTXxV Hz18e9xVpYg6BOpT42pnVa8Z023OesL3Db6h6Ar0KmTFxz+lIlcdr+LIog== =7BsW -----END PGP SIGNATURE----- --HkQdo8CuyD11ZMY15qc1sXizDvmjfLw22--