Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6155198ybv; Tue, 18 Feb 2020 11:01:08 -0800 (PST) X-Google-Smtp-Source: APXvYqyMK5hVEABdbTVHsn3Ed+Y7y/UoJ00+wyW+D5/KdhLBzIHyII9ZBWKhwf/AxB+5OAZwL+mh X-Received: by 2002:a54:4f14:: with SMTP id e20mr2127742oiy.84.1582052468712; Tue, 18 Feb 2020 11:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582052468; cv=none; d=google.com; s=arc-20160816; b=r+2fjcWQhBX+8GmW29C0INTYHntQCF5KFmLmCBnKVwUdY4BXKCljxwseEwC5qFVtkU xdUJ/2XFfflumck1z38LiI7Uh6VoR7VTsR58AxeiFY8UFbzkQEKoNVy7BDREEIRHfKJ4 05gPqZqCYmZbT8q700u/+ar4xwqp5aMcpffvbUDVgW5IbOLYmGfiqEfyeUevqNl60ywW 3hh9gaGCdBevOhA92/K2nE6fVL5fyBCi50CmgErNE1EznUZHdR7fkMTxoPhgvIwye7m+ RgHUNUEp+8SQrMPmr6dmlJZt+45R1GxM36d5OG1XfpFsjiarLL9Q58QvMphbK3XuslnC OIJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vVon9MCR2eKlk3dtcH82oPxf8ZW6p7b6JHgOz9jQlJ8=; b=lkQLUcKQy21XE70EFOXEHH5x5kv/in5oa9vEpCMLIuQyZECqIUd3uSP9/mSruWxO7F 78M++JPB507CRR4JOqXG0QTTrXx1VobXbahM/Usf0Q1pK1Cj+6QM69Byb1ZK1OolkYBS COlA2fV7Fqc/EGvKuj/02/3ckhG/aXxBaLAgOvlGiE6TIOvGsEs6WJV4o9dN5/wQGKoZ 6CmaAOMYSjn3ACkZi1GqzqSF01vun2UmRiA23OlN4OU/nDmGdtumMGPS6GP1B9m+YeA5 wx/2feYNsi8olPSYxShJsCjfAWb6VvquPBZRxyQSJx06r8rkGYPRyEczQhlNXnFrgfLW CHcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=EZwGBR7w; 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 b141si8390843oii.79.2020.02.18.11.00.54; Tue, 18 Feb 2020 11:01:08 -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; dkim=pass header.i=@ffwll.ch header.s=google header.b=EZwGBR7w; 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 S1726380AbgBRTAn (ORCPT + 99 others); Tue, 18 Feb 2020 14:00:43 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:45056 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726291AbgBRTAn (ORCPT ); Tue, 18 Feb 2020 14:00:43 -0500 Received: by mail-oi1-f195.google.com with SMTP id v19so21180606oic.12 for ; Tue, 18 Feb 2020 11:00:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vVon9MCR2eKlk3dtcH82oPxf8ZW6p7b6JHgOz9jQlJ8=; b=EZwGBR7wltaso7KhEh5dfSJbjAp4uSZHWmBk/Y+mD4q9cTqryM6/WOKaX6tY5jqXyZ uLqXtUPtOlgsxM5z7Au9JuQbFew4H2vmEZFtsqH6qZzC2WL00Snld3cL6E+pGUhqs9Jc 11g1hFBfNlSpwjlDkVO1lpcQxQhXZGPmeqcJI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vVon9MCR2eKlk3dtcH82oPxf8ZW6p7b6JHgOz9jQlJ8=; b=QwMyvBm2pXj3zsTUS2RB6hzO842tGU17/n3Rse+4GRnYblPIxBqG/B5a0cso9OvUhC QyEC4cP7JLcB3krq9DmWfUMFG+WPtIuHeRUtwcIBoodqe+Y226CXwY90fK6FIoPG8XXn TVf0Hy2nyqrgJMZU/LzhicCMt3E88t5/YGFojxETrj9CSW/P9asOiziX+3q43i0H/pOh VMuxdVxhWVXGkJFl5RSAJOFThU8KnBAacBZKKCeAEVGspsQF8Vrgf7mbBZMJZJxv4fok dECBpHW1buZFtWcXRoE6cP8USb57ZU9vfyKSbpfVub/ocP8volJyo1sliYZ9kqfCR8aR gcHw== X-Gm-Message-State: APjAAAWVULOopgMagw1PjgL4PQddqwXktHL57G1/oXcTTLEitZdNeY6E RHdb38islUHT2xKcPfNL77FiO97PlZuekntT02Mvcg== X-Received: by 2002:a05:6808:10b:: with SMTP id b11mr2254105oie.110.1582052441303; Tue, 18 Feb 2020 11:00:41 -0800 (PST) MIME-Version: 1.0 References: <20200218172821.18378-1-wambui.karugax@gmail.com> In-Reply-To: <20200218172821.18378-1-wambui.karugax@gmail.com> From: Daniel Vetter Date: Tue, 18 Feb 2020 20:00:30 +0100 Message-ID: Subject: Re: [PATCH] drm/arc: make arcpgu_debugfs_init return 0 To: Wambui Karuga Cc: Alexey Brodkin , Dave Airlie , Greg KH , dri-devel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 18, 2020 at 6:28 PM Wambui Karuga wrote: > > As drm_debugfs_create_files should return void, remove its use as the > return value of arcpgu_debugfs_init and have the latter function > return 0 directly. > > Signed-off-by: Wambui Karuga > --- > drivers/gpu/drm/arc/arcpgu_drv.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/arc/arcpgu_drv.c b/drivers/gpu/drm/arc/arcpgu_drv.c > index d6a6692db0ac..660b25f9588e 100644 > --- a/drivers/gpu/drm/arc/arcpgu_drv.c > +++ b/drivers/gpu/drm/arc/arcpgu_drv.c > @@ -139,8 +139,10 @@ static struct drm_info_list arcpgu_debugfs_list[] = { > > static int arcpgu_debugfs_init(struct drm_minor *minor) > { > - return drm_debugfs_create_files(arcpgu_debugfs_list, > - ARRAY_SIZE(arcpgu_debugfs_list), minor->debugfs_root, minor); > + drm_debugfs_create_files(arcpgu_debugfs_list, > + ARRAY_SIZE(arcpgu_debugfs_list), > + minor->debugfs_root, minor); > + return 0; For cases like these I think we should go a step further and also remove the return value from the driver wrapper. And that all the way up until there's something that actually needs to return a value for some other reason than debugfs. -Daniel > } > #endif > > -- > 2.25.0 > -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch