From patchwork Thu Feb 5 13:43:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 5784681 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@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 810269F336 for ; Thu, 5 Feb 2015 13:43:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B04E620259 for ; Thu, 5 Feb 2015 13:43:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C94C82011E for ; Thu, 5 Feb 2015 13:43:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753146AbbBENnv (ORCPT ); Thu, 5 Feb 2015 08:43:51 -0500 Received: from mail-wi0-f181.google.com ([209.85.212.181]:45073 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752850AbbBENnu (ORCPT ); Thu, 5 Feb 2015 08:43:50 -0500 Received: by mail-wi0-f181.google.com with SMTP id fb4so10633124wid.2; Thu, 05 Feb 2015 05:43:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=xoA+s+PAK0m8hfUGzmL/43O8JQVJxBVfUazYJ1jdEXY=; b=rGQgkGS8zDG8lzqPmnZ2Lgk+tbSblBYQfbF+M3h7I0tBo1TVcsm9q+ob+gWtCsw0yA IsYU0Om6yDHBDe6bLQcnCaZ11v0oNRlxUsGZwhQWW7TWGXO1O2f56ej+ZuPp8PbTxa5W ExT6cix6lCpRLW56BfBGSkGqhVTBxvpajnGUYgTefTqWWx2PdB+wqmJxVCBNMX5egpC9 x8iflnA2MhpgjJI5Rh2G2u2dnfRRk1+rGzbTnw0mWyBkSAXK6J0XhRl6eVNhiGqFx0UE 01EUtjsAGikNxdP2qBSgY6bRb14+L7UOfCXrLcUgg0+2tyDRwmJ+tt0chpQ0hzGBSPds xyxA== X-Received: by 10.194.173.161 with SMTP id bl1mr8017723wjc.102.1423143829090; Thu, 05 Feb 2015 05:43:49 -0800 (PST) Received: from tango-charlie.RL.local ([194.72.83.162]) by mx.google.com with ESMTPSA id jg3sm7995650wid.0.2015.02.05.05.43.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Feb 2015 05:43:48 -0800 (PST) From: Lad Prabhakar To: Zhang Rui , Eduardo Valentin , linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Lad, Prabhakar" Subject: [PATCH] thermal: int340x: fix sparse warning Date: Thu, 5 Feb 2015 13:43:37 +0000 Message-Id: <1423143817-16128-1-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, 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 From: "Lad, Prabhakar" this patch fixes following sparse warning: processor_thermal_device.c:188:6: warning: symbol 'proc_thermal_remove' was not declared. Should it be static? Signed-off-by: Lad, Prabhakar --- Found this issue on linux-next (gcc version 4.9.2, sparse version 0.4.5-rc1)and applies on top linux-next. drivers/thermal/int340x_thermal/processor_thermal_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/int340x_thermal/processor_thermal_device.c b/drivers/thermal/int340x_thermal/processor_thermal_device.c index 0fe5dbb..095acac 100644 --- a/drivers/thermal/int340x_thermal/processor_thermal_device.c +++ b/drivers/thermal/int340x_thermal/processor_thermal_device.c @@ -185,7 +185,7 @@ free_buffer: return ret; } -void proc_thermal_remove(struct proc_thermal_device *proc_priv) +static void proc_thermal_remove(struct proc_thermal_device *proc_priv) { sysfs_remove_group(&proc_priv->dev->kobj, &power_limit_attribute_group);