diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/fan.c b/drivers/gpu/drm/nouveau/core/subdev/therm/fan.c index b292379..e452769 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/fan.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/fan.c @@ -186,7 +186,7 @@ nouveau_therm_fan_user_set(struct nouveau_therm *therm, int percent) return nouveau_therm_fan_set(therm, percent); } -void +static void nouveau_therm_fan_set_defaults(struct nouveau_therm *therm) { struct nouveau_therm_priv *priv = (void *)therm; @@ -211,7 +211,7 @@ nouveau_therm_fan_safety_checks(struct nouveau_therm *therm) priv->bios_fan.min_duty = priv->bios_fan.max_duty; } -int nouveau_fan_pwm_clock_dummy(struct nouveau_therm *therm) +static int nouveau_fan_pwm_clock_dummy(struct nouveau_therm *therm) { return 1; } diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/nv40.c b/drivers/gpu/drm/nouveau/core/subdev/therm/nv40.c index fcf2cfe..1fc3b26 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/nv40.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/nv40.c @@ -75,7 +75,7 @@ nv40_temp_get(struct nouveau_therm *therm) return core_temp; } -int +static int nv40_fan_pwm_get(struct nouveau_therm *therm, int line, u32 *divs, u32 *duty) { if (line == 2) { @@ -101,7 +101,7 @@ nv40_fan_pwm_get(struct nouveau_therm *therm, int line, u32 *divs, u32 *duty) return -EINVAL; } -int +static int nv40_fan_pwm_set(struct nouveau_therm *therm, int line, u32 divs, u32 duty) { if (line == 2) { diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c b/drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c index 6f97de2..ad6cde0 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c @@ -50,7 +50,7 @@ pwm_info(struct nouveau_therm *therm, int *line, int *ctrl, int *indx) return 0; } -int +static int nv50_fan_pwm_get(struct nouveau_therm *therm, int line, u32 *divs, u32 *duty) { int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); @@ -66,7 +66,7 @@ nv50_fan_pwm_get(struct nouveau_therm *therm, int line, u32 *divs, u32 *duty) return -EINVAL; } -int +static int nv50_fan_pwm_set(struct nouveau_therm *therm, int line, u32 divs, u32 duty) { int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); @@ -79,7 +79,7 @@ nv50_fan_pwm_set(struct nouveau_therm *therm, int line, u32 divs, u32 duty) return 0; } -int +static int nv50_fan_pwm_clock(struct nouveau_therm *therm) { int chipset = nv_device(therm)->chipset; @@ -105,7 +105,7 @@ nv50_fan_pwm_clock(struct nouveau_therm *therm) return pwm_clock; } -int +static int nv50_temp_get(struct nouveau_therm *therm) { return nv_rd32(therm, 0x20400);