Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp691481ybh; Tue, 10 Mar 2020 06:33:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsyaagxlKufh4GMInWAUvVr1qPn9sKuSJ27Vl5kjeFXkC97muuOWdAy4pkBhBDea3WLLYzu X-Received: by 2002:a9d:138:: with SMTP id 53mr17186064otu.67.1583847207146; Tue, 10 Mar 2020 06:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583847207; cv=none; d=google.com; s=arc-20160816; b=b/3ie9PTapD8xBZ32vEj+qUCk+AaQ934sqgdKAjeIJdzF9qDEy351SYomPCDEunoy7 y9pq492iNTQxDsEl4/UMrxzQB1iqVo84GO50JYD1kyUoH1XA3nHTpyibYCAYFL2+mIhO JTBL7JySNzLQyV8mft1vHpw2N2J1TYCkwH1J5SLj+k76K5yee1kbTuJamFL5I4QX2XyD 7ppTIe8ac/X0bVJteGB8BrUvjwvj8TMFAoX2GFhqSjXbaVskP+0tIVGbQMcY84mb5TWU BKfasQiW+gm/cZMssEO9N7SMZXc8rdE98qJ1rbsMvh4WSogYwDSsmK1je5NgKd5gU+9g gLtQ== 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=+a3U4jSbxticLykwAuG4RkKwJpCBQwiZh0yEiI3Sz1U=; b=Vq9RYF/brNStKqBvPCSEIJ91nhyUbDXki8Hd7kWhg5LiAiHxmvDXUiAZDsYne4epoN 5jQ0Ze/wdPzhBZfLhWtDXBQ/R+vN8YsbYZNsQgo3+FxWLuqluIcb5emcNFhDUtY/fktY pmlAImjxX0XlYcvjVL+sJkTlIMebX5aqoK8lNrKF4bOToCdMNJTnXS19/gd0GQgAc6N8 2TxjftcL4wiW0bqs+9Pr6Thholczn9rZDZs9aMBOaESxtoEb8M2OIEJVGRHwT/sqHm/g 8DJTGERVEm3FB/+KYMviQJK1ToRZH/zv8QLoZA/4XPdJCBPK7PprZcZimwYJlLB/Kin8 GfgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hne+jWLI; 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 b21si389839otp.79.2020.03.10.06.33.14; Tue, 10 Mar 2020 06:33:27 -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=Hne+jWLI; 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 S1728581AbgCJNcj (ORCPT + 99 others); Tue, 10 Mar 2020 09:32:39 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53842 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729287AbgCJNbl (ORCPT ); Tue, 10 Mar 2020 09:31:41 -0400 Received: by mail-wm1-f67.google.com with SMTP id 25so1415406wmk.3 for ; Tue, 10 Mar 2020 06:31:40 -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=+a3U4jSbxticLykwAuG4RkKwJpCBQwiZh0yEiI3Sz1U=; b=Hne+jWLI3BEBXhjTKXTKSXzecGEn9zVZbio6NzdOolzhUuU35a/RSfPB/0hld5jEHd /T79833bgefuOdpb++hrCbv9Slc6giSs2BUjwIYeExhy61lYFZ8aAVWLRBUQZBVsJCvn jci4iWqnoA9S1xifYoE2AB45AD6pBtBWzu22LUKnbxts0aRBfKVH9P45hPMwFymWtBG2 VrtTAG4/N/f/WDTyqzwHAM2vr8G91QxbPOlq2q81u2MpKagSYBVxLvt88rpZEtQoHnUU 5S9LjWWNtEr0nT6WxADFgDg1F4oJn/UoXC6isCff60o9sBUi/E9f0JBsChihYDu3NqvM jJMA== 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=+a3U4jSbxticLykwAuG4RkKwJpCBQwiZh0yEiI3Sz1U=; b=kWzPLCG4U0hBAZ2YFWCwCOh6u7cK5OeHhpPwWNwnxvLLq1T7rcDXX+TrTm7sd77Nwf viX/mK6XjxLRLV9wCOIgSYnvWt9ZnJKE3mPGZAKmJuzX8CerF2WZ4RIDwSQd6jUu7wuH 2eNxj18wWNcYC5enLqi79q/UideHdzc5p3x6DNalS9VVm/xl1jR4gyKniYM5HCJy4aDP VOH1uZEMnhshDqMmKLeGAmUW7SMx7hYC5dJgK6x7q6xODpbOfG/RdnqdswOa4gJGjoKH 8PQW3ivLUMgWA8TMeD3LotppTuErbLB+pLPdAimIrTTuHEYr8hAsS7mBpK8q6+XIkmQu jUDQ== X-Gm-Message-State: ANhLgQ12tPJJZY4ZruyHdgmJmc/Bwb0pGkhOPtvwA/IzvLD+UojvW6nG uv2hcJ6N/pfgXX6T1bvCiks= X-Received: by 2002:a1c:6108:: with SMTP id v8mr2214208wmb.58.1583847099964; Tue, 10 Mar 2020 06:31:39 -0700 (PDT) Received: from localhost.localdomain ([197.248.222.210]) by smtp.googlemail.com with ESMTPSA id o7sm14047141wrx.60.2020.03.10.06.31.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 06:31:39 -0700 (PDT) From: Wambui Karuga To: airlied@linux.ie, daniel@ffwll.ch, Alexey Brodkin Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH v2 05/17] drm/arc: make arcgpu_debugfs_init() return 0. Date: Tue, 10 Mar 2020 16:31:09 +0300 Message-Id: <20200310133121.27913-6-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 arcpgu_debugfs_init() and have the latter function return 0 directly. v2: convert the function to return 0 instead of void to avoid breaking the build and ensure that this individual patch compiles properly. References: https://lists.freedesktop.org/archives/dri-devel/2020-February/257183.html 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; } #endif -- 2.25.1