Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp235462ybv; Tue, 18 Feb 2020 22:03:10 -0800 (PST) X-Google-Smtp-Source: APXvYqzM2ehqNRuFqOAyOGlSTUjJXWmtWNevJvaE39yjiSQnqw/dGIBiXzOSMozOk8q8MqZDv+Z6 X-Received: by 2002:a9d:6f11:: with SMTP id n17mr18236929otq.126.1582092190501; Tue, 18 Feb 2020 22:03:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582092190; cv=none; d=google.com; s=arc-20160816; b=l/hxLiV6e7Vbk1Or4QJlLCCQ95rr0GONSQ1AE+NdDUiZ6g9y2JEyW2evqotpMI98Hx h12WXkEXZijuCb7cXSTYWVTxYxHCy2PfKCpHzyGkPGaScNLSBnmbIBc9G3ZUiqmCH2D7 KxWllA46IqewqCyeC2Vr7bgRzjYr3ChNQcac+YKamFgZJ8iM6qWUMgyRbQ46buHQ6l71 BayM/g2gUK5PcH2NUzg44gRHJotqlp4OLv4VH/t94rjNsrD8hl7Lm0Nfum4mhdKCUHCi FF5LMB1AS2vs+7jX95oB0jYG1SviyheSxj/FvSVPkjwlT3fh9NDo5aJcn4RKk727FJ5N qaCA== 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:autocrypt:from:references:cc:to:subject; bh=rgokWqifXMVVZuhgkmMtZmsYCcj5YJDxMP9Cvp+FG2U=; b=NJNXOIb3IOqX4pOC/KM9roDcEYoPruIcf/3R4X/1mSY+hrGADn5ctjpMD55njLuc5G /AqNjDKr2AVlosMnhCR3Oy+LPyPmnQ8+NHTxAq52Szr7/wXyngl5ZJT8VlYIJi+GDchR h1TdbECJOzxXN/RGeNARvMxLue8BCWO9qFfGdJRvcmFZOeeLoimd+uRo53Da5ZwXQQmZ xC3BQNgtQ+uV+/PqO/nGSVWaVCeiYzPKmjXLPguLgX6zwQssg7GxI/Mq9vO5wcGAMiOZ exc4HrkzXEATacro+I8i9x6jPzRrB5/Czr2q2yevGhZ+Ia6vyCDdcUvMaaoy+hSI6VUi s1yg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y19si630381oto.102.2020.02.18.22.02.53; Tue, 18 Feb 2020 22:03:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726453AbgBSGAI (ORCPT + 99 others); Wed, 19 Feb 2020 01:00:08 -0500 Received: from mx2.suse.de ([195.135.220.15]:33130 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbgBSGAI (ORCPT ); Wed, 19 Feb 2020 01:00:08 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 541D3AE0F; Wed, 19 Feb 2020 06:00:06 +0000 (UTC) Subject: Re: [PATCH] drm/vram-helper: make drm_vram_mm_debugfs_init return 0 To: Wambui Karuga , maarten.lankhorst@linux.intel.com, mripard@kernel.org, airlied@linux.ie, daniel@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org References: <20200218172821.18378-1-wambui.karugax@gmail.com> <20200218172821.18378-9-wambui.karugax@gmail.com> From: Thomas Zimmermann Autocrypt: addr=tzimmermann@suse.de; keydata= mQENBFs50uABCADEHPidWt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ISymJBHx2Dyoklv5g4BzkgqTqwmaYzsl8UxZKvbaxq0zb ehDda8lvhFXodNFMAgTLJlLuDYOGLK2AwbrS3Sp0AEbkpdJBb44qVlGm5bApZouHeJ/+n+7r 12+lqdsAEQEAAYkBPAQYAQgAJhYhBHIX+6yM6c9jRKFo5WgNwR1TC3ojBQJbOdLgAhsMBQkD wmcAAAoJEGgNwR1TC3ojpfcIAInwP5OlcEKokTnHCiDTz4Ony4GnHRP2fXATQZCKxmu4AJY2 h9ifw9Nf2TjCZ6AMvC3thAN0rFDj55N9l4s1CpaDo4J+0fkrHuyNacnT206CeJV1E7NYntxU n+LSiRrOdywn6erjxRi9EYTVLCHcDhBEjKmFZfg4AM4GZMWX1lg0+eHbd5oL1as28WvvI/uI aMyV8RbyXot1r/8QLlWldU3NrTF5p7TMU2y3ZH2mf5suSKHAMtbE4jKJ8ZHFOo3GhLgjVrBW HE9JXO08xKkgD+w6v83+nomsEuf6C6LYrqY/tsZvyEX6zN8CtirPdPWu/VXNRYAl/lat7lSI 3H26qrE= Message-ID: <30ad58ad-bc1c-bcbb-ef82-0308f5e2594d@suse.de> Date: Wed, 19 Feb 2020 07:00:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200218172821.18378-9-wambui.karugax@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="neiXT7A2TQh7Yba93ieRLenJs3LBBQsRi" 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) --neiXT7A2TQh7Yba93ieRLenJs3LBBQsRi Content-Type: multipart/mixed; boundary="lEUoRsUYxFmFKhlCCP1VdqGmLZM6cyXlM"; protected-headers="v1" From: Thomas Zimmermann To: Wambui Karuga , maarten.lankhorst@linux.intel.com, mripard@kernel.org, airlied@linux.ie, daniel@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Message-ID: <30ad58ad-bc1c-bcbb-ef82-0308f5e2594d@suse.de> Subject: Re: [PATCH] drm/vram-helper: make drm_vram_mm_debugfs_init return 0 References: <20200218172821.18378-1-wambui.karugax@gmail.com> <20200218172821.18378-9-wambui.karugax@gmail.com> In-Reply-To: <20200218172821.18378-9-wambui.karugax@gmail.com> --lEUoRsUYxFmFKhlCCP1VdqGmLZM6cyXlM Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Am 18.02.20 um 18:28 schrieb Wambui Karuga: > As drm_debugfs_create_files() should return 0, remove its use as the > return value of drm_vram_mm_debugfs_init(), and have the function retur= n > 0 directly. >=20 > Signed-off-by: Wambui Karuga Acked-by: Thomas Zimmermann > --- > drivers/gpu/drm/drm_gem_vram_helper.c | 13 +++++-------- > 1 file changed, 5 insertions(+), 8 deletions(-) >=20 > diff --git a/drivers/gpu/drm/drm_gem_vram_helper.c b/drivers/gpu/drm/dr= m_gem_vram_helper.c > index 92a11bb42365..77b36a2286f9 100644 > --- a/drivers/gpu/drm/drm_gem_vram_helper.c > +++ b/drivers/gpu/drm/drm_gem_vram_helper.c > @@ -1043,19 +1043,16 @@ static const struct drm_info_list drm_vram_mm_d= ebugfs_list[] =3D { > * @minor: drm minor device. > * > * Returns: > - * 0 on success, or > - * a negative error code otherwise. > + * 0 > */ > int drm_vram_mm_debugfs_init(struct drm_minor *minor) > { > - int ret =3D 0; > - > #if defined(CONFIG_DEBUG_FS) > - ret =3D drm_debugfs_create_files(drm_vram_mm_debugfs_list, > - ARRAY_SIZE(drm_vram_mm_debugfs_list), > - minor->debugfs_root, minor); > + drm_debugfs_create_files(drm_vram_mm_debugfs_list, > + ARRAY_SIZE(drm_vram_mm_debugfs_list), > + minor->debugfs_root, minor); > #endif > - return ret; > + return 0; > } > EXPORT_SYMBOL(drm_vram_mm_debugfs_init); > =20 >=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 --lEUoRsUYxFmFKhlCCP1VdqGmLZM6cyXlM-- --neiXT7A2TQh7Yba93ieRLenJs3LBBQsRi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl5MzuQACgkQaA3BHVML eiO2mAgAlF6b2VDAr15WInESQxTDVelSgxblRxPgN4GtsPvNuNk54xkNqnLsBgUL wqQBSf+eb6R7CCllltpEBv7cwhvzMQRYakODpDjJ1VFUcMGCJQFwC1yCYQh5hrWy A1Vm2pKaxatR4gZ00SWKW7Qo2KavfjXmmpQ82VrMhJ4ewqXxt9n3lrE0xZmWoMfw rxfB8zIkY7P1shJe6O3Gj24OUQY1moEmA/7I3MP/7EvzjNXCdxJvuSL1TxiZfC4D Ho4DeJmSgQDPWAOixFGA44DKROu2tlw5LZWrHvtwHj3i9xr2WEN1mbBe84KaYm2H h2q3B2ZXuTF68bvjllmMWHqHI00GnQ== =7nlY -----END PGP SIGNATURE----- --neiXT7A2TQh7Yba93ieRLenJs3LBBQsRi--