lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACAvsv7C2pbruAOGM_8f3yyzxhvCgQoKARRRkTzJenEwYc0zTg@mail.gmail.com>
Date:   Fri, 22 Feb 2019 08:11:02 +1000
From:   Ben Skeggs <skeggsb@...il.com>
To:     YueHaibing <yuehaibing@...wei.com>
Cc:     Ben Skeggs <bskeggs@...hat.com>, David Airlie <airlied@...ux.ie>,
        Daniel Vetter <daniel@...ll.ch>, nouveau@...ts.freedesktop.org,
        kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org,
        dri-devel@...ts.freedesktop.org
Subject: Re: [Nouveau] [PATCH -next] drm/nouveau/dmem: remove set but not used
 variable 'drm'

On Thu, 21 Feb 2019 at 13:41, YueHaibing <yuehaibing@...wei.com> wrote:
>
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/gpu/drm/nouveau/nouveau_dmem.c: In function 'nouveau_dmem_free':
> drivers/gpu/drm/nouveau/nouveau_dmem.c:103:22: warning:
>  variable 'drm' set but not used [-Wunused-but-set-variable]
>   struct nouveau_drm *drm;
>                       ^
Thanks!  Merged.

>
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
> ---
>  drivers/gpu/drm/nouveau/nouveau_dmem.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/nouveau/nouveau_dmem.c b/drivers/gpu/drm/nouveau/nouveau_dmem.c
> index aa9fec80492d..900a302b7ce9 100644
> --- a/drivers/gpu/drm/nouveau/nouveau_dmem.c
> +++ b/drivers/gpu/drm/nouveau/nouveau_dmem.c
> @@ -100,12 +100,10 @@ static void
>  nouveau_dmem_free(struct hmm_devmem *devmem, struct page *page)
>  {
>         struct nouveau_dmem_chunk *chunk;
> -       struct nouveau_drm *drm;
>         unsigned long idx;
>
>         chunk = (void *)hmm_devmem_page_get_drvdata(page);
>         idx = page_to_pfn(page) - chunk->pfn_first;
> -       drm = chunk->drm;
>
>         /*
>          * FIXME:
>
>
>
>
>
> _______________________________________________
> Nouveau mailing list
> Nouveau@...ts.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/nouveau

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ