Re: [PATCH v3 13/37] drm/nouveau/nvkm: remove nvkm_client_search()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



On Fri, 26 Jul 2024 14:38:04 +1000
Ben Skeggs <bskeggs@xxxxxxxxxx> wrote:

Reviewed-by: Zhi Wang <zhiw@xxxxxxxxxx>

> Has been unused for a while now.
> 
> Signed-off-by: Ben Skeggs <bskeggs@xxxxxxxxxx>
> ---
>  drivers/gpu/drm/nouveau/include/nvkm/core/client.h |  1 -
>  drivers/gpu/drm/nouveau/nvkm/core/client.c         | 13 -------------
>  2 files changed, 14 deletions(-)
> 
> diff --git a/drivers/gpu/drm/nouveau/include/nvkm/core/client.h
> b/drivers/gpu/drm/nouveau/include/nvkm/core/client.h index
> 932c9fd0b2d8..15f27fdd877a 100644 ---
> a/drivers/gpu/drm/nouveau/include/nvkm/core/client.h +++
> b/drivers/gpu/drm/nouveau/include/nvkm/core/client.h @@ -22,7 +22,6
> @@ struct nvkm_client { 
>  int  nvkm_client_new(const char *name, u64 device, const char *cfg,
> const char *dbg, int (*)(u64, void *, u32), struct nvkm_client **);
> -struct nvkm_client *nvkm_client_search(struct nvkm_client *, u64
> handle); 
>  /* logging for client-facing objects */
>  #define nvif_printk(o,l,p,f,a...) do {
>           \ diff --git a/drivers/gpu/drm/nouveau/nvkm/core/client.c
> b/drivers/gpu/drm/nouveau/nvkm/core/client.c index
> c55662937ab2..48416c5039a1 100644 ---
> a/drivers/gpu/drm/nouveau/nvkm/core/client.c +++
> b/drivers/gpu/drm/nouveau/nvkm/core/client.c @@ -67,19 +67,6 @@
> nvkm_uclient_sclass = { .ctor = nvkm_uclient_new,
>  };
>  
> -static const struct nvkm_object_func nvkm_client;
> -struct nvkm_client *
> -nvkm_client_search(struct nvkm_client *client, u64 handle)
> -{
> -	struct nvkm_object *object;
> -
> -	object = nvkm_object_search(client, handle, &nvkm_client);
> -	if (IS_ERR(object))
> -		return (void *)object;
> -
> -	return nvkm_client(object);
> -}
> -
>  static int
>  nvkm_client_mthd_devlist(struct nvkm_client *client, void *data, u32
> size) {




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux