drm/nouveau: comment out unused _nouveau_parent_ctor
Subsystems (3)
PATCH 1/1 drm/nouveau: comment out unused _nouveau_parent_ctor
--- drivers/gpu/drm/nouveau/core/core/parent.c | 2 ++ drivers/gpu/drm/nouveau/core/include/core/parent.h | 3 +++ 2 files changed, 5 insertions(+)
drivers/gpu/drm/nouveau/core/core/parent.c +2 -0
@@ -101,6 +101,7 @@ nouveau_parent_create_(struct nouveau_object *parent,return 0 ; } +#if 0 int _nouveau_parent_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
@@ -117,6 +118,7 @@ _nouveau_parent_ctor(struct nouveau_object *parent, return 0; } +#endif void nouveau_parent_destroy (struct nouveau_parent *parent)
drivers/gpu/drm/nouveau/core/include/core/parent.h +3 -0
@@ -50,9 +50,12 @@ int nouveau_parent_create_(struct nouveau_object *, struct nouveau_object *, int size, void **); void nouveau_parent_destroy(struct nouveau_parent *); +#if 0 int _nouveau_parent_ctor (struct nouveau_object *,struct nouveau_object *,struct nouveau_oclass *,void *,u32 ,struct nouveau_object **); +#endif +void _nouveau_parent_dtor (struct nouveau_object *);#define _nouveau_parent_init _nouveau_object_init#define _nouveau_parent_fini _nouveau_object_fini
Signature · 1 line
1.7.12
A message that is not in the archive (sent off-list or not yet received): 1349650171-25045-2-git-send-email-marcin.slusarz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Quoted 5 lines · Marcin Slusarz
Signed-off-by Marcin Slusarz <[email protected]>--- drivers/gpu/drm/nouveau/core/core/parent.c | 2 ++ drivers/gpu/drm/nouveau/core/include/core/parent.h | 3 +++ 2 files changed, 5 insertions(+)
Feel free to just kill it completely. There's a few bits and pieces of left-overs like this around the place, I'll be killing them as I run across them too.
What do you think?
Ben.
Quoted 45 lines
drivers/gpu/drm/nouveau/core/core/parent.c +2
-0@@ -101,6 +101,7 @@ nouveau_parent_create_(struct nouveau_object *parent,return 0 ; } +#if 0 int _nouveau_parent_ctor(struct nouveau_object *parent, struct nouveau_object *engine,@@ -117,6 +118,7 @@ _nouveau_parent_ctor(struct nouveau_object *parent, return 0; } +#endif void nouveau_parent_destroy (struct nouveau_parent *parent)drivers/gpu/drm/nouveau/core/include/core/parent.h +3
-0@@ -50,9 +50,12 @@ int nouveau_parent_create_(struct nouveau_object *, struct nouveau_object *, int size, void **); void nouveau_parent_destroy(struct nouveau_parent *); +#if 0 int _nouveau_parent_ctor (struct nouveau_object *,struct nouveau_object *,struct nouveau_oclass *,void *,u32 ,struct nouveau_object **); +#endif +void _nouveau_parent_dtor (struct nouveau_object *);#define _nouveau_parent_init _nouveau_object_init#define _nouveau_parent_fini _nouveau_object_finiSignature · 6 lines
1.7.12 _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 20121008010734.GC4197-6RkuLLNOGXsZ315U/[email protected]
Quoted 9 lines · Ben Skeggs
Quoted 5 lines · Marcin Slusarz
Signed-off-by Marcin Slusarz <[email protected]>--- drivers/gpu/drm/nouveau/core/core/parent.c | 2 ++ drivers/gpu/drm/nouveau/core/include/core/parent.h | 3 +++ 2 files changed, 5 insertions(+)Feel free to just kill it completely. There's a few bits and pieces of left-overs like this around the place, I'll be killing them as I run across them too.
OK.
---
From: Marcin Slusarz <[email protected]>
Subject: [PATCH] drm/nouveau: remove unused _nouveau_parent_ctor
--- drivers/gpu/drm/nouveau/core/core/parent.c | 17 ----------------- drivers/gpu/drm/nouveau/core/include/core/parent.h | 3 --- 2 files changed, 20 deletions(-)
drivers/gpu/drm/nouveau/core/core/parent.c +0 -17
@@ -101,23 +101,6 @@ nouveau_parent_create_(struct nouveau_object *parent,return 0 ; } -int -_nouveau_parent_ctor (struct nouveau_object *parent, -struct nouveau_object *engine, -struct nouveau_oclass *oclass,void *data,u32 size, -struct nouveau_object **pobject) -{ -struct nouveau_parent *object; -int ret; - - ret =nouveau_parent_create (parent, engine, oclass,0 ,NULL ,0 , &object); - *pobject =nv_object (object); -if (ret) -return ret; - -return 0 ; -} -void nouveau_parent_destroy (struct nouveau_parent *parent) {
drivers/gpu/drm/nouveau/core/include/core/parent.h +0 -3
@@ -50,9 +50,6 @@ int nouveau_parent_create_(struct nouveau_object *, struct nouveau_object *, int size, void **); void nouveau_parent_destroy(struct nouveau_parent *); -int _nouveau_parent_ctor (struct nouveau_object *,struct nouveau_object *, -struct nouveau_oclass *,void *,u32 , -struct nouveau_object **);void _nouveau_parent_dtor (struct nouveau_object *);#define _nouveau_parent_init _nouveau_object_init#define _nouveau_parent_fini _nouveau_object_fini
Signature · 1 line
1.7.12