Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2474558ybv; Mon, 24 Feb 2020 05:59:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzbUoXZb4hD26bhTQw/oHpFBQrqzi9LeG8fvvBT58KsWYI1HCSP6kkDLQ0g+5GbK9IwWW+A X-Received: by 2002:a9d:6b84:: with SMTP id b4mr40656438otq.190.1582552788302; Mon, 24 Feb 2020 05:59:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582552788; cv=none; d=google.com; s=arc-20160816; b=E9vsUAdA71wB9DQQJ+zdFI/iBbR7pUEMIFLdOBm6JXDmS9uu6cjCFpkw2Z+vsmBzcU tBa+FCxBvLVD+4WwtVgKIvEBEe5c6OAXqqwWqUg5eaXhj0ZgTh8TIyFUeDLGsIl5jPiT 0HjCVsAuR2c7RKGFAw09YAad2epzDImvuZLlQPtIX3gN8fRmndAeftB3tb2/nl9N+Gkz IWiIlvJEllswRzsZMC1ERN2mA6H1pD4xri1N/B4+hqAV1QZlR+86oAqev0Od5IFP8jGv VCNUyAwgsb30V0qJPwIh1SmLOiSWusvDqsH/ulKTH8b678SZZ12RqOGmdDldassrpdeW 9MEA== 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:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NFg8NLIpeIadwlP0idE0ey6gCmQRzKplOdHHDrmczPE=; b=EGdJ4yby1FAfjkxF99LkafYozTI5w1xNpAP65aLTPjMOaRnEy39WxuS98zafymjgiy f2sKKfymY5iYAvhHzXrMKJKDOs53NWHM0XytLkC1hIKQ4g/VQdqFrWblchqbFT+63Oq4 d0P0jIIF640lo8ZUZ01P3soyY7MBF9MxCcTL6ey9JqMXwjP7E3QcUDbna60ckHXcrpdf M3thE6KaxSDsno9y5Dj4Sf5Sas2Ionz0uVscX9EUrcIya9Oo7ru6hgwCojugiwL293Vz 8hoaq+WdelMog02z3W+X4HXX3U2tu/qE1ysLJnamC1DDF2/zgtKei0QtVBzLdBMN8/oX 8HOA== 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 p25si5808641oto.191.2020.02.24.05.59.34; Mon, 24 Feb 2020 05:59:48 -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 S1727554AbgBXN7N (ORCPT + 99 others); Mon, 24 Feb 2020 08:59:13 -0500 Received: from foss.arm.com ([217.140.110.172]:37450 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727348AbgBXN7N (ORCPT ); Mon, 24 Feb 2020 08:59:13 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0B4E630E; Mon, 24 Feb 2020 05:59:13 -0800 (PST) Received: from e110455-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E0DB23F534; Mon, 24 Feb 2020 05:59:12 -0800 (PST) Received: by e110455-lin.cambridge.arm.com (Postfix, from userid 1000) id A1951682F2C; Mon, 24 Feb 2020 13:59:11 +0000 (GMT) Date: Mon, 24 Feb 2020 13:59:11 +0000 From: Liviu Dudau To: Wambui Karuga Cc: brian.starkey@arm.com, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: Re: [PATCH] drm/arm: make hdlcd_debugfs_init return 0 Message-ID: <20200224135911.GJ364558@e110455-lin.cambridge.arm.com> References: <20200218172821.18378-1-wambui.karugax@gmail.com> <20200218172821.18378-2-wambui.karugax@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200218172821.18378-2-wambui.karugax@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Feb 18, 2020 at 08:28:13PM +0300, Wambui Karuga wrote: > As drm_debugfs_create_files should return void, remove its use as a > return value in hdlcd_debugfs_init and have the latter function return 0 > directly. > > Signed-off-by: Wambui Karuga > --- > drivers/gpu/drm/arm/hdlcd_drv.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/arm/hdlcd_drv.c b/drivers/gpu/drm/arm/hdlcd_drv.c > index 2e053815b54a..bd0ad6f46a97 100644 > --- a/drivers/gpu/drm/arm/hdlcd_drv.c > +++ b/drivers/gpu/drm/arm/hdlcd_drv.c > @@ -226,8 +226,10 @@ static struct drm_info_list hdlcd_debugfs_list[] = { > > static int hdlcd_debugfs_init(struct drm_minor *minor) > { > - return drm_debugfs_create_files(hdlcd_debugfs_list, > - ARRAY_SIZE(hdlcd_debugfs_list), minor->debugfs_root, minor); > + drm_debugfs_create_files(hdlcd_debugfs_list, > + ARRAY_SIZE(hdlcd_debugfs_list), > + minor->debugfs_root, minor); > + return 0; > } > #endif > > -- > 2.25.0 > Thanks for your patch! I had to go into the ML and find out the series where this patch belongs to and seen that you have already received some feedback, but I think a summary is worth: - you should look if it is possible to make .debugfs_init hook return void, it would simplify the cleanup in the drivers by not having to return 0. - you should put in each driver patch a note that drm_debugfs_create_files() always returns 0 since 987d65d01356 (drm: debugfs: make drm_debugfs_create_files() never fail) so that people don't have to hunt in the git history for clues. - Make all the changes into a series With that, you can have my Acked-by: Liviu Dudau Best regards, Liviu -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯