Received: by 10.192.165.148 with SMTP id m20csp327415imm; Tue, 24 Apr 2018 23:31:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpzdcVLY5cbhUBuJG3c516n71fC+WJhMAIhe/SkpqPT2EfXNyf98Jy3dS0j8590Eb7eZviz X-Received: by 2002:a17:902:74c6:: with SMTP id f6-v6mr4779379plt.7.1524637914552; Tue, 24 Apr 2018 23:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524637914; cv=none; d=google.com; s=arc-20160816; b=U68y0EOm3B4F+sehpiK5jYSeS7oMF7gDMeUVE8yrrbj+Wk20YS8TNgPCB2m+O5XJMr LXnuND7Cq+dzjafXcQECBALCDlqgvoHC/GTsuPvNKQge9FyzmkLS9Vo5hbFJGR0gTeuf fQDKxwAZr/4Dhz47GND7or89V78zjy8hJiW1u1AN7WkI356CCYcF6ugriPgIk+OO2yUU biSO7PruG3O27ZQxV6mAFdKClrzF1A5raB5nRZoVhm3WXZvz56nbjFY+ABBlHF9rdFSX PBm2uD7sCn5GQRYnW9g2WQdjfZ06As2H3oEHjsv8BmJNHj9tnZ27/4RcWGarxUcLBTvF TnqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=W4wSIfnil4eicxXlVZM+AavugCruzk1j4v8l6PlQEqk=; b=kvwbHH9p75fGChElkxkK/vb+MMKM0f7BCFSTmdkz5Gx7Whj4TWPY2rDKLAfGGt5JVf RRmRsdE9Bsf29B66MrUVCsouUnbUwULkcC+6VM0O9quzu8q0QSauu2ZCu0Evad9LNK84 tfLJxuoGRjNXd3uNcQm1wimnM03Q8xbLgcikpwBobL95jd1WqHOrrY3JgM5ev8wMRvk0 3vTplNDBFYzyx0HZn7jBxriaozOibI7u/yPbQcOkPZCMuC6hOcz0aQqiXO/TkxbghKvz qkDlurjJIuUOer4YNnnH1XSrBbK//eRBT0pchL6VLk7ijVdFD8+AjchIDZL+jIsMK2ua EaeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L4VpzShj; 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 n2-v6si2421596pls.422.2018.04.24.23.31.40; Tue, 24 Apr 2018 23:31:54 -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=L4VpzShj; 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 S1751944AbeDYG3x (ORCPT + 99 others); Wed, 25 Apr 2018 02:29:53 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:36956 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751705AbeDYG3s (ORCPT ); Wed, 25 Apr 2018 02:29:48 -0400 Received: by mail-wr0-f195.google.com with SMTP id c14-v6so11996749wrd.4 for ; Tue, 24 Apr 2018 23:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=W4wSIfnil4eicxXlVZM+AavugCruzk1j4v8l6PlQEqk=; b=L4VpzShjlNxiXsEHc7nPgI+HfKQn40Bv+NbkQgaenmG1k3TYld0IWAoEL4eudl907O Ct3KHtK8+an/0o/kDQqSFos6GPp0OSwscvPv0hnV1BZMLAUdX3LFh1lh4ngfjaaWaxNM POy2PK1OCwKRyGAGDbE47ziPDAas7NGpketcWZoOfPDqyYdSIntY8NPgiXuuFbJj33JF r7S4FTLYtb0mKsuWh6kGs4ReNOG5xPy/K01WqYjQrdmicYNeNjt3I61R2FLdyaV4kkYN YA+YjsJ5caquHeR/1u6oArTtCBmctFQe4B406jsZmp87wmzeumAdyLkfrs7m6zRqsHUB gDpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=W4wSIfnil4eicxXlVZM+AavugCruzk1j4v8l6PlQEqk=; b=cZF+MD8+3av40mo1FPyV6dKact6heLn7J5JJgU5XQE+eQXSKJDxmC3p3AMO04KVvfW thVTZnZyjyvxJ80o/e5x6a04PLwtPM4Ku1as/pYhgbS96/jJXjazlPsLoZBKzqTska4I +L+iDj1lrsB/UnA1P5mwiu2GQxb1F6CfBF76T6sj5cnt/ug+dmFwZICOeIg9eohtcGqR Kk7DLV0BMlT/8Gh9njwT758kMpV4tre2ngKPgXBhaMUIghUc197uzUiWWsBNDTOq3ocz 3kaHXX+zMUpkNe/ijzsEV193UQ7+HKGk4ug+ehadJhl/XfelMwSLMZUqACRHPXn+D4fK KKqw== X-Gm-Message-State: ALQs6tBF5lHMscTBDGuwDYlajsic3XuYg5vuuPrlI7QF2ckeiE5MjJUA y+HL+BTCAKfZCL4VHvIca/QWovFnM69ifIthLkA= X-Received: by 2002:adf:b611:: with SMTP id f17-v6mr23128234wre.139.1524637787042; Tue, 24 Apr 2018 23:29:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.175.76 with HTTP; Tue, 24 Apr 2018 23:29:46 -0700 (PDT) In-Reply-To: <20180424131536.2611-1-luc.vanoostenryck@gmail.com> References: <20180424131536.2611-1-luc.vanoostenryck@gmail.com> From: Alex Deucher Date: Wed, 25 Apr 2018 02:29:46 -0400 Message-ID: Subject: Re: [PATCH] drm/amdgpu: fix amdgpu_atpx_get_client_id()'s return type To: Luc Van Oostenryck Cc: LKML , "David (ChunMing) Zhou" , David Airlie , Huang Rui , amd-gfx list , Junwei Zhang , Kai-Heng Feng , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 9:15 AM, Luc Van Oostenryck wrote: > 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 Applied the whole set for radeon and amdgpu. Thanks! Alex > --- > 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 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx