Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1213157ybf; Thu, 27 Feb 2020 06:55:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyg8JGqHw4EquhZf0zaB3OT5oUPFlk2IE1EgUcH1qss1jG7EmwZ2rSYMQLcfRkgh+Pl2RVF X-Received: by 2002:aca:4789:: with SMTP id u131mr3482964oia.43.1582815316886; Thu, 27 Feb 2020 06:55:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582815316; cv=none; d=google.com; s=arc-20160816; b=xjvk9321dCS7zuwLWezcU4DnkXR4i6OGB4/tsJBUhd710MOwFUBspY+0CCmdGFmzlF rEBKM8vmuo6fuK3378v4+sO+HCXDX2QjB2d+qHasp7D+LizZs6USnZwszD3hQij90qtg Vef2IfrF7UPhlBCQ/Rr9V+QEGT7lGbbjeNBcH7g1zjYHXijYnoaRhaI23SOBTK4OPIDk mkGB4fMlqFmVG0LZKBuBN3kVYPBPEEa+Kyj2uny9vvmUHo48K/SL0wkN7G1c4s+KzVsK 7dnmuDlDSuftXY5CszM/1Q1Kg8cB5VNCjwCsWEWvHZ9Jo4wAvgSPD3SVABev8mZzdddN mJTw== 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=+YQ4VMc5fEoDvM9lFRPaFJ39LWK9KN0LeQNFoLkSXL8=; b=eR96I26bArK39GoLXUnbtau04mG3Oedo3CZkf/hJpyjVDw6lBMCj/F959gzWOYduKe HdkNBk1NOS2rESJnyobAgSh5mUpaQ7q2/uGdSFo0tYZRz15tzRCStQGrSNZ+dvVW+bEG 8qf/pTfm2215DXIF04UmNCQFVT7E7bwSsb2Na77DcuZicM5AIAup8baqA6G+G9jO1xKG JAGougmx74t29VUcNP8YNya/bIroeUnLaI0NKeNlNGS3xsesGoLYFVjhCKWFwIVxp4Kj C4MoTuAi+LmdOsSP3BOSHxkYXuN67PWHQMuW2s+GJdCth1bupuefipS2YNE8Usniv01F ArLw== 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 w2si1717818otq.31.2020.02.27.06.55.03; Thu, 27 Feb 2020 06:55:16 -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 S1730356AbgB0OxX (ORCPT + 99 others); Thu, 27 Feb 2020 09:53:23 -0500 Received: from foss.arm.com ([217.140.110.172]:53140 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729417AbgB0OxW (ORCPT ); Thu, 27 Feb 2020 09:53:22 -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 EF34230E; Thu, 27 Feb 2020 06:53:21 -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 CF87D3F7B4; Thu, 27 Feb 2020 06:53:21 -0800 (PST) Received: by e110455-lin.cambridge.arm.com (Postfix, from userid 1000) id 8E879682F2C; Thu, 27 Feb 2020 14:53:20 +0000 (GMT) Date: Thu, 27 Feb 2020 14:53:20 +0000 From: Liviu Dudau To: Wambui Karuga Cc: daniel@ffwll.ch, airlied@linux.ie, Brian Starkey , linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 07/21] drm/arm: make hdlcd_debugfs_init() return void Message-ID: <20200227145320.GY364558@e110455-lin.cambridge.arm.com> References: <20200227120232.19413-1-wambui.karugax@gmail.com> <20200227120232.19413-8-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: <20200227120232.19413-8-wambui.karugax@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 27, 2020 at 03:02:18PM +0300, Wambui Karuga wrote: > Since commit 987d65d01356 (drm: debugfs: make > drm_debugfs_create_files() never fail), drm_debugfs_create_files() > never fails, and should return void. Therefore, remove its use as a > return value in hdlcd_debugfs_init and have the latter function > return void. > > Signed-off-by: Wambui Karuga Acked-by: Liviu Dudau Not sure how you're going to address Greg KH's comment (maybe one single patch that converts debugfs_init to void *and* changes the signature to all hooks?) but I'm going to assume that you will get the whole series merged in one go so I don't have to push this individual patch into HDLCD tree. Best regards, Liviu > --- > drivers/gpu/drm/arm/hdlcd_drv.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/arm/hdlcd_drv.c b/drivers/gpu/drm/arm/hdlcd_drv.c > index 2e053815b54a..194419f47c5e 100644 > --- a/drivers/gpu/drm/arm/hdlcd_drv.c > +++ b/drivers/gpu/drm/arm/hdlcd_drv.c > @@ -224,10 +224,11 @@ static struct drm_info_list hdlcd_debugfs_list[] = { > { "clocks", hdlcd_show_pxlclock, 0 }, > }; > > -static int hdlcd_debugfs_init(struct drm_minor *minor) > +static void 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); > } > #endif > > -- > 2.25.0 > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯