From patchwork Mon Jan 6 16:36:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rashika X-Patchwork-Id: 3444401 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 93FD9C02DC for ; Tue, 7 Jan 2014 00:51:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CDC182016D for ; Tue, 7 Jan 2014 00:51:05 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 0188C2016C for ; Tue, 7 Jan 2014 00:51:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DB0441086D2; Mon, 6 Jan 2014 16:50:10 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by gabe.freedesktop.org (Postfix) with ESMTP id 280E31062F2 for ; Mon, 6 Jan 2014 08:36:52 -0800 (PST) Received: by mail-pa0-f51.google.com with SMTP id fa1so18858402pad.10 for ; Mon, 06 Jan 2014 08:36:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=v0hVc4u3pRwfVvzLjekdRV0iV/A/ZGlfK5mxsXDo8aM=; b=yJKKI18w828kogzl/70lfDE9eFanSQ+CNuvyMEKQnEF+COhZ6FUFY2dZoYvjeQjKjL IIOasbGrCzsqjUzjPQGQE6hXm6X+2erg3wDIKusG2x95nlCsLGjnrZKWjAmJc96O5VYt GeW+verK+0g8LvkkZqVhs4qQwhTOYim7Q/p4IPELyF8OqFBMxyUlnCXxxlEQIBhqBNbD YgZRrgRWI4my9UK9Ztjxj4KCgXbc7xCyHLFyctM12t9EzutAy/Td4p4+qoasFUzrG22G V3O/EMkwtaKdSi9Jd6SKZoOc9Vz/j21Wy1bKBYrgg5ErUt/JGAnMb+mcoOfOa9oipBnP 8xTA== X-Received: by 10.68.143.33 with SMTP id sb1mr88767755pbb.99.1389026212005; Mon, 06 Jan 2014 08:36:52 -0800 (PST) Received: from rashika ([14.139.82.6]) by mx.google.com with ESMTPSA id pq1sm22702329pbc.8.2014.01.06.08.36.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 Jan 2014 08:36:51 -0800 (PST) Date: Mon, 6 Jan 2014 22:06:47 +0530 From: Rashika Kheria To: linux-kernel@vger.kernel.org Subject: [PATCH 72/85] drivers: gpu: Mark functions as static and remove unused function in ci_dpm.c Message-ID: <6b252b31394cd67ec2ebb4531ee58416522c2269.1389018325.git.rashika.kheria@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Mailman-Approved-At: Mon, 06 Jan 2014 16:48:58 -0800 Cc: Stephen Rothwell , josh@joshtriplett.org, dri-devel@lists.freedesktop.org, Rashika Kheria , Alex Deucher X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Mark functions as static because they are not used outside this file and remove unused function ci_dpm_power_control_set_level() and ci_dpm_reset_asic() from file drm/radeon/ci_dpm.c. This eliminates the following warnings in drm/radeon/ci_dpm.c: drivers/gpu/drm/radeon/ci_dpm.c:4506:6: warning: no previous prototype for ‘ci_update_current_ps’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/ci_dpm.c:4517:6: warning: no previous prototype for ‘ci_update_requested_ps’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/ci_dpm.c:4817:5: warning: no previous prototype for ‘ci_dpm_power_control_set_level’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/ci_dpm.c:4822:6: warning: no previous prototype for ‘ci_dpm_reset_asic’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/ci_dpm.c:5026:5: warning: no previous prototype for ‘ci_get_vbios_boot_values’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett --- drivers/gpu/drm/radeon/ci_dpm.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/radeon/ci_dpm.c b/drivers/gpu/drm/radeon/ci_dpm.c index 7b3c412..23d26f2 100644 --- a/drivers/gpu/drm/radeon/ci_dpm.c +++ b/drivers/gpu/drm/radeon/ci_dpm.c @@ -4496,7 +4496,7 @@ static void ci_get_memory_type(struct radeon_device *rdev) } -void ci_update_current_ps(struct radeon_device *rdev, +static void ci_update_current_ps(struct radeon_device *rdev, struct radeon_ps *rps) { struct ci_ps *new_ps = ci_get_ps(rps); @@ -4507,7 +4507,7 @@ void ci_update_current_ps(struct radeon_device *rdev, pi->current_rps.ps_priv = &pi->current_ps; } -void ci_update_requested_ps(struct radeon_device *rdev, +static void ci_update_requested_ps(struct radeon_device *rdev, struct radeon_ps *rps) { struct ci_ps *new_ps = ci_get_ps(rps); @@ -4807,16 +4807,6 @@ int ci_dpm_set_power_state(struct radeon_device *rdev) return 0; } -int ci_dpm_power_control_set_level(struct radeon_device *rdev) -{ - return ci_power_control_set_level(rdev); -} - -void ci_dpm_reset_asic(struct radeon_device *rdev) -{ - ci_set_boot_state(rdev); -} - void ci_dpm_display_configuration_changed(struct radeon_device *rdev) { ci_program_display_gap(rdev); @@ -5016,7 +5006,7 @@ static int ci_parse_power_table(struct radeon_device *rdev) return 0; } -int ci_get_vbios_boot_values(struct radeon_device *rdev, +static int ci_get_vbios_boot_values(struct radeon_device *rdev, struct ci_vbios_boot_state *boot_state) { struct radeon_mode_info *mode_info = &rdev->mode_info;