diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/extdev.c b/drivers/gpu/drm/nouveau/core/subdev/bios/extdev.c index 5afb568b2d69511af0397a3b2c2e41d4ac73f9b3..b2a676e53580ca6cd143e238b211cbcd7b5a027a 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/bios/extdev.c +++ b/drivers/gpu/drm/nouveau/core/subdev/bios/extdev.c @@ -48,7 +48,7 @@ extdev_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt) return extdev + *hdr; } -u16 +static u16 nvbios_extdev_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len) { u8 hdr, cnt; diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/therm.c b/drivers/gpu/drm/nouveau/core/subdev/bios/therm.c index b7916a567cac69a14311447f4778e90a553f2767..22a20573ed1b01d2220e5e6942ec2b06f5bf84f3 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/bios/therm.c +++ b/drivers/gpu/drm/nouveau/core/subdev/bios/therm.c @@ -55,7 +55,7 @@ therm_table(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt) return therm + nv_ro08(bios, therm + 1); } -u16 +static u16 nvbios_therm_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len) { u8 hdr, cnt; diff --git a/drivers/gpu/drm/nouveau/core/subdev/bus/nv04.c b/drivers/gpu/drm/nouveau/core/subdev/bus/nv04.c index 0c224e3579cda1880cd6be7685fecad296f56fe5..8c7f8057a1858b5f97f4a604b9d538892a30d528 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/bus/nv04.c +++ b/drivers/gpu/drm/nouveau/core/subdev/bus/nv04.c @@ -29,7 +29,7 @@ struct nv04_bus_priv { struct nouveau_bus base; }; -void +static void nv04_bus_intr(struct nouveau_subdev *subdev) { struct nouveau_bus *pbus = nouveau_bus(subdev); diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/fan.c b/drivers/gpu/drm/nouveau/core/subdev/therm/fan.c index ddb23dc8a8393b3cf98fe71fff307023be97f696..b179655e639cf3b643dbe394196bb954b42f5d44 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/fan.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/fan.c @@ -175,7 +175,7 @@ nouveau_therm_fan_user_set(struct nouveau_therm *therm, int percent) return nouveau_therm_fan_set(therm, true, percent); } -void +static void nouveau_therm_fan_set_defaults(struct nouveau_therm *therm) { struct nouveau_therm_priv *priv = (void *)therm; diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/fannil.c b/drivers/gpu/drm/nouveau/core/subdev/therm/fannil.c index 82f0432cdd034d684b7d2baa2d4dfdbb6689fba8..b78c182e1d51fb7124ed566dde8b998bd8f3f728 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/fannil.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/fannil.c @@ -30,7 +30,7 @@ nouveau_fannil_get(struct nouveau_therm *therm) return -ENODEV; } -int +static int nouveau_fannil_set(struct nouveau_therm *therm, int percent) { return -ENODEV; diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/fantog.c b/drivers/gpu/drm/nouveau/core/subdev/therm/fantog.c index e0693e0109e8d38dc04d978f8fd907aef3d5e333..e601773ee475248635856ad035393e4793ee7a82 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/fantog.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/fantog.c @@ -81,7 +81,7 @@ nouveau_fantog_get(struct nouveau_therm *therm) return priv->percent; } -int +static int nouveau_fantog_set(struct nouveau_therm *therm, int percent) { struct nouveau_therm_priv *tpriv = (void *)therm; diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/nv40.c b/drivers/gpu/drm/nouveau/core/subdev/therm/nv40.c index 5c17577553f6bcda5da4a0187cf9e4414fd71c04..accc628948c42526647901fccad6d49b4a5e9c26 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/nv40.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/nv40.c @@ -80,7 +80,7 @@ nv40_temp_get(struct nouveau_therm *therm) return core_temp; } -int +static int nv40_fan_pwm_ctrl(struct nouveau_therm *therm, int line, bool enable) { u32 mask = enable ? 0x80000000 : 0x0000000; @@ -93,7 +93,7 @@ nv40_fan_pwm_ctrl(struct nouveau_therm *therm, int line, bool enable) return 0; } -int +static int nv40_fan_pwm_get(struct nouveau_therm *therm, int line, u32 *divs, u32 *duty) { if (line == 2) { @@ -119,7 +119,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/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 2cd66cd8b985b4c47230153e8b7eed176f4e24c7..ef1ad21fd37ff3e0a0980b9ba23584470882ac75 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -398,7 +398,7 @@ nouveau_drm_remove(struct pci_dev *pdev) nouveau_object_debug(); } -int +static int nouveau_do_suspend(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev); @@ -469,7 +469,7 @@ int nouveau_pmops_suspend(struct device *dev) return 0; } -int +static int nouveau_do_resume(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev);