aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/core/core
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2012-08-19 23:00:00 +0200
committerBen Skeggs <bskeggs@redhat.com>2012-10-03 13:13:07 +1000
commit5b8a43aeb9cbf6b965f67f6c850382788076325a (patch)
treeef0f64d82a723311338555b860fe19552497df8d /drivers/gpu/drm/nouveau/core/core
parente6626254f99be74bdae291a12c3981b996de6409 (diff)
drm/nouveau: quiet some static-related sparse noise
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/core')
-rw-r--r--drivers/gpu/drm/nouveau/core/core/gpuobj.c2
-rw-r--r--drivers/gpu/drm/nouveau/core/core/object.c8
-rw-r--r--drivers/gpu/drm/nouveau/core/core/option.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/nouveau/core/core/gpuobj.c b/drivers/gpu/drm/nouveau/core/core/gpuobj.c
index 715fd318f23..1f34549aff1 100644
--- a/drivers/gpu/drm/nouveau/core/core/gpuobj.c
+++ b/drivers/gpu/drm/nouveau/core/core/gpuobj.c
@@ -139,7 +139,7 @@ struct nouveau_gpuobj_class {
u32 flags;
};
-int
+static int
_nouveau_gpuobj_ctor(struct nouveau_object *parent,
struct nouveau_object *engine,
struct nouveau_oclass *oclass, void *data, u32 size,
diff --git a/drivers/gpu/drm/nouveau/core/core/object.c b/drivers/gpu/drm/nouveau/core/core/object.c
index f37598e3f5a..0daab62ea14 100644
--- a/drivers/gpu/drm/nouveau/core/core/object.c
+++ b/drivers/gpu/drm/nouveau/core/core/object.c
@@ -61,7 +61,7 @@ nouveau_object_create_(struct nouveau_object *parent,
return 0;
}
-int
+static int
_nouveau_object_ctor(struct nouveau_object *parent,
struct nouveau_object *engine,
struct nouveau_oclass *oclass, void *data, u32 size,
@@ -91,7 +91,7 @@ nouveau_object_destroy(struct nouveau_object *object)
kfree(object);
}
-void
+static void
_nouveau_object_dtor(struct nouveau_object *object)
{
nouveau_object_destroy(object);
@@ -103,7 +103,7 @@ nouveau_object_init(struct nouveau_object *object)
return 0;
}
-int
+static int
_nouveau_object_init(struct nouveau_object *object)
{
return nouveau_object_init(object);
@@ -115,7 +115,7 @@ nouveau_object_fini(struct nouveau_object *object, bool suspend)
return 0;
}
-int
+static int
_nouveau_object_fini(struct nouveau_object *object, bool suspend)
{
return nouveau_object_fini(object, suspend);
diff --git a/drivers/gpu/drm/nouveau/core/core/option.c b/drivers/gpu/drm/nouveau/core/core/option.c
index 1b53ebb57af..62a432ea39e 100644
--- a/drivers/gpu/drm/nouveau/core/core/option.c
+++ b/drivers/gpu/drm/nouveau/core/core/option.c
@@ -22,7 +22,7 @@
* Authors: Ben Skeggs
*/
-#include <core/os.h>
+#include <core/option.h>
#include <core/debug.h>
/* compares unterminated string 'str' with zero-terminated string 'cmp' */