From patchwork Wed May 18 16:07:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9120821 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 AE5429F1D3 for ; Wed, 18 May 2016 16:08:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF16E20328 for ; Wed, 18 May 2016 16:08:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BD67420377 for ; Wed, 18 May 2016 16:08:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932840AbcERQIc (ORCPT ); Wed, 18 May 2016 12:08:32 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:60553 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932568AbcERQIb (ORCPT ); Wed, 18 May 2016 12:08:31 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue002) with ESMTPA (Nemesis) id 0Li5LP-1bPlRv3Am3-00nOYI; Wed, 18 May 2016 18:07:49 +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 5/5] drm: remove unused dev variables Date: Wed, 18 May 2016 18:07:33 +0200 Message-Id: <1463587653-3035181-6-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:4NXHhTWGaYonvUkVLtw9jIMcI5WKV34Tle/IYdEyIlTWB4prx6w GPdip92rzB2L5oYbjxese6eFxNCAaesLlLGvxZJz2PMWUzTwNeqo5CZd/uQFf6Dy2XCxNyK rjX7UHLTUaIG6fuEs/fW7VUBuG06ssBYgrLowYUUhifPdcvgqwHQfoLpC36sOMeMQbciq1O EfIh4CmpSsRmX1tRGzcAw== X-UI-Out-Filterresults: notjunk:1; V01:K0:1Odn6bJuYwk=:46qjRUCARBz6BWGNFWLHQc k1TtPUwwA64BMAMPH+9RgdSw4StfnQJQrl7Nk1EJNcvmYAcVAlUTLp/acU7qrKdvb2vUDmaB0 sbtokans6Ww3xMrneHHvfePCpG3kWSLJNYTONkzd88rzbjP1/yyN1bFSYgiNII5gJG6KGzzOT t911KX0nc1ZkhKs5soaex1K4CI7iHvMpI4usxowZE1DfTPq2P1GMT3jg3/czGtyxC1vY2wwca DYioHjUUH3l6APF/4+iSx5cZYjp9XbVg+KU6VfB06FKrxb+A6eyPPM2PM5y+uoLI1g047rlZB 42WtXWGEqXQaB9RXRCb+2VuBlwdjcrCYOaMoaQSx29OiFpp6cTCalrHluSUYJNgdnxOw0Zwmq jtQe8dMdXzr5OGOMvn4fIM4IjtBrzHKQpgUy6InRSGgtVMXdscvUfvqoSOQkAw6BdqTLZcllj fBGTEIu1XR1NuC7fp2RpKLfWQQqvnFGbD/ZHLxFpdAMFJHsi1V+4U23CQzSEDaz7zV1aINZhf xgj5JZhCIsGnrcJsnZ3cnrBBkRV41m20WCMoW3AoxQkNdz2czdKrq5Jj/eqxKbajbRQAqkPzA 8itAXYm/kgsDumps8Kq74tvZ6QWWqhwQkrdayfcM9dsFvT3sLbwqLkR59wOlg+USZIAGg2a/W DEhjquAWa3Sd4iSgGGRTmfGlxwdctv8MjAaGl/PZSD56y9BIAB2e56TmckC/yBt0rVr9zsSvn tnt/4qofCGQ+U58i 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 After drm_gem_object_lookup() was changed along with all its callers, we have several drivers that have unused variables: drm/armada/armada_crtc.c: In function 'armada_drm_crtc_cursor_set': drm/armada/armada_crtc.c:900:21: error: unused variable 'dev' [-Werror=unused-variable] drm/nouveau/nouveau_gem.c: In function 'validate_init': drm/nouveau/nouveau_gem.c:371:21: error: unused variable 'dev' [-Werror=unused-variable] drm/nouveau/nv50_display.c: In function 'nv50_crtc_cursor_set': drm/nouveau/nv50_display.c:1308:21: error: unused variable 'dev' [-Werror=unused-variable] drm/radeon/radeon_cs.c: In function 'radeon_cs_parser_relocs': drm/radeon/radeon_cs.c:77:21: error: unused variable 'ddev' [-Werror=unused-variable] This fixes all the instances I found with ARM randconfig builds so far. Signed-off-by: Arnd Bergmann Fixes: a8ad0bd84f98 ("drm: Remove unused drm_device from drm_gem_object_lookup()") --- drivers/gpu/drm/armada/armada_crtc.c | 1 - drivers/gpu/drm/nouveau/nouveau_gem.c | 1 - drivers/gpu/drm/nouveau/nv50_display.c | 1 - drivers/gpu/drm/radeon/radeon_cs.c | 1 - 4 files changed, 4 deletions(-) diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c index a9b7e0f36513..3130aa8bcdd0 100644 --- a/drivers/gpu/drm/armada/armada_crtc.c +++ b/drivers/gpu/drm/armada/armada_crtc.c @@ -897,7 +897,6 @@ static void cursor_update(void *data) static int armada_drm_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file, uint32_t handle, uint32_t w, uint32_t h) { - struct drm_device *dev = crtc->dev; struct armada_crtc *dcrtc = drm_to_armada_crtc(crtc); struct armada_gem_object *obj = NULL; int ret; diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c index 445a9e2fb91a..a030e218adf7 100644 --- a/drivers/gpu/drm/nouveau/nouveau_gem.c +++ b/drivers/gpu/drm/nouveau/nouveau_gem.c @@ -368,7 +368,6 @@ validate_init(struct nouveau_channel *chan, struct drm_file *file_priv, int nr_buffers, struct validate_op *op) { struct nouveau_cli *cli = nouveau_cli(file_priv); - struct drm_device *dev = chan->drm->dev; int trycnt = 0; int ret, i; struct nouveau_bo *res_bo = NULL; diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index 47761a92926e..ec2e67eb8980 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c @@ -1305,7 +1305,6 @@ nv50_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv, uint32_t handle, uint32_t width, uint32_t height) { struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); - struct drm_device *dev = crtc->dev; struct drm_gem_object *gem = NULL; struct nouveau_bo *nvbo = NULL; int ret = 0; diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index 271652963fa1..510ea371dacc 100644 --- a/drivers/gpu/drm/radeon/radeon_cs.c +++ b/drivers/gpu/drm/radeon/radeon_cs.c @@ -74,7 +74,6 @@ static void radeon_cs_buckets_get_list(struct radeon_cs_buckets *b, static int radeon_cs_parser_relocs(struct radeon_cs_parser *p) { - struct drm_device *ddev = p->rdev->ddev; struct radeon_cs_chunk *chunk; struct radeon_cs_buckets buckets; unsigned i;