From patchwork Thu Jan 12 11:13:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9513003 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A0DDF60476 for ; Thu, 12 Jan 2017 11:14:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 943B5286D4 for ; Thu, 12 Jan 2017 11:14:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 891BB286DA; Thu, 12 Jan 2017 11:14:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8F25F286D4 for ; Thu, 12 Jan 2017 11:14:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D057B6EC15; Thu, 12 Jan 2017 11:14:38 +0000 (UTC) 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.130]) by gabe.freedesktop.org (Postfix) with ESMTPS id 31F986EC15 for ; Thu, 12 Jan 2017 11:14:36 +0000 (UTC) Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MDHpc-1cFWOI0Pee-00GXku; Thu, 12 Jan 2017 12:14:30 +0100 From: Arnd Bergmann To: Thierry Reding Subject: [PATCH] drm: tegra: shut up harmless warning on NOMMU Date: Thu, 12 Jan 2017 12:13:51 +0100 Message-Id: <20170112111425.3228358-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:2/10R6tj3Tr1fTlF/uPZPobML/uN7BpBGSUbG+Xbeubw5+zZJw4 hUBzAq65TAeHknwWQc++lHjc8Jyj0Sj1Hu9SAt211TCYmDZZoUsR/TYJohmOlDyDZljv3KS NGIxTtZBeRJkHamdA4cu6XdHD/s9+6430BRquNcJBG0kB1YopI14oXUQVFgEM+lN8jSoXPI fQ1sB3eBD3so4Y65H2EeQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:XbzNC/ZPQ2c=:PxspJ8UEm4Oj8SapjsYYmk K1/uAJQo9u27l5dhJC3PvSapH4gIwLTnLzq3PaoAHjDteqJ3Y0ly1PQ71uixqOgNeA4Ov8fx/ LBlnNSuOV9u8/d41DMgVHeckUiMC7o8D0pPF2mEk5H4pUetrtrzPuclKZb51/zKaAMgigU3eU 3+Mc9hq5JjXv7ENYltDKIDnwSHmhIyuyHqxpltNGakEJMXShbLRbjl/38ZdQVoEFz2MDXXUIM Nla6yoGUyV9TrJ/fbfz2+/GfeY1KoB5l2jnVm3aRBwLP//m09Lly9+KAIwJT8Ky3JUTxzFC+s 9NOkOfOa5AcP1UPEWv7u0BsUaW3egGy7IoGVQ274OU5rUptq4bqqo7RoXoK2aTDffL5o6kS5k DgbKBCFVrjK5jPcr9jPGcId3oiAVxEDW24eJuCanIHjypWICTuTCzJVUxYprZ2Q73HiBwEFXL dqjwLolL5YpePnKaPB0Lw9oxNI6S2He64yU/ziBzRSWi37DDxWu0goIm7HxnmqrsRQyYCbR1Q VjZwvIIlqEqwwMhafTR1gJR5H2Ci3LLpFXwQ6yOVFoSJ+U5Bc41u64HnllJF1jDGXUmGZv1KL Ddf+1WEopZT5TK+b09ddkiK04J8Rs2jgqa5UW4kX65+0xYrQQKpDoc7VgP3GdndMQJ9UkOjey uWF92FEDvf2mNEIiRHbbR1MAzpAkdEcKISNeXyA2BFQXtZKbo/Xv/WVUoC4m8Blu3XYw= Cc: Alexandre Courbot , Arnd Bergmann , Stephen Warren , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Mikko Perttunen , linux-tegra@vger.kernel.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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The tegra DRM driver is almost ok without an MMU, but there is one small warning that I get: drivers/gpu/drm/tegra/gem.c: In function 'tegra_drm_mmap': drivers/gpu/drm/tegra/gem.c:508:12: unused variable 'prot' This marks the variable as __maybe_unused instead. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/tegra/gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/gpu/drm/tegra/gem.c index 7d853e6b5ff0..63f14b7a59a0 100644 --- a/drivers/gpu/drm/tegra/gem.c +++ b/drivers/gpu/drm/tegra/gem.c @@ -505,7 +505,7 @@ int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma) vma->vm_pgoff = vm_pgoff; } else { - pgprot_t prot = vm_get_page_prot(vma->vm_flags); + pgprot_t prot __maybe_unused = vm_get_page_prot(vma->vm_flags); vma->vm_flags |= VM_MIXEDMAP; vma->vm_flags &= ~VM_PFNMAP;