Received: by 10.192.165.148 with SMTP id m20csp4686410imm; Tue, 24 Apr 2018 06:55:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx48+wNxj9hgm81vUEr3R9kc+Fs7AKbODml2J8dH8C4ALcM0tho/2/zuo1baxCjmyFP3QHYYK X-Received: by 10.98.217.5 with SMTP id s5mr21851983pfg.20.1524578132187; Tue, 24 Apr 2018 06:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524578132; cv=none; d=google.com; s=arc-20160816; b=YLsSg7Lb/8e0aBwbN7x8iF7kmyTZ73fK+4S0h11upRUPy9nl2wV94ktwjU7RdB+OJU BSnRMgl7SN0jaV0UFEGuz5b59U/dqJ8zYZj/3Zd5GDMEWNyQmSkrCO7JywM7vo0YJQtf OsUe5a2t3Lob+iR7OjNAm3nKgPZ0bxqpI29Aywgcf5BRdmUakWg0NC8s2xHpk36ROzp6 nQ0KwIKohy35xm3PtFxBMGxr/ABrr8EwObI3p+Xyi/bPBrWhd1yNMAp+BQm+bmDyeFLI Sh23agFo1RwHzAy84OrHBK8zaEVeDhsyN9T/BTp+OZCIM8E+xTHVTXUpe/wJtOCuUutG P+Tw== 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=gQlhmso2yFc/RNHYdjVB4lpYRfKZSztVgZAxRT5XaZc=; b=yPvH79YUUzuJBJ8TIJTUe9/UKHZfTc0IoDG2HkzqGi3pU6lSUpdjlUKU6PRJPNAGrG gcUu6/JZ7yrBDSIe0Saie9l+slyix9brB9kiDaeH/GQ/c8Vb+ODV5MpGdWz6+ptQ21wl hq7wPByhvKx61TUT51cRfLvywjyuB9iWk1rRUJ2fEBpHrT1eIm7cTQvFClj1R2aANAX2 a69sy8W9Scqnu0dx/cw4KNIsFmnzWpUrjVSD55ztfQnwIYEr0MqP01+7APIqvFJgoKp6 dnLafwFwhXTaeRzXdqlM4GaKHNj/yNsqbaplGNbaJfHuzFP5H/HK71GLodo4hxZBtLjD 4/Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=esMqkmQA; 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 y9si6452044pgv.452.2018.04.24.06.55.17; Tue, 24 Apr 2018 06:55:32 -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=esMqkmQA; 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 S933654AbeDXNxf (ORCPT + 99 others); Tue, 24 Apr 2018 09:53:35 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34576 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932707AbeDXNPn (ORCPT ); Tue, 24 Apr 2018 09:15:43 -0400 Received: by mail-wm0-f68.google.com with SMTP id w2so506321wmw.1 for ; Tue, 24 Apr 2018 06:15:43 -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=gQlhmso2yFc/RNHYdjVB4lpYRfKZSztVgZAxRT5XaZc=; b=esMqkmQAdUp2XZGnBMAVvyDT5PKCXIn0XhbOsAdQQbpBPVyx40+2hN0YbRUh0tg/Cd cbNbqWtt2Fa4dUrz0fBRi3ZCmCsNSAIHEhd9jrVrHzcS7waYID/V+2rC2I0Yp2HOvSlQ 8an1nHgSpe6Bf6jYl3yDRkPNqYeqpppNdudd8EOaNjUHzRAVH89qgygPDkU9jfo99KqV bgBn2Rw0bQmgXXSA1YjUx7C61oBn4WiSqMCnIo0o2trtiOQCJuJtxoTM8RTxDqj6b0Fc dfxXBVVkgWfbLsSUtvo833CXcIwcmX61sOPndmssTvGF0Aeg+rMV6kl1RFKWE/V14d46 c7+g== 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=gQlhmso2yFc/RNHYdjVB4lpYRfKZSztVgZAxRT5XaZc=; b=Ciuae4T8CeTqRQP+b01PZguAPa6nEtWkZcwGWdh76f/DIm6IQqm4svpqyNnGLhCFM9 J9lZyZiCqqoK7k3wo0DMUt+0GaKQxSkk6eQ/W9KAhvaHcJroYlcVu941eO4y/zCNK273 d7eItvpuwZIy8QB7Y2ieAMD1+eGNEEAwRx8hyp+vChYLUIvKEPkrbCJU8BHMtHT4bG/w +u5n/9bXdxA5ICDp9HnDQnM+MAhhqbotVrEgcseicmupU0ysEtdD4qJrXOZmgHoNA6Z7 jQeP/uf2qlrdXOfdERoXDtz2XlvYSFQVvWvLXwEO0N+CAVNMvLckhOIkUP/C9MQg0fH2 Kwdw== X-Gm-Message-State: ALQs6tB0DrC23/3Xy5+zAKqZn1HgE3pYFr28baTXC6eg97SDuCl8BIXU jeOktgJDTHzsKWBkXYkzVe4LOPDMtKE= X-Received: by 10.80.134.109 with SMTP id 42mr32737028edt.229.1524575742547; Tue, 24 Apr 2018 06:15:42 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id v22sm5709896edq.15.2018.04.24.06.15.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:42 -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 , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon: fix radeon_atpx_get_client_id()'s return type Date: Tue, 24 Apr 2018 15:15:41 +0200 Message-Id: <20180424131541.2711-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, radeon_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/radeon/radeon_atpx_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_atpx_handler.c b/drivers/gpu/drm/radeon/radeon_atpx_handler.c index 40be4068c..fa5fadaa9 100644 --- a/drivers/gpu/drm/radeon/radeon_atpx_handler.c +++ b/drivers/gpu/drm/radeon/radeon_atpx_handler.c @@ -526,7 +526,7 @@ static int radeon_atpx_init(void) * look up whether we are the integrated or discrete GPU (all asics). * Returns the client id. */ -static int radeon_atpx_get_client_id(struct pci_dev *pdev) +static enum vga_switcheroo_client_id radeon_atpx_get_client_id(struct pci_dev *pdev) { if (radeon_atpx_priv.dhandle == ACPI_HANDLE(&pdev->dev)) return VGA_SWITCHEROO_IGD; -- 2.17.0