From patchwork Tue Jan 13 19:02:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5625651 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ED1F6C058E for ; Wed, 14 Jan 2015 03:23:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2D9DD20304 for ; Wed, 14 Jan 2015 03:23:06 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 1954320035 for ; Wed, 14 Jan 2015 03:23:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9A1FB6E718; Tue, 13 Jan 2015 19:22:48 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by gabe.freedesktop.org (Postfix) with ESMTP id C8D476E035 for ; Tue, 13 Jan 2015 10:58:57 -0800 (PST) Received: by mail-wg0-f42.google.com with SMTP id k14so4778106wgh.1 for ; Tue, 13 Jan 2015 10:58:56 -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=CRG+keKRlxSHQnOyCwPK4I9BCSQiWtrZbcKDjeUdywI=; b=C/ZpOWUmXutuXwYs3cEtK20+cjm4G6aiBH/VCq3l4b34jvB5sjxS4gJo9la8pBrR4f 0j6TQ5CSdyyRImLvX60EMnkELimx4njF6IW++m0co74EkcCfVYerCdrcP2DGL+BiCCSy VUh8pTzZKThONImIBj02eZojQHK+x4QBF2ykcwTeLdDAtVZxerKh0BO+MsO7+xDl8i5a Ylc9WfLmHFt9425Eh5sUnxW3qLg1zpFx0xjR3b9Zu/OCKs+FHn8HSyPJpjw5uZ3c7BLj BD4b/k7MCN7MeWCkAedVs3CvwEW6OKWtikh4gc2D2Z5pmMB8yOo9+5dh8BCZZyGkRJrG K2iw== X-Gm-Message-State: ALoCoQlcWFnC1ln2GPMIYOrdx1Uzx5YoP8F7vWxwONeQy9qC4VTR4Ye0NKaZsZPRktJAluLbbz+M X-Received: by 10.181.13.136 with SMTP id ey8mr1524239wid.50.1421175535919; Tue, 13 Jan 2015 10:58:55 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id dp8sm15387915wib.20.2015.01.13.10.58.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jan 2015 10:58:55 -0800 (PST) From: Rickard Strandqvist To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= Subject: [PATCH] drm/radeon/radeon_fb: Remove unused function Date: Tue, 13 Jan 2015 20:02:03 +0100 Message-Id: <1421175723-6893-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-Mailman-Approved-At: Tue, 13 Jan 2015 19:22:45 -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_fbdev_total_size() 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_fb.c | 10 ---------- drivers/gpu/drm/radeon/radeon_mode.h | 1 - 2 files changed, 11 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c index 0ea1db8..76adbdb 100644 --- a/drivers/gpu/drm/radeon/radeon_fb.c +++ b/drivers/gpu/drm/radeon/radeon_fb.c @@ -389,16 +389,6 @@ void radeon_fbdev_set_suspend(struct radeon_device *rdev, int state) fb_set_suspend(rdev->mode_info.rfbdev->helper.fbdev, state); } -int radeon_fbdev_total_size(struct radeon_device *rdev) -{ - struct radeon_bo *robj; - int size = 0; - - robj = gem_to_radeon_bo(rdev->mode_info.rfbdev->rfb.obj); - size += radeon_bo_size(robj); - return size; -} - bool radeon_fbdev_robj_is_fb(struct radeon_device *rdev, struct radeon_bo *robj) { if (robj == gem_to_radeon_bo(rdev->mode_info.rfbdev->rfb.obj)) diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index 04db2fd..ec2014a 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h @@ -915,7 +915,6 @@ void dce8_program_fmt(struct drm_encoder *encoder); int radeon_fbdev_init(struct radeon_device *rdev); void radeon_fbdev_fini(struct radeon_device *rdev); void radeon_fbdev_set_suspend(struct radeon_device *rdev, int state); -int radeon_fbdev_total_size(struct radeon_device *rdev); bool radeon_fbdev_robj_is_fb(struct radeon_device *rdev, struct radeon_bo *robj); void radeon_fb_output_poll_changed(struct radeon_device *rdev);