mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: fix sparse warnings
Fix below sparse warnings : kernel/drivers/gpu/nvgpu/gm20b/mm_gm20b.c:283:5: warning: symbol 'gm20b_mm_get_big_page_sizes' was not declared. Should it be static? kernel/drivers/gpu/nvgpu/gm20b/clk_gm20b.c:1055:12: warning: symbol 'gm20b_clk_get' was not declared. Should it be static? Bug 200032218 Change-Id: Id199b4b1853b3c933c91509fd550c7b5538cff29 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/660133 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
This commit is contained in:
committed by
Dan Willemsen
parent
31a436b3a1
commit
d930e24358
@@ -1052,23 +1052,6 @@ static int gm20b_init_clk_reset_enable_hw(struct gk20a *g)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct clk *gm20b_clk_get(struct gk20a *g)
|
||||
{
|
||||
if (!g->clk.tegra_clk) {
|
||||
struct clk *clk;
|
||||
|
||||
clk = clk_get_sys("tegra_gk20a", "gpu");
|
||||
if (IS_ERR(clk)) {
|
||||
gk20a_err(dev_from_gk20a(g),
|
||||
"fail to get tegra gpu clk tegra_gk20a/gpu");
|
||||
return NULL;
|
||||
}
|
||||
g->clk.tegra_clk = clk;
|
||||
}
|
||||
|
||||
return g->clk.tegra_clk;
|
||||
}
|
||||
|
||||
static int gm20b_init_clk_setup_sw(struct gk20a *g)
|
||||
{
|
||||
struct clk_gk20a *clk = &g->clk;
|
||||
|
||||
@@ -280,7 +280,7 @@ static void gm20b_mm_set_big_page_size(struct gk20a *g,
|
||||
gk20a_dbg_fn("done");
|
||||
}
|
||||
|
||||
u32 gm20b_mm_get_big_page_sizes(void)
|
||||
static u32 gm20b_mm_get_big_page_sizes(void)
|
||||
{
|
||||
return SZ_64K | SZ_128K;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user