From patchwork Sun Jan 11 13:17:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5606491 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 1B1149F2ED for ; Sun, 11 Jan 2015 16:20:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BB72220641 for ; Sun, 11 Jan 2015 16:20:16 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6EB3A2062D for ; Sun, 11 Jan 2015 16:20:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 292926E125; Sun, 11 Jan 2015 08:20:12 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by gabe.freedesktop.org (Postfix) with ESMTP id 4939D6E2BC for ; Sun, 11 Jan 2015 05:14:13 -0800 (PST) Received: by mail-wi0-f176.google.com with SMTP id ex7so9943046wid.3 for ; Sun, 11 Jan 2015 05:14:13 -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=1qzgmgE8p/gZBmf2MoJkp1kVMvlog7K1e67xUdijKFM=; b=MTttUtHs79j55CLsc58udaJ97GRdsEgGpYgN6fMNTRjHljnGq5fAWoIRjIrIV5iz3a wVUmCQNwIONY34ccJUFGwC5uiae3QBXBghrmB0Y54X8SQt2xiGYmpJpqwqHBtLPFbqrS cyMxO2fAFyuzpWZ8mlhz3jlnR2IsRoYtcNZm9jyr/jx1b5b7JZ4WbSKOKM085HYuV26Y Vr+wnu6pRrhPJH8iP6j/hJMnTKB+dwBtCm7mSYSBIUxsZP5kwTj0iyLJ+jsnqlwZP9Cp uR4WTYafp3XRSBsSgT51JLDP0/A5uPGbfaoiH88ELuRP39hsYESHaBsWDRPJf/U03DnA xixw== X-Gm-Message-State: ALoCoQnBdJ4llzKlTrOLeEdsEcoY2HTCKKp7Wp07CmFwLsmzdG46cWCFwGrtlh6IpU/5STTCbGVJ X-Received: by 10.180.160.144 with SMTP id xk16mr22197139wib.12.1420982052927; Sun, 11 Jan 2015 05:14:12 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id td6sm6116179wic.15.2015.01.11.05.14.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Jan 2015 05:14:12 -0800 (PST) From: Rickard Strandqvist To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= Subject: [PATCH] gpu: drm: radeon: radeon_object: Remove unused function Date: Sun, 11 Jan 2015 14:17:19 +0100 Message-Id: <1420982239-16892-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-Mailman-Approved-At: Sun, 11 Jan 2015 08:20:11 -0800 Cc: 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 radeon_bo_fbdev_mmap() 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/radeon/radeon_object.c | 6 ------ drivers/gpu/drm/radeon/radeon_object.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index 99a960a..4f2515f 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c @@ -542,12 +542,6 @@ int radeon_bo_list_validate(struct radeon_device *rdev, return 0; } -int radeon_bo_fbdev_mmap(struct radeon_bo *bo, - struct vm_area_struct *vma) -{ - return ttm_fbdev_mmap(vma, &bo->tbo); -} - int radeon_bo_get_surface_reg(struct radeon_bo *bo) { struct radeon_device *rdev = bo->rdev; diff --git a/drivers/gpu/drm/radeon/radeon_object.h b/drivers/gpu/drm/radeon/radeon_object.h index 1b8ec79..1cf3cd9 100644 --- a/drivers/gpu/drm/radeon/radeon_object.h +++ b/drivers/gpu/drm/radeon/radeon_object.h @@ -143,8 +143,6 @@ extern void radeon_bo_fini(struct radeon_device *rdev); extern int radeon_bo_list_validate(struct radeon_device *rdev, struct ww_acquire_ctx *ticket, struct list_head *head, int ring); -extern int radeon_bo_fbdev_mmap(struct radeon_bo *bo, - struct vm_area_struct *vma); extern int radeon_bo_set_tiling_flags(struct radeon_bo *bo, u32 tiling_flags, u32 pitch); extern void radeon_bo_get_tiling_flags(struct radeon_bo *bo,