mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: common: fix compile error of new compile flags
It's preparing to add bellow CFLAGS:
-Werror -Wall -Wextra \
-Wmissing-braces -Wpointer-arith -Wundef \
-Wconversion -Wsign-conversion \
-Wformat-security \
-Wmissing-declarations -Wredundant-decls -Wimplicit-fallthrough
Jira GVSCI-11640
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Change-Id: Ia8f508c65071aa4775d71b8ee5dbf88a33b5cbd5
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2555056
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
851666b632
commit
9ab1271269
@@ -529,6 +529,7 @@ static int nvgpu_init_boot_clk_or_clk_arb(struct gk20a *g)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
(void)g;
|
||||
#ifdef CONFIG_NVGPU_LS_PMU
|
||||
if (nvgpu_is_enabled(g, NVGPU_PMU_PSTATE) &&
|
||||
(g->pmu->fw->ops.clk.clk_set_boot_clk != NULL)) {
|
||||
@@ -566,6 +567,7 @@ static int nvgpu_init_per_device_identifier(struct gk20a *g)
|
||||
|
||||
static int nvgpu_init_set_debugger_mode(struct gk20a *g)
|
||||
{
|
||||
(void)g;
|
||||
#ifdef CONFIG_NVGPU_DEBUGGER
|
||||
/* Restore the debug setting */
|
||||
g->ops.fb.set_debug_mode(g, g->mmu_debug_ctrl);
|
||||
@@ -603,6 +605,8 @@ static int nvgpu_init_xve_set_speed(struct gk20a *g)
|
||||
return err;
|
||||
}
|
||||
}
|
||||
#else
|
||||
(void)g;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user