From patchwork Sat Jul 2 01:03:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 9210647 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BAE35607D8 for ; Sat, 2 Jul 2016 01:04:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0C5E286A5 for ; Sat, 2 Jul 2016 01:04:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94050286CE; Sat, 2 Jul 2016 01:04:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3310D286A5 for ; Sat, 2 Jul 2016 01:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752554AbcGBBET (ORCPT ); Fri, 1 Jul 2016 21:04:19 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:33381 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752565AbcGBBES (ORCPT ); Fri, 1 Jul 2016 21:04:18 -0400 Received: by mail-pa0-f65.google.com with SMTP id ts6so10847255pac.0; Fri, 01 Jul 2016 18:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=S7bGrTPZu+eGmodclUwC5f98Z9Xz1q6S7zidlzytWRc=; b=i7PuH95PipERlw5dVaew6zJoLy0NTUyRPpJHmFBWjLgmzp/dcVcPrKvfWkHWKe88rR hij3M2G3GB62UoHPw9rsU81SKjCJ1SNXoZTGCrT/fbj7jOU6QdTjt0Vq824whhk+eYbq 1cJPAuxyOlDbMZhHfimnoinA1OjhbpMGBS1ZcUliVyqF62NDAEZmh6ABf6E9AGZlOCAz DfNISJZit1zxvCPmi3FPO1/QE/blDJ7ddG8FOYfmqOGu9ARX+5P2R0J4XtXAZw9Cfr8o Dz9pCXC9kq8PXdMXPLXSmUyjooiaHHyf22ymfK6BoMN8JHCHBENPGs9MYSo7gvZDB1K6 Swmg== 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=S7bGrTPZu+eGmodclUwC5f98Z9Xz1q6S7zidlzytWRc=; b=RN+EiDwC1EnRlsqWTOangUl7lbbTlXSU5KYEsAYX+PcH/61K9TSMv9u4ymuhzlMgsh 09cyDRyaE4LwWiZKArtpUEZDHdM/FLTo4s8K0QahVN3vaQ9k+ZL5beDG+I2lcMr/fOg1 Eb2P0Z6eRuJXKS14ASB+NuzCLTncNbaYklpAjecCfV62/Cz6+cYHcGOagYoJPUY0XvYf 5WyhkZDUqZZ2N6k72zDqJ3VEQxYrONDIlkmCtCYPs+mhs/Gfi2X3eB8i9GMIVEI2gBcJ ImuOGKcZOyFmCzCiq4l80AMTFri8lB7a5+rafGIpqV0RUE/Ex/60R2y/nId6AoytRd5c Ao3A== X-Gm-Message-State: ALyK8tJNZ27jdD9dR3Y9NcwbUXvXB3JH8tQZnfsjRaQDNqD390g/oWy1bXndqPYn3beY3Q== X-Received: by 10.66.248.35 with SMTP id yj3mr1859461pac.138.1467421436634; Fri, 01 Jul 2016 18:03:56 -0700 (PDT) Received: from localhost ([2601:647:4203:ca60:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id r143sm416476pfr.48.2016.07.01.18.03.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jul 2016 18:03:55 -0700 (PDT) From: Eduardo Valentin To: rnayak@codeaurora.org Cc: Eduardo Valentin , Zhang Rui , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] thermal: qcom: remove declare local symbols as static Date: Fri, 1 Jul 2016 18:03:51 -0700 Message-Id: <1467421431-4581-1-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Trivial: remove the following: drivers/thermal/qcom/tsens-8916.c:103:24: warning: symbol 'ops_8916' was not declared. Should it be static? drivers/thermal/qcom/tsens-8996.c:76:24: warning: symbol 'ops_8996' was not declared. Should it be static? drivers/thermal/qcom/tsens-8974.c:235:24: warning: symbol 'ops_8974' was not declared. Should it be static? drivers/thermal/qcom/tsens-8960.c:279:24: warning: symbol 'ops_8960' was not declared. Should it be static? Cc: Zhang Rui Cc: Rajendra Nayak Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin Reviewed-by: Rajendra Nayak --- drivers/thermal/qcom/tsens-8916.c | 2 +- drivers/thermal/qcom/tsens-8960.c | 2 +- drivers/thermal/qcom/tsens-8974.c | 2 +- drivers/thermal/qcom/tsens-8996.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/qcom/tsens-8916.c b/drivers/thermal/qcom/tsens-8916.c index beb3afa..fdf561b 100644 --- a/drivers/thermal/qcom/tsens-8916.c +++ b/drivers/thermal/qcom/tsens-8916.c @@ -100,7 +100,7 @@ static int calibrate_8916(struct tsens_device *tmdev) return 0; } -const struct tsens_ops ops_8916 = { +static const struct tsens_ops ops_8916 = { .init = init_common, .calibrate = calibrate_8916, .get_temp = get_temp_common, diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c index 1d60916..0451277 100644 --- a/drivers/thermal/qcom/tsens-8960.c +++ b/drivers/thermal/qcom/tsens-8960.c @@ -276,7 +276,7 @@ static int get_temp_8960(struct tsens_device *tmdev, int id, int *temp) return -ETIMEDOUT; } -const struct tsens_ops ops_8960 = { +static const struct tsens_ops ops_8960 = { .init = init_8960, .calibrate = calibrate_8960, .get_temp = get_temp_8960, diff --git a/drivers/thermal/qcom/tsens-8974.c b/drivers/thermal/qcom/tsens-8974.c index da3ca4c..9baf77e 100644 --- a/drivers/thermal/qcom/tsens-8974.c +++ b/drivers/thermal/qcom/tsens-8974.c @@ -232,7 +232,7 @@ static int calibrate_8974(struct tsens_device *tmdev) return 0; } -const struct tsens_ops ops_8974 = { +static const struct tsens_ops ops_8974 = { .init = init_common, .calibrate = calibrate_8974, .get_temp = get_temp_common, diff --git a/drivers/thermal/qcom/tsens-8996.c b/drivers/thermal/qcom/tsens-8996.c index e2e1274..e1f7781 100644 --- a/drivers/thermal/qcom/tsens-8996.c +++ b/drivers/thermal/qcom/tsens-8996.c @@ -73,7 +73,7 @@ done: return 0; } -const struct tsens_ops ops_8996 = { +static const struct tsens_ops ops_8996 = { .init = init_common, .get_temp = get_temp_8996, };