summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2016-03-08 16:34:40 -0500
committerSachin Nikam <snikam@nvidia.com>2016-03-14 01:19:00 -0400
commitfab090f3512be2ded065151ddc544ae03bb33e8c (patch)
tree8e8ef5602f16031231ab7081544ac81492c63a49 /drivers
parentd2e5eaf359d4446dd731ab39bc851e7709571042 (diff)
gpu: nvgpu: tegra: fix sparse errors
Fixed following sparse errors: - therm_gm20b.c:68:6: warning: symbol 'gm20b_init_therm_ops' was not declared. Should it be static? - platform_gk20a_tegra.c:825:5: warning: symbol 'gk20a_set_clk_rate' was not declared. Should it be static? Bug 200067946 Change-Id: I485d5e76302fb294865854f314db2d27f71520f7 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1026685 GVS: Gerrit_Virtual_Submit Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c4
-rw-r--r--drivers/gpu/nvgpu/gm20b/therm_gm20b.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c
index 60ffa381..15d6609d 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c
@@ -3,7 +3,7 @@
3 * 3 *
4 * GK20A Tegra Platform Interface 4 * GK20A Tegra Platform Interface
5 * 5 *
6 * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. 6 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify it 8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms and conditions of the GNU General Public License, 9 * under the terms and conditions of the GNU General Public License,
@@ -822,7 +822,7 @@ static long gk20a_round_clk_rate(struct platform_device *dev,
822 return gk20a_clk_round_rate(g, rate); 822 return gk20a_clk_round_rate(g, rate);
823} 823}
824 824
825int gk20a_set_clk_rate(struct platform_device *dev, unsigned long rate) 825static int gk20a_set_clk_rate(struct platform_device *dev, unsigned long rate)
826{ 826{
827 struct gk20a_platform *platform = gk20a_get_platform(dev); 827 struct gk20a_platform *platform = gk20a_get_platform(dev);
828 struct gk20a *g = platform->g; 828 struct gk20a *g = platform->g;
diff --git a/drivers/gpu/nvgpu/gm20b/therm_gm20b.c b/drivers/gpu/nvgpu/gm20b/therm_gm20b.c
index 5bd22841..6ebc4c91 100644
--- a/drivers/gpu/nvgpu/gm20b/therm_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/therm_gm20b.c
@@ -15,6 +15,7 @@
15 15
16#include "gk20a/gk20a.h" 16#include "gk20a/gk20a.h"
17#include "hw_therm_gm20b.h" 17#include "hw_therm_gm20b.h"
18#include "therm_gm20b.h"
18 19
19static int gm20b_init_therm_setup_hw(struct gk20a *g) 20static int gm20b_init_therm_setup_hw(struct gk20a *g)
20{ 21{