Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1288363ybt; Thu, 2 Jul 2020 01:28:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWpO8Rr2vAivEmb3NLsExMKxG6s9jcHeBn7GPoTj7OEzAjg5X92MdBSS4Cfb2Bqksi0jaD X-Received: by 2002:a50:b2c2:: with SMTP id p60mr32509176edd.374.1593678503006; Thu, 02 Jul 2020 01:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593678503; cv=none; d=google.com; s=arc-20160816; b=zwHexp6O9DdS7kQmo7mTitjr5wRZCD5P1ISBDR9kREfymCf5Yoo29fji/A5RAljQxw 3vdeAZ4ZPn7K2QcaC4tcKVdkcBDGK1hhYbCt/YiLvRu0O/ubMlXtpKAoUF7P0aMNuivu uSNilbSBVI4ucXHvM2/JsQvzjB9A8CpZKQA6IMCU1OXBUrxrHYUFlJ4oyAgA0AM4ZtZN OtE8hT5PMzicQ31zlt7+LvCE+URO4kNc3gS9TnE6vfU2KRfdInKQJJQNzVLvl2vC6yFf j/IAalclEeX8223uJvHfs+8QwvrnQ0mNq47FMTS6kNVhFJHg7WAEjkt97sdQCA5kOhrj zldA== 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=1dhBlj6+BlZ4LktGuFfABjB7jqBgwnWKKYOsFaf2+MI=; b=V4s+f25Zl9nsfrLPTsRH9VGQFUxucVsl7dMSNJzdXWxnyAqYy0bpR5asDEORrCJPGB FkFY73oVsaO73t6NLwB1edc2E19OcVsR23SUdE+lHDLhmYOHr0ZWX317MtAbPI1X6zrg CMSlZZ/aIaDZlAmvSaKjsCbq5/QfvYcQrUiiUi3iOjrY8T6hjS5Lx5h/mI2SdA4tor2w aPb0yAbfKKz+jXBvv9gC9cBOp0IOIxCcZQYN4xVPxZvc3fZf2TjfnTCAjH3IoFrJAgxD ttbr8YGds3aCuH93viIF7+uJjRdOLO+ozvLBQ5g7T1olH2fMwEGarvCCT7/ACfxWzdx+ BuQQ== 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 lj13si5317836ejb.357.2020.07.02.01.28.00; Thu, 02 Jul 2020 01:28:22 -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 S1728034AbgGBI14 (ORCPT + 99 others); Thu, 2 Jul 2020 04:27:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:48690 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726475AbgGBI1z (ORCPT ); Thu, 2 Jul 2020 04:27:55 -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 D6975ADC5; Thu, 2 Jul 2020 08:27:53 +0000 (UTC) Subject: Re: [PATCH v3] 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: linuxarm@huawei.com References: <1593676183-28525-1-git-send-email-tiantao6@hisilicon.com> From: Thomas Zimmermann Message-ID: <55c1bdad-774c-816e-e4a9-2618c753af31@suse.de> Date: Thu, 2 Jul 2020 10:27:46 +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: <1593676183-28525-1-git-send-email-tiantao6@hisilicon.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Lgq7URjLO88AKaZN3vvii7yT64qitiixJ" 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) --Lgq7URjLO88AKaZN3vvii7yT64qitiixJ Content-Type: multipart/mixed; boundary="UO1V1ZdZPJnmIhbjKwFrgdm7sAetUj1rd"; 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: linuxarm@huawei.com Message-ID: <55c1bdad-774c-816e-e4a9-2618c753af31@suse.de> Subject: Re: [PATCH v3] drm/hisilicon: Use drmm_kzalloc() instead of devm_kzalloc() References: <1593676183-28525-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1593676183-28525-1-git-send-email-tiantao6@hisilicon.com> --UO1V1ZdZPJnmIhbjKwFrgdm7sAetUj1rd Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Thanks! Applied to drm-misc-next Best regards Thomas Am 02.07.20 um 09:49 schrieb Tian Tao: > using the new API drmm_kzalloc() instead of devm_kzalloc() >=20 > v3: > still fixed include statements sorted alphabetically. >=20 > v2: > keep the DRM include statements sorted alphabetically. >=20 > Signed-off-by: Tian Tao > Reviewed-by: Thomas Zimmermann > --- > 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..249c298 100644 > --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c > +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c > @@ -20,6 +20,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -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 --UO1V1ZdZPJnmIhbjKwFrgdm7sAetUj1rd-- --Lgq7URjLO88AKaZN3vvii7yT64qitiixJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl79moMUHHR6aW1tZXJt YW5uQHN1c2UuZGUACgkQaA3BHVMLeiNTCwf/TxN8IsqjACFZOPAKYEzO8uPYKkC2 QfBJ+4MomJDKjP8NFxVCuCH0GDDAUeiG5+alvSlDNPcqvvHScVW2QA95T7gGwHYU 1JSUk6iBby8i6g7OItxGCsiplQV2eTGNgrtLCotZoSeZxUFFeRAmvCuv75E2KJxw u06O9UN1Awfy2JGuGtryocLBXhP77tH7g0jOLCYSG5DlWnyWpVTAYlbpnECh8veX XlkU07Ro6FU+9CGknR7d0l/J2xjPJBoT69UvQklMNUCYi9tZ4tI2ilLAckEkn46G 5b5DPbPQXuv8FcKz8BpXUm68nKAxX3gH0JgvE1EQ/mYQnuzgOxiyGOHABw== =QT2O -----END PGP SIGNATURE----- --Lgq7URjLO88AKaZN3vvii7yT64qitiixJ--