Received: by 10.192.165.148 with SMTP id m20csp4734940imm; Tue, 24 Apr 2018 07:36:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/nHVTHuusZZwb4bCHBA+bJDxTbYJ6QvBI47F7V9w/5NIlRdN+6FJYaaUdfIEGmOAhXOONN X-Received: by 10.99.113.84 with SMTP id b20mr20982152pgn.426.1524580617497; Tue, 24 Apr 2018 07:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580617; cv=none; d=google.com; s=arc-20160816; b=fYdxZRGN/di99RXEh+pVil1ofmPpC2eQyv9UU+e5xIspGsgpti/XN47WHDkV2Q5Ash 9ZF245I+0fWls9iL+wSpfX2hjDdMu/IwCAy/jxrjEj94CdU4/KD+Vs4qwp8k/ATlPMkb jHZFUA2DcJvJRICukIM+MMjC03bHQOHHf3v+f9kDD2k2rGBNECoEAuWjgbzXZmgoGQh6 WNqBIM9piO0yAJ+gFltkMvp3pe8gnU/qykHS70H7BCeaaP6c6VRDYHbOgX/hTYU5N0Q/ Qi7p9h7C49Lf179K4H9DTtKpRz2E9ljL9TGHYRQGTco9tIpNwNvQADhGkrDKWsiJ80ah oKfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=NibcFABQ1CPjkq8Anm5+ciTHnSJ9cFU2GGqewRkxO/Q=; b=FxVC9pVHm55hw+ZYJ5VCUTRa22b+fNj9Q09glNiL89fCXsBaWCdmkXStL250UKDmiQ MVEVmfI7OtM8W9+mb5ugzihtCZbSXEdPZTuINRQgx6O8VyC7bS6C0+ghuGCOVuyN5KPg MINihNvcd7R1rFxvcmKuGYpd1/uRANbEsl3WhTjtCBVlqwBlA8IfDW284ChXJECnEiPu 74Xrrs8uKk00ahaTLB+0FehFMTjqxW0HwcgENEGDjEAbFuuawfKS7hVP+McMyi/ZHF36 dudDKv551iizbii4XgJDctu3t6xTzs6J5CE+MS5VJMc9+d3ui5zLHmo5c17bSUrwLmdj yrYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KiuIbpqT; 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 m11si12176422pgs.73.2018.04.24.07.36.42; Tue, 24 Apr 2018 07:36:57 -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=KiuIbpqT; 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 S933544AbeDXNPq (ORCPT + 99 others); Tue, 24 Apr 2018 09:15:46 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:53887 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933220AbeDXNPj (ORCPT ); Tue, 24 Apr 2018 09:15:39 -0400 Received: by mail-wm0-f68.google.com with SMTP id 66so888505wmd.3 for ; Tue, 24 Apr 2018 06:15:38 -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; bh=NibcFABQ1CPjkq8Anm5+ciTHnSJ9cFU2GGqewRkxO/Q=; b=KiuIbpqTX0/JiHE01dQRmF87umPC9tTwjYFxX954Ks/nHPUQ9xyQ9+mpbGLAvS4Dw2 cXmPWrYKRxp9xYhVYzkD6PpDOh7IXD3ZpCOUtbRErnC/ax+lqYpl4INv+bRJabMoSfaJ JB3Z6SR2DGjzwZdf2I3/AAzYgb9LfBgE8YUcSDz/Ui3PEbsQldGgLs7Df/XiHp9DZPMr t1Jwmx5O/KmdGH3a7Uj769+UV76GFPOHn304TCSs/pIqGpxVDVu03AcC0fwLHjKwRuzr 4o1RB/DjkcvBaWe838bER3gFVPIqmsvtPf81UQoIyvujRQEVi9LzybnkxPEHiwRjto+b TALw== 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; bh=NibcFABQ1CPjkq8Anm5+ciTHnSJ9cFU2GGqewRkxO/Q=; b=jnP3YwfqbLkds+Ye/ZOGlntGLQMUcP6ALmtLHK+S4dfjJG1E8a15E8D+ltwnKOlEhb WNpDqhW9GFkWLsJgjcz/xf02V3QOjIcKLW8d6EGEwxKoNkH3ijn9U5O4UKlY3TlADd7X y4Z96JNHHn7bfzAok5Y9sKT4JwbiWqXh8Z+fpXmxnySJEozYdtoDt53o9cO9BGL6Ywpc A4ws4J1u7XbbWrqmlUK1AhEITCMp9iIu6/08AhNInER9dx21GShHbDpE1FGmOS+5ce1S CuW0PnqSjZinDWa32kXg1t64Swj5gQweYhMR4sf9yhRUPLV+LTe0+MBTrmod+KmBtpnv uDqA== X-Gm-Message-State: ALQs6tD93zAiZ5r4KQhBcU+Pp31sNzjLLs4xoIYQ9wF+p18OLBb668Ut Cfp5nadActMYtqfBiL9aXO6S+6K5dkY= X-Received: by 10.80.144.44 with SMTP id b41mr33188702eda.279.1524575738114; Tue, 24 Apr 2018 06:15:38 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id i93sm8688393edc.55.2018.04.24.06.15.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:37 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "David (ChunMing) Zhou" , David Airlie , Kai-Heng Feng , Huang Rui , Junwei Zhang , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/amdgpu: fix amdgpu_atpx_get_client_id()'s return type Date: Tue, 24 Apr 2018 15:15:34 +0200 Message-Id: <20180424131536.2611-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The method struct vga_switcheroo_handler::get_client_id() is defined as returning an 'enum vga_switcheroo_client_id' but the implementation in this driver, amdgpu_atpx_get_client_id(), returns an 'int'. Fix this by returning 'enum vga_switcheroo_client_id' in this driver too. Signed-off-by: Luc Van Oostenryck --- drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c index 1ae5ae8c4..1bcb2b247 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c @@ -550,7 +550,7 @@ static int amdgpu_atpx_init(void) * look up whether we are the integrated or discrete GPU (all asics). * Returns the client id. */ -static int amdgpu_atpx_get_client_id(struct pci_dev *pdev) +static enum vga_switcheroo_client_id amdgpu_atpx_get_client_id(struct pci_dev *pdev) { if (amdgpu_atpx_priv.dhandle == ACPI_HANDLE(&pdev->dev)) return VGA_SWITCHEROO_IGD; -- 2.17.0