From patchwork Wed May 18 16:07:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9120941 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E8C889FB14 for ; Wed, 18 May 2016 16:09:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 23E8420340 for ; Wed, 18 May 2016 16:09:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 379AF2034F for ; Wed, 18 May 2016 16:09:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932882AbcERQIk (ORCPT ); Wed, 18 May 2016 12:08:40 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:51713 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932860AbcERQIg (ORCPT ); Wed, 18 May 2016 12:08:36 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue002) with ESMTPA (Nemesis) id 0Ma9tP-1bIGY02kuN-00LpBC; Wed, 18 May 2016 18:07:47 +0200 From: Arnd Bergmann To: David Airlie Cc: Arnd Bergmann , Russell King , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Kukjin Kim , Krzysztof Kozlowski , Matthias Brugger , Ben Skeggs , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, nouveau@lists.freedesktop.org Subject: [PATCH 3/5] drm: mediatek: fixup drm_gem_object_lookup API change Date: Wed, 18 May 2016 18:07:31 +0200 Message-Id: <1463587653-3035181-4-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1463587653-3035181-1-git-send-email-arnd@arndb.de> References: <1463587653-3035181-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:6ZHdP2hov9QHc9KslieTVRTMya3Q7GmXEdLlxaxcwBrvIQilyy/ s8Qc/AYV5rXaUFhci7yN6btkaJwP4GkbKcNNHusW9Bu/CjCdag3V4U7B0Ta6egNeTHErtw3 UU004a6rzftwd4jiD9Rm4vhHK0g972wzVqUs8G+7MygDT0uZ/z0xF/T1kaKL8+cVPvWpGRn RHgPOn1LZ5vD/NVKbo4SA== X-UI-Out-Filterresults: notjunk:1; V01:K0:VgPS6mUYZ9M=:G1nM6hGXQZ0y0yC86LSfyL BiyRBdXZm50m5pXmWkE4Ds2sO9LZ6Pi7MtVLj5LIsEjNZHXGOXFLrGJe2rg6Gwtu2fTPrCVty HrtJemEgXDWUdXgMglST2z3tfvSIMaV+3mrxaIGZGHuahEKjmW8daVoRfkfogHWmltfBDvpHd MN/sVAU3JK3DDYF/R5hKaf9MuQ/8+JA6ynDzDy+RiXwNR9pTGOX4kCRApOTMCmFNhGXQ9wPd8 JrCByn5bvlWax38buecxQkmhb5TnjREOhK3BHyITKbJ7zbv2QF2KzD6z2OWUR3Ijn399y6sgZ o/t/AgF+IsnUpH90TlbW1kOLJJSXG3p6b8e57w0kPGVAid+kdSg4+KRWBZwNa9k3gG1GUlNQa /FfxXnK7VKRPLiD/nENECY0kAoEXdzzdhqVrU/PjvDRJgzqjFT6IeWzR+3sMnU9uK7nsdzIYc fpJyI6NBX2q51XDbb6UR2H5ep1aV4+tXewQQ0x5ZeylKXavJJtyFEda6JfxLzuBF7OdF/RktH HWYfEZY+GljnF2Az5oNccBWrpfyVPkS2cEpNFq31jtai9ssgp4ZcEEN2aUgQ+LN8+MTnOZRup 2JaXgSZRpSmVgcCxzchyCtLUHtfjyBZDyCUyXMu1gpJpBiw8t3PjLeUOyJRvMPuzOptUaDYu2 42W31//QZVzuf5V2X33UxKUDd7lKFKspfNq4LPl+OJ0Vi0JeSIeUeY80MMa4GibHkUPrOvAFG 0oKJCwYD/Ltmscoi Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The drm_gem_object_lookup() function prototype changed while this driver was added, so it fails to build now: drivers/gpu/drm/mediatek/mtk_drm_gem.c: In function 'mtk_drm_gem_dumb_map_offset': drivers/gpu/drm/mediatek/mtk_drm_gem.c:142:30: error: passing argument 1 of 'drm_gem_object_lookup' from incompatible pointer type [-Werror=incompatible-pointer-types] obj = drm_gem_object_lookup(dev, file_priv, handle); This fixes the new caller as well. Signed-off-by: Arnd Bergmann Fixes: a8ad0bd84f98 ("drm: Remove unused drm_device from drm_gem_object_lookup()") Reviewed-by: Matthias Brugger --- drivers/gpu/drm/mediatek/mtk_drm_fb.c | 2 +- drivers/gpu/drm/mediatek/mtk_drm_gem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_fb.c b/drivers/gpu/drm/mediatek/mtk_drm_fb.c index 33d30c19f35f..147df85399ab 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_fb.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_fb.c @@ -138,7 +138,7 @@ struct drm_framebuffer *mtk_drm_mode_fb_create(struct drm_device *dev, if (drm_format_num_planes(cmd->pixel_format) != 1) return ERR_PTR(-EINVAL); - gem = drm_gem_object_lookup(dev, file, cmd->handles[0]); + gem = drm_gem_object_lookup(file, cmd->handles[0]); if (!gem) return ERR_PTR(-ENOENT); diff --git a/drivers/gpu/drm/mediatek/mtk_drm_gem.c b/drivers/gpu/drm/mediatek/mtk_drm_gem.c index a773bfaea913..fa2ec0cd00e8 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_gem.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_gem.c @@ -139,7 +139,7 @@ int mtk_drm_gem_dumb_map_offset(struct drm_file *file_priv, struct drm_gem_object *obj; int ret; - obj = drm_gem_object_lookup(dev, file_priv, handle); + obj = drm_gem_object_lookup(file_priv, handle); if (!obj) { DRM_ERROR("failed to lookup gem object.\n"); return -EINVAL;