From patchwork Tue Nov 3 14:50:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 7542971 Return-Path: X-Original-To: patchwork-dri-devel@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 165219F36A for ; Tue, 3 Nov 2015 14:57:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 386CD20689 for ; Tue, 3 Nov 2015 14:57:05 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 278BC20647 for ; Tue, 3 Nov 2015 14:57:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 550EF6E3AB; Tue, 3 Nov 2015 06:57:03 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4D06E6E3AB for ; Tue, 3 Nov 2015 06:56:57 -0800 (PST) Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0LyeMJ-1aZ00V0RdP-0167Xd; Tue, 03 Nov 2015 15:50:56 +0100 From: Arnd Bergmann To: Daniel Vetter , Dave Airlie , dri-devel@lists.freedesktop.org Subject: [PATCH] drm/gem: remove unused variable in drm_gem_cma_prime_mmap Date: Tue, 03 Nov 2015 15:50:53 +0100 Message-ID: <5381396.mRN26lWq1C@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:VocrQQGL57s1uM45rOB3xQAPbo7fUTHq69DB492dK1Swz5FyHnz UJcwW3+KNFHVjLTUjH0TmWMsKvOeZg29SA5FzBfgGx7BZLAbs52366Qbzqq4VmLdmOqdluO XyCyFbqRZ3AfySEuVQSYlvo5Zcrw+X7ZmtlBNRzsyYJ53sgca/ifoAvsjo2V97lJv6j7TEA UXD/kg8EcQXDlgjsBiiog== X-UI-Out-Filterresults: notjunk:1; V01:K0:qdIplbBhe1U=:Wi0l1GDWe4WYKMTUmHSwS0 TUGMQd4lzOe0YvRG/MkiEWCknNiX3sZQc264hRLEmEP70QBvfY5x9OUZ4ZSU8VJdu6B9uAgFp zZAIY8FiUIgnHZ9YohOt1B+ZPqY7LP0o7qHk/KWW2r4PSIeoHt3W1+EfkexF1WeAkSohVOAgB Ox1UuBxuwTaggAXk+1ixNTeezb0bVU48moisI55zNdLX4pyCA2Bjf9ALbbwyrF+6OxQ5L962J marEGHkh0VvUpXcfdScDI6pSqnhO5KnS2c0k0cHPuF+v0zhT7JdtS7GSInczWGKBj/JBLSlKp c2fQkM9CVejwXVxsAR/p8mAchevG0rWRpcpAGOcojB64YLr8sh9APIqkJrkjsQ8WrpAmqNTuT d9vq+i9WsWbFjkDC0Qm1JxUjTvJIH1rYHvTzftUKSFM4pYsJIVnMZJBIsHS91btVZAQ5Y9oHC yED0627ZWL2By2s1lUjjmoif1lcKntdpreQsz36+E3KdChZVKFlvYN/3yJR6Ld0HQWr9v4ubd C9ftg6ai/GaeokHK0M/qjN25pEPWV5PPqFQKWzbLynaNurpE9pUxA+IRlmQWplvSseq7kFw6c z48ZSf6Rm0NBoNlxc+O5rJiIakQzicwbcQiyeA6AoCxF3odwrtyvNuaCplGv/i/eXIy/PWYkq FkIHdXTUW7rUCR9QIp14CeQnjqFkQcHhkkeXI+zbVrVnoaJVfT2aavGk8SAr7Rw8e18IMSfSM QjHEDL3h8fI8GqZq Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 Now that the mutex is no longer used in drm_gem_cma_prime_mmap, the 'dev' variable is not referenced either, which gcc warns about: drivers/gpu/drm/drm_gem_cma_helper.c:484:21: warning: unused variable 'dev' This removes it too. Signed-off-by: Arnd Bergmann Fixes: 4e270f088011 ("drm/gem: Drop struct_mutex requirement from drm_gem_mmap_obj") --- Currently in drm-next, warning found on yesterday's linux-next with ARM randconfig builds diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c b/drivers/gpu/drm/drm_gem_cma_helper.c index 4fb4c45d039f..e109b49cd25d 100644 --- a/drivers/gpu/drm/drm_gem_cma_helper.c +++ b/drivers/gpu/drm/drm_gem_cma_helper.c @@ -481,7 +481,6 @@ int drm_gem_cma_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) { struct drm_gem_cma_object *cma_obj; - struct drm_device *dev = obj->dev; int ret; ret = drm_gem_mmap_obj(obj, obj->size, vma);