Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4157042imu; Mon, 7 Jan 2019 17:01:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN7yOmGrTc6nLdFWy6qALVGqvLOjxj6zQy5suH/37niMSia8DjbFaJ3/DWPCiwMhW7BdP6OS X-Received: by 2002:a17:902:9f89:: with SMTP id g9mr63963822plq.214.1546909265034; Mon, 07 Jan 2019 17:01:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546909265; cv=none; d=google.com; s=arc-20160816; b=bbx0EYhLdhdeeT5SgSdnBJvelqPl2RN+9RF+TMJCqaFMUVqXTaJI7PAQqvdjHSxxcV /4AJkSpsgAADKKwouDeQicdMNV+/FcnLZqKYB7cIs6k7Y8w63F4ANyRimu2BvVJywo9x zmL+DJJIIVh2Rxhd9FkHQ+7txHsDrRNUzskdmC9bn6/eCXOZRtEgyb6BCPdh7mC+GeOx oO8cwSQV2FUbxxi5ldrZBBF/udAezdHZp4flXvuMn6ziyFeN/SwQfUDpoqrKdPxiR+yR AropkRRapytcTHPflRj6VqI32QHzRiqoD05d0GuhP2LcFBRNxSRwl+xCIdg4E0e7VKTR leRg== 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; bh=kXrSbAJjKFkRSF3wgyBwOvjkhD3q7MiTHCFTnRHtoEQ=; b=dTu8Q/eAUASuQGsDBQ9njsSaFHvcRaJBeQbSOHtKwaTXTmPWNKkGZtCUJIDNlzQ8Dk 3+GWIE5xrheUVWq606M/dQ8kFK+10SEshsLJVdSP0RgjAz83YUBGYSpCuBr8RsFpWE+s KCQkgfUb+12fTNJkeyQA9ANS8rAErt4OGFjiqYhXQ7Ffu3+D4eHLsU2abdhRAKaUXBeb 86zEKywqGqPzF5Nrj7E04FYdGR1DHj3MXonvtD6XGBUxYq3Bv4//9ZykN1LKGGZvsCcA BlasByMnSne6ALCCh1FASQXiirrwysDFJFSVtQZfvVhCZ7H34PMXtCG7F+G0VYI7zMkY /TyA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l66si10925978pfl.258.2019.01.07.17.00.49; Mon, 07 Jan 2019 17:01:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727353AbfAHA56 (ORCPT + 99 others); Mon, 7 Jan 2019 19:57:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56484 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727186AbfAHA55 (ORCPT ); Mon, 7 Jan 2019 19:57:57 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 71827C05D3FF; Tue, 8 Jan 2019 00:57:57 +0000 (UTC) Received: from malachite.bss.redhat.com (dhcp-10-20-1-11.bss.redhat.com [10.20.1.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id 462BC65F76; Tue, 8 Jan 2019 00:57:56 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org Cc: Jerry Zuo , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] drm/dp_mst: Add __must_check to drm_dp_mst_topology_mgr_resume() Date: Mon, 7 Jan 2019 19:56:47 -0500 Message-Id: <20190108005651.25967-4-lyude@redhat.com> In-Reply-To: <20190108005651.25967-1-lyude@redhat.com> References: <20190108005651.25967-1-lyude@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 08 Jan 2019 00:57:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since I've had to fix two cases of drivers not checking the return code from this function, let's make the compiler complain so this doesn't come up again in the future. Signed-off-by: Lyude Paul Cc: Jerry Zuo Cc: Daniel Vetter --- drivers/gpu/drm/drm_dp_mst_topology.c | 3 ++- include/drm/drm_dp_mst_helper.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 2ab16c9e6243..13a7e497bfe2 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -2226,7 +2226,8 @@ EXPORT_SYMBOL(drm_dp_mst_topology_mgr_suspend); * if the device fails this returns -1, and the driver should do * a full MST reprobe, in case we were undocked. */ -int drm_dp_mst_topology_mgr_resume(struct drm_dp_mst_topology_mgr *mgr) +int __must_check +drm_dp_mst_topology_mgr_resume(struct drm_dp_mst_topology_mgr *mgr) { int ret = 0; diff --git a/include/drm/drm_dp_mst_helper.h b/include/drm/drm_dp_mst_helper.h index 371cc2816477..4355b55d0081 100644 --- a/include/drm/drm_dp_mst_helper.h +++ b/include/drm/drm_dp_mst_helper.h @@ -614,7 +614,8 @@ void drm_dp_mst_dump_topology(struct seq_file *m, struct drm_dp_mst_topology_mgr *mgr); void drm_dp_mst_topology_mgr_suspend(struct drm_dp_mst_topology_mgr *mgr); -int drm_dp_mst_topology_mgr_resume(struct drm_dp_mst_topology_mgr *mgr); +int __must_check +drm_dp_mst_topology_mgr_resume(struct drm_dp_mst_topology_mgr *mgr); struct drm_dp_mst_topology_state *drm_atomic_get_mst_topology_state(struct drm_atomic_state *state, struct drm_dp_mst_topology_mgr *mgr); int drm_dp_atomic_find_vcpi_slots(struct drm_atomic_state *state, -- 2.20.1