Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp690603ybh; Tue, 10 Mar 2020 06:32:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvxNmjBRG35ubxyfQUp7iE/DInyIqDthTPdojGSfTEPvi3+HG6OS5fH+SuaGsX/zliUB1hX X-Received: by 2002:a05:6830:1447:: with SMTP id w7mr3610023otp.267.1583847157797; Tue, 10 Mar 2020 06:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583847157; cv=none; d=google.com; s=arc-20160816; b=Ve+sT0pG+4y2xrkRQaSTuh6EEw/gj3r0plBAG6pIwDrdJJZIlGcEvj7hWl1kWFSLj7 EIscCxXH4+dvIMCauJFFmOsVuuMTTxGk4vM5LDi0tuSoTJYKccovgyCJdMy3kEAnC5HL NIffryFsLQQo3g3DCXV6aFP/PhjKOdBloBo9kp1/e4kmQdRyZjLS/qZI0y4olGheC0wj 0kDRlR1gNyq4+0xm1rXZRBN5fGnb8D659jJF+GjFi0ZiY4r+2h9AByqHJEgpclxiTxCC RIfCIDY1dXz94nrZMcnaNTbfQSyA4kVDGH+OVFQPgWBgAFVYLAsAZuXYDkdLBaUU9aPr b5+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MFRDmL4Zh4eJz0dC2VFAElPsXkXME7WPBS85RGbecwI=; b=zsixgx/TDQQeZdDArOSzgjGGSBwOiBvQvlUkouBNnCtcHaLfDv6JBud7u59S3aMgCU XorMi8ZP+php18lcjaBSGORnB1AXWL+FxHJKdV6xWyYS+QCW3dsnEmfNtq5dcWVonjCz XfSHoFKpAxR6G4dy9N8kDw/tdnOyFZE9yJB7KOaUCOLFoBmGzX6+tOKuoZVko/X0lOXo eawjQaRncSCtQjaOpPLKqqiOQpevgZ6plKxBFzokP2Abg+zSdo4umGPjZqiA8ghe1mE5 HwfXZnjrZ9p+eXrW2xE71RN32/IMN64saVJEyc9KS+ZwLlaJ44fG3VxlGIHHl2bgupbp QEGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="c/oQCe8F"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x22si5908496oic.119.2020.03.10.06.32.25; Tue, 10 Mar 2020 06:32:37 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b="c/oQCe8F"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729308AbgCJNbq (ORCPT + 99 others); Tue, 10 Mar 2020 09:31:46 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55883 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729293AbgCJNbo (ORCPT ); Tue, 10 Mar 2020 09:31:44 -0400 Received: by mail-wm1-f65.google.com with SMTP id 6so1410234wmi.5 for ; Tue, 10 Mar 2020 06:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MFRDmL4Zh4eJz0dC2VFAElPsXkXME7WPBS85RGbecwI=; b=c/oQCe8Fwz9nXwyCf8btmq+zgbJr99OfSghDbrjSIy1YA5iYiHlMrzRXpgKT5wB1Da Fh4ojIBfzPvrB45tV1hrtezRqawIqIMOo4KUd90xbjYGKlAWkLxNG31i48yb4HN26ZlQ uqRKUr/wC3o/gZA/Q03sK1qjmx8LbSMEPevwbDDYU/JN++tsOlfWs8MmAG3INlxhYFCE v13MEvL8Ez4I0QBv0zOLdUyvg+il0Yy7bxgzXLOv16u6EbHAxVDYoK2DF6++KGPGvsuN l5oFRLRTY6oSRH24OEYCypr2WvwU/27akBye883DOVFeRNQFBsgWZ5GtPOUDqG5QWBl3 DeoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MFRDmL4Zh4eJz0dC2VFAElPsXkXME7WPBS85RGbecwI=; b=MsSnqFGolp5qTPJeThrbhlns5XGzJpEQOP5XhmwokJR185G54rRsQqOAtd/RS0SOPJ VEos3vZSSan8njWhomUTsG/OpbTCxyukqVZuTlkunsdHKHbbM98QFrqyDVmzgGJtv2bP AGc/fIf7i4B6uGxYkRKLNnrvoA4eKFawMzOj9jA5/cNH2j5xrtc4Kl2UNtOas0NldxG8 5Jd44NjIG7zW+uOcqfx6aWVrK6mN7jk2mJKQcYE955Wn76fuRq1Z90RD+FGJ1ylRy4VD B03ql8Ylb0SkkLTF7sRd940qAvERLaYDspnEn6Yr6COja+b9ASdVR37aMstfjGeIpZSD xExA== X-Gm-Message-State: ANhLgQ2H2rY9bgs4S8rsHhKWeSMw/z+MaRTT0scIbtyiUJ0el7y9NpLe fcRbSPFVro65Z1xpldJVZRU= X-Received: by 2002:a7b:cb17:: with SMTP id u23mr2377854wmj.12.1583847102585; Tue, 10 Mar 2020 06:31:42 -0700 (PDT) Received: from localhost.localdomain ([197.248.222.210]) by smtp.googlemail.com with ESMTPSA id o7sm14047141wrx.60.2020.03.10.06.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 06:31:41 -0700 (PDT) From: Wambui Karuga To: airlied@linux.ie, daniel@ffwll.ch, Liviu Dudau , Brian Starkey Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH v2 06/17] drm/arm: make hdlcd_debugfs_init() return 0 Date: Tue, 10 Mar 2020 16:31:10 +0300 Message-Id: <20200310133121.27913-7-wambui.karugax@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200310133121.27913-1-wambui.karugax@gmail.com> References: <20200310133121.27913-1-wambui.karugax@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 the return value of hdlcd_debugfs_init() and have the latter function return 0 directly. v2: make hdlcd_debugfs_init() return 0 instead of void to ensure that each patch compiles individually. References: https://lists.freedesktop.org/archives/dri-devel/2020-February/257183.html 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.1