[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 1 Jan 2015 21:04:15 +0100
From: Patrik Jakobsson <patrik.r.jakobsson@...il.com>
To: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
Cc: David Airlie <airlied@...ux.ie>,
"H. Peter Anvin" <hpa@...ux.intel.com>,
dri-devel <dri-devel@...ts.freedesktop.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] gpu: drm: gma500: mmu.c: Remove unused function
On Thu, Jan 1, 2015 at 5:55 PM, Rickard Strandqvist
<rickard_strandqvist@...ctrumdigital.se> wrote:
> Remove the function psb_get_default_pd_addr() that is not used anywhere.
>
> This was partially found by using a static code analysis program called cppcheck.
>
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
Hej Rickard
I'd like to keep that function since it's relevant to getting the MSVDX running.
I'm not working on it but someone else might be.
> ---
> drivers/gpu/drm/gma500/mmu.c | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/gma500/mmu.c b/drivers/gpu/drm/gma500/mmu.c
> index 0eaf11c..557cae7 100644
> --- a/drivers/gpu/drm/gma500/mmu.c
> +++ b/drivers/gpu/drm/gma500/mmu.c
> @@ -426,15 +426,6 @@ struct psb_mmu_pd *psb_mmu_get_default_pd(struct psb_mmu_driver *driver)
> return pd;
> }
>
> -/* Returns the physical address of the PD shared by sgx/msvdx */
> -uint32_t psb_get_default_pd_addr(struct psb_mmu_driver *driver)
> -{
> - struct psb_mmu_pd *pd;
> -
> - pd = psb_mmu_get_default_pd(driver);
> - return page_to_pfn(pd->p) << PAGE_SHIFT;
> -}
> -
> void psb_mmu_driver_takedown(struct psb_mmu_driver *driver)
> {
> struct drm_device *dev = driver->dev;
> --
> 1.7.10.4
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists