Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp691732ybh; Tue, 10 Mar 2020 06:33:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsJPSN1saVAHwKLgP5kEUY0T7DywR8AYGlwy3/78RxDcXneVGrtFoL5wrAX8M4i7wWcMbUn X-Received: by 2002:a9d:51cb:: with SMTP id d11mr16270882oth.219.1583847222803; Tue, 10 Mar 2020 06:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583847222; cv=none; d=google.com; s=arc-20160816; b=ctDXrFpCCd2G9vrhU5EyesLNO3qOh+nUCZWj6ZroT84gM7pgpmUjEZbP/d818g9z/C LAppyoajuuGCMraBN++LQIqIqgxObwUIc+kCQUUePuer7Xd4eRPOyrRwo0hYu++yd/km BwhmAS7DU2/yuR1JS0kHF9yK9du8djUhbkOIVLh5++bqE8uUKLHdd+fRkDL0NQqZN5Kz JjnejXf2gcYHx3Og0llKZ3lcNp0dwerGOECqAmK1Jwx38kmqSgFWml/45XMl7aT07Ou7 7c/RD+XxQa2q2Qxrajl7+M4KjBS4wzv3lgw/Lvo7hOHia6s4xc6tR0m6tcugcTEHbaWX d49g== 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=eTSKNjhkTPUhvHieKRKNo9OKCglUUf75Y8SFUIDPF94=; b=vhCtO3bk40b0tkcCCMoAE6KQoWGJ1nQS9McUHQ+HDJboSHPYvhgoPSO79ytujTA9Hv nvdU/fyupMs24AJUhyLhe7/UVZ3bOb6/WprRwo45SZXj3D2VslWTWHuAa9e/+1Y91F7d Fti1rqQCLl0rno9KQaUPwa+K79IF+QNSXksmUsuQd2Jv3t7CWkI/WO0I0ijhLEdj3W8/ Hituamg2kGbsWJ0bcMSW5SQXi0PuS4hMJG8RaFfB/DYLXEvgSug3Urq8lrpWF+Dj1+5F mpBzf+EzOKSOa2wDiijCx84PXqUCIBFbgUh2JiFe74M2mdmHG5TyNnMWBVK3ax0x8lkb dapA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oe3lLYb2; 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 m126si4853705oig.177.2020.03.10.06.33.30; Tue, 10 Mar 2020 06:33:42 -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=oe3lLYb2; 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 S1729211AbgCJNcP (ORCPT + 99 others); Tue, 10 Mar 2020 09:32:15 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38644 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729657AbgCJNcG (ORCPT ); Tue, 10 Mar 2020 09:32:06 -0400 Received: by mail-wr1-f65.google.com with SMTP id t11so15905553wrw.5 for ; Tue, 10 Mar 2020 06:32:06 -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=eTSKNjhkTPUhvHieKRKNo9OKCglUUf75Y8SFUIDPF94=; b=oe3lLYb2VJTK/cYnJvNzU5OpK0mPTfzjuJD+F9YMYyfVJ/t+AmHIugoNuGmcIvoU9Y EeaUpH9h2OXprhwgbtCo9n7yECDhrSNI1W1KhdqizKavVDcvAWqf3omtZ9zzt51I0rPh h6n8jnL8mmLbY2JW9OuXFp79v0Ch1liAMssyOQ2Oyau7CmcMZMNOM+f6XbF7zI2k1nE+ V4b39W4ErWrRKaKpgiwNul6qpNgyxC5b7vpERvT2JwBGXuydMDuNzNy4GxDLoZhR8WJ0 PMrRcjVi8KmQqZyQJkWIiL98QIAAMxqIIycH3EAM2ivmIjfS89SD8dxJyP8gbviy1U++ ktOQ== 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=eTSKNjhkTPUhvHieKRKNo9OKCglUUf75Y8SFUIDPF94=; b=oVDz2KylvBm5r9cZczu8vY/ihmOtPOJ1spV65NbWWHE+hUerhw25Tf/Jaz9bsFm2bl 8zZvvRBMOA1pydGrsPVjzXH4BCOyLrzGUVNWLFlwmnhi+t2kabs3vKt3Q60X9W2EKhPN 9kRe78PZVNm/nvy//Q/IgI+/vg99O+VYrGZHW7BeFSTmi5kDPek6RHBsaF0WMxtq1XMl rlmIos2WJdX+vG3hcGMaZXP3/yM/phVxFuR//rLwCVJ4C9ec6HYjshBxJBPSY39IfZIr QDzJZ59kMDmho80rvAotZHFdtGAiEInqQcOJxwNDAmnw37TxsKMVNEWZr9ozkzLSWfk+ Qjkw== X-Gm-Message-State: ANhLgQ06WBl8kMfclk/K1SDohJSRX7iVamN9nmwh+Ghh2nRcs3KjajqR +FJvnReOZnqq54V1XugRfBs= X-Received: by 2002:adf:8501:: with SMTP id 1mr29345378wrh.56.1583847125462; Tue, 10 Mar 2020 06:32:05 -0700 (PDT) Received: from localhost.localdomain ([197.248.222.210]) by smtp.googlemail.com with ESMTPSA id o7sm14047141wrx.60.2020.03.10.06.32.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 06:32:05 -0700 (PDT) From: Wambui Karuga To: airlied@linux.ie, daniel@ffwll.ch, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH v2 15/17] drm: make various debugfs_init() functions return 0 Date: Tue, 10 Mar 2020 16:31:19 +0300 Message-Id: <20200310133121.27913-16-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 various debugfs_init() functions in drm, and have these functions return 0 directly. v2: convert debugfs_init() functions to return 0 instead of void to avoid build breakage. References: https://lists.freedesktop.org/archives/dri-devel/2020-February/257183.html Signed-off-by: Wambui Karuga --- drivers/gpu/drm/drm_atomic.c | 7 ++++--- drivers/gpu/drm/drm_client.c | 8 +++++--- drivers/gpu/drm/drm_framebuffer.c | 8 +++++--- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c index 9ccfbf213d72..c0056d9cc139 100644 --- a/drivers/gpu/drm/drm_atomic.c +++ b/drivers/gpu/drm/drm_atomic.c @@ -1643,8 +1643,9 @@ static const struct drm_info_list drm_atomic_debugfs_list[] = { int drm_atomic_debugfs_init(struct drm_minor *minor) { - return drm_debugfs_create_files(drm_atomic_debugfs_list, - ARRAY_SIZE(drm_atomic_debugfs_list), - minor->debugfs_root, minor); + drm_debugfs_create_files(drm_atomic_debugfs_list, + ARRAY_SIZE(drm_atomic_debugfs_list), + minor->debugfs_root, minor); + return 0; } #endif diff --git a/drivers/gpu/drm/drm_client.c b/drivers/gpu/drm/drm_client.c index 6b0c6ef8b9b3..82fbdee407b2 100644 --- a/drivers/gpu/drm/drm_client.c +++ b/drivers/gpu/drm/drm_client.c @@ -459,8 +459,10 @@ static const struct drm_info_list drm_client_debugfs_list[] = { int drm_client_debugfs_init(struct drm_minor *minor) { - return drm_debugfs_create_files(drm_client_debugfs_list, - ARRAY_SIZE(drm_client_debugfs_list), - minor->debugfs_root, minor); + drm_debugfs_create_files(drm_client_debugfs_list, + ARRAY_SIZE(drm_client_debugfs_list), + minor->debugfs_root, minor); + + return 0; } #endif diff --git a/drivers/gpu/drm/drm_framebuffer.c b/drivers/gpu/drm/drm_framebuffer.c index 57ac94ce9b9e..46be88271fe5 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c @@ -1209,8 +1209,10 @@ static const struct drm_info_list drm_framebuffer_debugfs_list[] = { int drm_framebuffer_debugfs_init(struct drm_minor *minor) { - return drm_debugfs_create_files(drm_framebuffer_debugfs_list, - ARRAY_SIZE(drm_framebuffer_debugfs_list), - minor->debugfs_root, minor); + drm_debugfs_create_files(drm_framebuffer_debugfs_list, + ARRAY_SIZE(drm_framebuffer_debugfs_list), + minor->debugfs_root, minor); + + return 0; } #endif -- 2.25.1