Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4478567imu; Tue, 8 Jan 2019 00:33:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN5d1dOC+00XIsCz+D4K4brOZXoZdf4IcKSsd9k/e0Ot38xFzRcxnfWV+dN6lpbrU5Vy2ufm X-Received: by 2002:a62:6503:: with SMTP id z3mr792087pfb.169.1546936433687; Tue, 08 Jan 2019 00:33:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546936433; cv=none; d=google.com; s=arc-20160816; b=AyDRa4jb3H1DbW9w4Vz8UnBGMWsfUocMds+iJCvPkBp9fEcxkZ5CXIv2rAZAAr0RqK pSML89s7Fp0Uf96PaUDRhwzBIuwfppxpcS/YwjLJxUgoieUgkWMwVKlrxAaLYLKWWx6O RU2evREMOU3K/eeSEi1wTwDe92/3U2jfuZdMD+pKLmKzfP5JYz3k29lYV7f2WBGgqubU 3gWKB53cq6Sp4rV+HN848Q/nA2lyv9LNId0KxQKbCI1h+JUyhYvIbzsSesVJZqeY2Szh jwYw/QoeH0yEHNw/O/9rvmlonzp7QXpRLC40Wgh9lMEADsiOFqyPWS2X21RC8OJdT5p5 ArJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=YULOM3KvdKdk9rUr+AHooOYFdLMyqKv40ZrfrFK476k=; b=i7QIOzdGzYeNueH2H1ok0H8YeEpZXblnGnF0ocpUblSPXN3trqyTZnqBgiS4YQ9E1x fFXdaX+qXOGqZGG/1bJFZOLwQ854s60aHlQplVANsjwymWznX/fZfDQs2VeR+oRHOmH/ AnC/nBxhd4rGjlMZfPyc2qJTG1Z10IxY0j3hL+FDj4Gl/kxO55hmsL6x+azCVjqQKa2j V8Ndv96rdYK2pRz4Apu7akb+6QIBB2wwO/H9Jv5NQMmgb5qQvB5QNhHMEKUGNBo7P+Sf lUbA9h8P1rMCQHVntdd57WknQtL82pS9QsmwGSTIHBJKczHFAidOWOq1ILVsxWWNjuyq Dp2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=k2GjItR6; 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 p64si3352758pfg.79.2019.01.08.00.33.37; Tue, 08 Jan 2019 00:33:53 -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=fail header.i=@ffwll.ch header.s=google header.b=k2GjItR6; 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 S1728014AbfAHIGk (ORCPT + 99 others); Tue, 8 Jan 2019 03:06:40 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:46406 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727689AbfAHIGk (ORCPT ); Tue, 8 Jan 2019 03:06:40 -0500 Received: by mail-ed1-f68.google.com with SMTP id o10so3231945edt.13 for ; Tue, 08 Jan 2019 00:06:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=YULOM3KvdKdk9rUr+AHooOYFdLMyqKv40ZrfrFK476k=; b=k2GjItR6Wu/SOeSheocdtFID6t3wvTMEw5fC+m/rpO0L99I2ZM4WY98LIyisWC/GOW 7OlG800nF7eg0MolQ6XLo+KTOZRFHoxemqsr1ntbbz/KSNq+AFpkD3jSTEMBZViV924x ykYVFSk74MIlNN5yQF4sXzJ0Tl9hj3zfwnFQc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=YULOM3KvdKdk9rUr+AHooOYFdLMyqKv40ZrfrFK476k=; b=KY+xDtv/zyqaiBTZebaS3aXecyHpR/AcobSv5lregS8SWIZjJbTJVmJsOYOZBPOIAs fbjwDm9tKXlJZinkZgKdh/iF+yCGY1mffZ6Wjn+5HdKHgloHG1xltpL0upCUGriC+aDO 2NuobVBD3AFsk7dlNdCZdWPDlJiSzMiiAutUQix/2OjEPgkUwyRfTil8ZNVI0eCAdJS8 8lXGc2czGqU3K4pugFfUJ6Szaa00m74+6thmuTxpW3kf1B0bzk8r+KWgf+30ps03TGmC RPRaiKCaT+WfcqSYNYHWkv5VApk3bdtDhae7KBcTZpE+6PsSdjBJInuHMRx5V8ZePgkW pZSA== X-Gm-Message-State: AJcUukdzE1cXDRfidKGZAkYCNXiEDxIosfcwtpaONi1P2+u3r+CxSy4H sUD31gDhSJOF+SN3+v9+v6WqcQ== X-Received: by 2002:a05:6402:758:: with SMTP id p24mr1132063edy.92.1546934797903; Tue, 08 Jan 2019 00:06:37 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id b14sm26508348edt.6.2019.01.08.00.06.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 Jan 2019 00:06:37 -0800 (PST) Date: Tue, 8 Jan 2019 09:06:35 +0100 From: Daniel Vetter To: Lyude Paul Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Jerry Zuo , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] drm/dp_mst: Add __must_check to drm_dp_mst_topology_mgr_resume() Message-ID: <20190108080635.GO21184@phenom.ffwll.local> Mail-Followup-To: Lyude Paul , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Jerry Zuo , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , linux-kernel@vger.kernel.org References: <20190108005651.25967-1-lyude@redhat.com> <20190108005651.25967-4-lyude@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190108005651.25967-4-lyude@redhat.com> X-Operating-System: Linux phenom 4.18.0-2-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 07, 2019 at 07:56:47PM -0500, Lyude Paul wrote: > 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 I think you need the must_check only in the header. With that fixed: Reviewed-by: Daniel Vetter > +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 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch