From patchwork Thu Jan 1 16:55:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5559361 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 A41549F1BF for ; Fri, 2 Jan 2015 15:10:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D0FDF20259 for ; Fri, 2 Jan 2015 15:10:27 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 3B6BC20256 for ; Fri, 2 Jan 2015 15:10:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AAD4B6E3A9; Fri, 2 Jan 2015 07:10:17 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by gabe.freedesktop.org (Postfix) with ESMTP id C36666E1B0 for ; Thu, 1 Jan 2015 08:52:41 -0800 (PST) Received: by mail-wg0-f48.google.com with SMTP id y19so23231922wgg.7 for ; Thu, 01 Jan 2015 08:52:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zBq6auJ4RV5VvBRE/xgDcLfTSYp5D4d/BMQ0lPMge2k=; b=hHdjqu5I6qf8XBfAwm2QbQRLV/BZ8rMTlmDhF6sxciSD6DBDboX5xUVImSbsZbuHdh WKXzwA5C0UK0082vKxMb48q0qhU53ItM5L00ND9U1tqxXLtuCCFJ5nmUDhK+YWwmnenA BWQ60V66LESO6Cn3/W4EDTG14tCIrBaHWFbFl1QuxMlCTK3O0kCUDTfHT29HlcUSZqSD YdK0lBPZcz+epndNmxK/MEdE7wpgZvI3HxsCXqEHBP4JYscarH0STVxH7AtXHJKRWUAz SWv8ap5YAhSMplttzx0JZNS9DS7Y03Un/+9X0pNVoKS2KLsAlcKz1FBirjNiOKc4dPc6 OKRQ== X-Gm-Message-State: ALoCoQlZSosiDUYPvuwymRonO9OTJDsAK+RlDxpJ00vEo2TQdFrYmoMD7JSsdg+yLeHyNwFbu6DL X-Received: by 10.180.95.136 with SMTP id dk8mr106725145wib.64.1420131160989; Thu, 01 Jan 2015 08:52:40 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id gy8sm51207161wib.23.2015.01.01.08.52.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 08:52:40 -0800 (PST) From: Rickard Strandqvist To: David Airlie , Patrik Jakobsson Subject: [PATCH] gpu: drm: gma500: mmu.c: Remove unused function Date: Thu, 1 Jan 2015 17:55:42 +0100 Message-Id: <1420131342-30418-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-Mailman-Approved-At: Fri, 02 Jan 2015 07:10:09 -0800 Cc: "H. Peter Anvin" , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Rickard Strandqvist 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-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 Remove the function psb_get_default_pd_addr() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/gpu/drm/gma500/mmu.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/gma500/mmu.c b/drivers/gpu/drm/gma500/mmu.c index 0eaf11c..557cae7 100644 --- a/drivers/gpu/drm/gma500/mmu.c +++ b/drivers/gpu/drm/gma500/mmu.c @@ -426,15 +426,6 @@ struct psb_mmu_pd *psb_mmu_get_default_pd(struct psb_mmu_driver *driver) return pd; } -/* Returns the physical address of the PD shared by sgx/msvdx */ -uint32_t psb_get_default_pd_addr(struct psb_mmu_driver *driver) -{ - struct psb_mmu_pd *pd; - - pd = psb_mmu_get_default_pd(driver); - return page_to_pfn(pd->p) << PAGE_SHIFT; -} - void psb_mmu_driver_takedown(struct psb_mmu_driver *driver) { struct drm_device *dev = driver->dev;