Arnd Bergmann
2016-May-18 16:07 UTC
[Nouveau] [PATCH 0/5] drm: fixes for merge-window regressions
A couple of new warnings and build errors appeared through the DRM tree in linux-next after the merge window opened. The first patch here is for scripts/headers_check.pl, but as the bug is only present in drm-next at the moment, it would be good to add all five patches to that tree before they make it into mainline. It's likely that some of these have already been fixed since this morning's linux-next, so just ignore the ones are no longer needed. [resending because of missing Cc list for the actual patches, sorry about that] Arnd Bergmann (5): headers_check: don't warn about c++ guards drm: mediatek: add CONFIG_OF dependency drm: mediatek: fixup drm_gem_object_lookup API change drm: exynos: mark pm functions as __maybe_unused drm: remove unused dev variables drivers/gpu/drm/armada/armada_crtc.c | 1 - drivers/gpu/drm/exynos/exynos_hdmi.c | 6 ++---- drivers/gpu/drm/mediatek/Kconfig | 1 + drivers/gpu/drm/mediatek/mtk_drm_fb.c | 2 +- drivers/gpu/drm/mediatek/mtk_drm_gem.c | 2 +- drivers/gpu/drm/nouveau/nouveau_gem.c | 1 - drivers/gpu/drm/nouveau/nv50_display.c | 1 - drivers/gpu/drm/radeon/radeon_cs.c | 1 - scripts/headers_check.pl | 4 ++++ 9 files changed, 9 insertions(+), 10 deletions(-) Cc: Russell King <rmk+kernel at armlinux.org.uk> Cc: Inki Dae <inki.dae at samsung.com> Cc: Joonyoung Shim <jy0922.shim at samsung.com> Cc: Seung-Woo Kim <sw0312.kim at samsung.com> Cc: Kyungmin Park <kyungmin.park at samsung.com> Cc: Kukjin Kim <kgene at kernel.org> Cc: Krzysztof Kozlowski <k.kozlowski at samsung.com> Cc: Matthias Brugger <matthias.bgg at gmail.com> Cc: Ben Skeggs <bskeggs at redhat.com> Cc: Alex Deucher <alexander.deucher at amd.com> Cc: "Christian König" <christian.koenig at amd.com> Cc: Arnd Bergmann <arnd at arndb.de> Cc: dri-devel at lists.freedesktop.org Cc: linux-kernel at vger.kernel.org Cc: linux-arm-kernel at lists.infradead.org Cc: linux-samsung-soc at vger.kernel.org Cc: linux-mediatek at lists.infradead.org Cc: nouveau at lists.freedesktop.org -- 2.7.0
Arnd Bergmann
2016-May-18 16:07 UTC
[Nouveau] [PATCH 1/5] headers_check: don't warn about c++ guards
A recent addition to the DRM tree for 4.7 added 'extern "C"' guards for c++ to all the DRM headers, and that now causes warnings in 'make headers_check': usr/include/drm/amdgpu_drm.h:38: userspace cannot reference function or variable defined in the kernel usr/include/drm/drm.h:63: userspace cannot reference function or variable defined in the kernel usr/include/drm/drm.h:699: userspace cannot reference function or variable defined in the kernel usr/include/drm/drm_fourcc.h:30: userspace cannot reference function or variable defined in the kernel usr/include/drm/drm_mode.h:33: userspace cannot reference function or variable defined in the kernel usr/include/drm/drm_sarea.h:38: userspace cannot reference function or variable defined in the kernel usr/include/drm/exynos_drm.h:21: userspace cannot reference function or variable defined in the kernel usr/include/drm/i810_drm.h:7: userspace cannot reference function or variable defined in the kernel This changes the headers_check.pl script to not warn about this. I'm listing the merge commit as introducing the problem, because there are several patches in this branch that each do this for one file. Signed-off-by: Arnd Bergmann <arnd at arndb.de> Fixes: 7c10ddf87472 ("Merge branch 'drm-uapi-extern-c-fixes' of https://github.com/evelikov/linux into drm-next") --- scripts/headers_check.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/headers_check.pl b/scripts/headers_check.pl index 62320f93e903..8b2da054cdc3 100755 --- a/scripts/headers_check.pl +++ b/scripts/headers_check.pl @@ -69,6 +69,10 @@ sub check_declarations if ($line =~ m/^void seqbuf_dump\(void\);/) { return; } + # drm headers are being C++ friendly + if ($line =~ m/^extern "C"/) { + return; + } if ($line =~ m/^(\s*extern|unsigned|char|short|int|long|void)\b/) { printf STDERR "$filename:$lineno: " . "userspace cannot reference function or " . -- 2.7.0
Arnd Bergmann
2016-May-18 16:07 UTC
[Nouveau] [PATCH 2/5] drm: mediatek: add CONFIG_OF dependency
The mediatek DRM driver can be configured for compile testing with CONFIG_OF disabled, but then fails to link: drivers/gpu/built-in.o: In function `mtk_drm_bind': analogix_dp_reg.c:(.text+0x52888): undefined reference to `of_find_device_by_node' analogix_dp_reg.c:(.text+0x52930): undefined reference to `of_find_device_by_node' This adds an explicit Kconfig dependency. Signed-off-by: Arnd Bergmann <arnd at arndb.de> --- drivers/gpu/drm/mediatek/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/Kconfig index 545973f6b743..67183e26971d 100644 --- a/drivers/gpu/drm/mediatek/Kconfig +++ b/drivers/gpu/drm/mediatek/Kconfig @@ -3,6 +3,7 @@ config DRM_MEDIATEK depends on DRM depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST) depends on COMMON_CLK + depends on OF select DRM_GEM_CMA_HELPER select DRM_KMS_HELPER select DRM_MIPI_DSI -- 2.7.0
Arnd Bergmann
2016-May-18 16:07 UTC
[Nouveau] [PATCH 3/5] drm: mediatek: fixup drm_gem_object_lookup API change
The drm_gem_object_lookup() function prototype changed while this driver was added, so it fails to build now: drivers/gpu/drm/mediatek/mtk_drm_gem.c: In function 'mtk_drm_gem_dumb_map_offset': drivers/gpu/drm/mediatek/mtk_drm_gem.c:142:30: error: passing argument 1 of 'drm_gem_object_lookup' from incompatible pointer type [-Werror=incompatible-pointer-types] obj = drm_gem_object_lookup(dev, file_priv, handle); This fixes the new caller as well. Signed-off-by: Arnd Bergmann <arnd at arndb.de> Fixes: a8ad0bd84f98 ("drm: Remove unused drm_device from drm_gem_object_lookup()") --- drivers/gpu/drm/mediatek/mtk_drm_fb.c | 2 +- drivers/gpu/drm/mediatek/mtk_drm_gem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_fb.c b/drivers/gpu/drm/mediatek/mtk_drm_fb.c index 33d30c19f35f..147df85399ab 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_fb.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_fb.c @@ -138,7 +138,7 @@ struct drm_framebuffer *mtk_drm_mode_fb_create(struct drm_device *dev, if (drm_format_num_planes(cmd->pixel_format) != 1) return ERR_PTR(-EINVAL); - gem = drm_gem_object_lookup(dev, file, cmd->handles[0]); + gem = drm_gem_object_lookup(file, cmd->handles[0]); if (!gem) return ERR_PTR(-ENOENT); diff --git a/drivers/gpu/drm/mediatek/mtk_drm_gem.c b/drivers/gpu/drm/mediatek/mtk_drm_gem.c index a773bfaea913..fa2ec0cd00e8 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_gem.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_gem.c @@ -139,7 +139,7 @@ int mtk_drm_gem_dumb_map_offset(struct drm_file *file_priv, struct drm_gem_object *obj; int ret; - obj = drm_gem_object_lookup(dev, file_priv, handle); + obj = drm_gem_object_lookup(file_priv, handle); if (!obj) { DRM_ERROR("failed to lookup gem object.\n"); return -EINVAL; -- 2.7.0
Arnd Bergmann
2016-May-18 16:07 UTC
[Nouveau] [PATCH 4/5] drm: exynos: mark pm functions as __maybe_unused
The rework of the exynos DRM clock handling introduced warnings for configurations that have CONFIG_PM disabled: drivers/gpu/drm/exynos/exynos_hdmi.c:736:13: error: 'hdmi_clk_disable_gates' defined but not used [-Werror=unused-function] static void hdmi_clk_disable_gates(struct hdmi_context *hdata) ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/exynos/exynos_hdmi.c:717:12: error: 'hdmi_clk_enable_gates' defined but not used [-Werror=unused-function] static int hdmi_clk_enable_gates(struct hdmi_context *hdata) The problem is that the PM functions themselves are inside of an #ifdef, but some functions they call are not. This patch removes the #ifdef and instead marks the PM functions as __maybe_unused, which is a more reliable way to get it right. Signed-off-by: Arnd Bergmann <arnd at arndb.de> Fixes: 9be7e9898444 ("drm/exynos/hdmi: clock code re-factoring") --- drivers/gpu/drm/exynos/exynos_hdmi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 58de5a430508..ea4b2b7d7ad7 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1934,8 +1934,7 @@ static int hdmi_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM -static int exynos_hdmi_suspend(struct device *dev) +static int __maybe_unused exynos_hdmi_suspend(struct device *dev) { struct hdmi_context *hdata = dev_get_drvdata(dev); @@ -1944,7 +1943,7 @@ static int exynos_hdmi_suspend(struct device *dev) return 0; } -static int exynos_hdmi_resume(struct device *dev) +static int __maybe_unused exynos_hdmi_resume(struct device *dev) { struct hdmi_context *hdata = dev_get_drvdata(dev); int ret; @@ -1955,7 +1954,6 @@ static int exynos_hdmi_resume(struct device *dev) return 0; } -#endif static const struct dev_pm_ops exynos_hdmi_pm_ops = { SET_RUNTIME_PM_OPS(exynos_hdmi_suspend, exynos_hdmi_resume, NULL) -- 2.7.0
Arnd Bergmann
2016-May-18 16:07 UTC
[Nouveau] [PATCH 5/5] drm: remove unused dev variables
After drm_gem_object_lookup() was changed along with all its callers, we have several drivers that have unused variables: drm/armada/armada_crtc.c: In function 'armada_drm_crtc_cursor_set': drm/armada/armada_crtc.c:900:21: error: unused variable 'dev' [-Werror=unused-variable] drm/nouveau/nouveau_gem.c: In function 'validate_init': drm/nouveau/nouveau_gem.c:371:21: error: unused variable 'dev' [-Werror=unused-variable] drm/nouveau/nv50_display.c: In function 'nv50_crtc_cursor_set': drm/nouveau/nv50_display.c:1308:21: error: unused variable 'dev' [-Werror=unused-variable] drm/radeon/radeon_cs.c: In function 'radeon_cs_parser_relocs': drm/radeon/radeon_cs.c:77:21: error: unused variable 'ddev' [-Werror=unused-variable] This fixes all the instances I found with ARM randconfig builds so far. Signed-off-by: Arnd Bergmann <arnd at arndb.de> Fixes: a8ad0bd84f98 ("drm: Remove unused drm_device from drm_gem_object_lookup()") --- drivers/gpu/drm/armada/armada_crtc.c | 1 - drivers/gpu/drm/nouveau/nouveau_gem.c | 1 - drivers/gpu/drm/nouveau/nv50_display.c | 1 - drivers/gpu/drm/radeon/radeon_cs.c | 1 - 4 files changed, 4 deletions(-) diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c index a9b7e0f36513..3130aa8bcdd0 100644 --- a/drivers/gpu/drm/armada/armada_crtc.c +++ b/drivers/gpu/drm/armada/armada_crtc.c @@ -897,7 +897,6 @@ static void cursor_update(void *data) static int armada_drm_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file, uint32_t handle, uint32_t w, uint32_t h) { - struct drm_device *dev = crtc->dev; struct armada_crtc *dcrtc = drm_to_armada_crtc(crtc); struct armada_gem_object *obj = NULL; int ret; diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c index 445a9e2fb91a..a030e218adf7 100644 --- a/drivers/gpu/drm/nouveau/nouveau_gem.c +++ b/drivers/gpu/drm/nouveau/nouveau_gem.c @@ -368,7 +368,6 @@ validate_init(struct nouveau_channel *chan, struct drm_file *file_priv, int nr_buffers, struct validate_op *op) { struct nouveau_cli *cli = nouveau_cli(file_priv); - struct drm_device *dev = chan->drm->dev; int trycnt = 0; int ret, i; struct nouveau_bo *res_bo = NULL; diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index 47761a92926e..ec2e67eb8980 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c @@ -1305,7 +1305,6 @@ nv50_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv, uint32_t handle, uint32_t width, uint32_t height) { struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); - struct drm_device *dev = crtc->dev; struct drm_gem_object *gem = NULL; struct nouveau_bo *nvbo = NULL; int ret = 0; diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index 271652963fa1..510ea371dacc 100644 --- a/drivers/gpu/drm/radeon/radeon_cs.c +++ b/drivers/gpu/drm/radeon/radeon_cs.c @@ -74,7 +74,6 @@ static void radeon_cs_buckets_get_list(struct radeon_cs_buckets *b, static int radeon_cs_parser_relocs(struct radeon_cs_parser *p) { - struct drm_device *ddev = p->rdev->ddev; struct radeon_cs_chunk *chunk; struct radeon_cs_buckets buckets; unsigned i; -- 2.7.0
Daniel Vetter
2016-May-18 17:17 UTC
[Nouveau] [PATCH 5/5] drm: remove unused dev variables
On Wed, May 18, 2016 at 06:07:33PM +0200, Arnd Bergmann wrote:> After drm_gem_object_lookup() was changed along with all its callers, > we have several drivers that have unused variables: > > drm/armada/armada_crtc.c: In function 'armada_drm_crtc_cursor_set': > drm/armada/armada_crtc.c:900:21: error: unused variable 'dev' [-Werror=unused-variable] > drm/nouveau/nouveau_gem.c: In function 'validate_init': > drm/nouveau/nouveau_gem.c:371:21: error: unused variable 'dev' [-Werror=unused-variable] > drm/nouveau/nv50_display.c: In function 'nv50_crtc_cursor_set': > drm/nouveau/nv50_display.c:1308:21: error: unused variable 'dev' [-Werror=unused-variable] > drm/radeon/radeon_cs.c: In function 'radeon_cs_parser_relocs': > drm/radeon/radeon_cs.c:77:21: error: unused variable 'ddev' [-Werror=unused-variable] > > This fixes all the instances I found with ARM randconfig builds so far. > > Signed-off-by: Arnd Bergmann <arnd at arndb.de> > Fixes: a8ad0bd84f98 ("drm: Remove unused drm_device from drm_gem_object_lookup()")Merged both fixup patches for the drm_gem_object_lookup change to drm-misc. Sorry for the mess :( -Daniel> --- > drivers/gpu/drm/armada/armada_crtc.c | 1 - > drivers/gpu/drm/nouveau/nouveau_gem.c | 1 - > drivers/gpu/drm/nouveau/nv50_display.c | 1 - > drivers/gpu/drm/radeon/radeon_cs.c | 1 - > 4 files changed, 4 deletions(-) > > diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c > index a9b7e0f36513..3130aa8bcdd0 100644 > --- a/drivers/gpu/drm/armada/armada_crtc.c > +++ b/drivers/gpu/drm/armada/armada_crtc.c > @@ -897,7 +897,6 @@ static void cursor_update(void *data) > static int armada_drm_crtc_cursor_set(struct drm_crtc *crtc, > struct drm_file *file, uint32_t handle, uint32_t w, uint32_t h) > { > - struct drm_device *dev = crtc->dev; > struct armada_crtc *dcrtc = drm_to_armada_crtc(crtc); > struct armada_gem_object *obj = NULL; > int ret; > diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c > index 445a9e2fb91a..a030e218adf7 100644 > --- a/drivers/gpu/drm/nouveau/nouveau_gem.c > +++ b/drivers/gpu/drm/nouveau/nouveau_gem.c > @@ -368,7 +368,6 @@ validate_init(struct nouveau_channel *chan, struct drm_file *file_priv, > int nr_buffers, struct validate_op *op) > { > struct nouveau_cli *cli = nouveau_cli(file_priv); > - struct drm_device *dev = chan->drm->dev; > int trycnt = 0; > int ret, i; > struct nouveau_bo *res_bo = NULL; > diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c > index 47761a92926e..ec2e67eb8980 100644 > --- a/drivers/gpu/drm/nouveau/nv50_display.c > +++ b/drivers/gpu/drm/nouveau/nv50_display.c > @@ -1305,7 +1305,6 @@ nv50_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv, > uint32_t handle, uint32_t width, uint32_t height) > { > struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); > - struct drm_device *dev = crtc->dev; > struct drm_gem_object *gem = NULL; > struct nouveau_bo *nvbo = NULL; > int ret = 0; > diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c > index 271652963fa1..510ea371dacc 100644 > --- a/drivers/gpu/drm/radeon/radeon_cs.c > +++ b/drivers/gpu/drm/radeon/radeon_cs.c > @@ -74,7 +74,6 @@ static void radeon_cs_buckets_get_list(struct radeon_cs_buckets *b, > > static int radeon_cs_parser_relocs(struct radeon_cs_parser *p) > { > - struct drm_device *ddev = p->rdev->ddev; > struct radeon_cs_chunk *chunk; > struct radeon_cs_buckets buckets; > unsigned i; > -- > 2.7.0 > > _______________________________________________ > dri-devel mailing list > dri-devel at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel-- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Emil Velikov
2016-May-18 20:20 UTC
[Nouveau] [PATCH 1/5] headers_check: don't warn about c++ guards
On 18 May 2016 at 17:07, Arnd Bergmann <arnd at arndb.de> wrote:> A recent addition to the DRM tree for 4.7 added 'extern "C"' guards > for c++ to all the DRM headers, and that now causes warnings > in 'make headers_check': > > usr/include/drm/amdgpu_drm.h:38: userspace cannot reference function or variable defined in the kernel > usr/include/drm/drm.h:63: userspace cannot reference function or variable defined in the kernel > usr/include/drm/drm.h:699: userspace cannot reference function or variable defined in the kernel > usr/include/drm/drm_fourcc.h:30: userspace cannot reference function or variable defined in the kernel > usr/include/drm/drm_mode.h:33: userspace cannot reference function or variable defined in the kernel > usr/include/drm/drm_sarea.h:38: userspace cannot reference function or variable defined in the kernel > usr/include/drm/exynos_drm.h:21: userspace cannot reference function or variable defined in the kernel > usr/include/drm/i810_drm.h:7: userspace cannot reference function or variable defined in the kernel > > This changes the headers_check.pl script to not warn about this. > I'm listing the merge commit as introducing the problem, because > there are several patches in this branch that each do this for > one file. > > Signed-off-by: Arnd Bergmann <arnd at arndb.de> > Fixes: 7c10ddf87472 ("Merge branch 'drm-uapi-extern-c-fixes' of https://github.com/evelikov/linux into drm-next")Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com> Thanks Arnd ! As Dave mentioned - the best solution would be to have the hunks generated on the fly. Sadly Perl and me don't go hand in hand so if you're interested I'll be really grateful. -Emil
Matthias Brugger
2016-May-19 14:55 UTC
[Nouveau] [PATCH 2/5] drm: mediatek: add CONFIG_OF dependency
On 18/05/16 18:07, Arnd Bergmann wrote:> The mediatek DRM driver can be configured for compile testing with > CONFIG_OF disabled, but then fails to link: > > drivers/gpu/built-in.o: In function `mtk_drm_bind': > analogix_dp_reg.c:(.text+0x52888): undefined reference to `of_find_device_by_node' > analogix_dp_reg.c:(.text+0x52930): undefined reference to `of_find_device_by_node' > > This adds an explicit Kconfig dependency. > > Signed-off-by: Arnd Bergmann <arnd at arndb.de> > --- > drivers/gpu/drm/mediatek/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/Kconfig > index 545973f6b743..67183e26971d 100644 > --- a/drivers/gpu/drm/mediatek/Kconfig > +++ b/drivers/gpu/drm/mediatek/Kconfig > @@ -3,6 +3,7 @@ config DRM_MEDIATEK > depends on DRM > depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST) > depends on COMMON_CLK > + depends on OF > select DRM_GEM_CMA_HELPER > select DRM_KMS_HELPER > select DRM_MIPI_DSI >Reviewed-by: Matthias Brugger <matthias.bgg at gmail.com>
Matthias Brugger
2016-May-19 14:56 UTC
[Nouveau] [PATCH 3/5] drm: mediatek: fixup drm_gem_object_lookup API change
On 18/05/16 18:07, Arnd Bergmann wrote:> The drm_gem_object_lookup() function prototype changed while this > driver was added, so it fails to build now: > > drivers/gpu/drm/mediatek/mtk_drm_gem.c: In function 'mtk_drm_gem_dumb_map_offset': > drivers/gpu/drm/mediatek/mtk_drm_gem.c:142:30: error: passing argument 1 of 'drm_gem_object_lookup' from incompatible pointer type [-Werror=incompatible-pointer-types] > obj = drm_gem_object_lookup(dev, file_priv, handle); > > This fixes the new caller as well. > > Signed-off-by: Arnd Bergmann <arnd at arndb.de> > Fixes: a8ad0bd84f98 ("drm: Remove unused drm_device from drm_gem_object_lookup()") > --- > drivers/gpu/drm/mediatek/mtk_drm_fb.c | 2 +- > drivers/gpu/drm/mediatek/mtk_drm_gem.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_fb.c b/drivers/gpu/drm/mediatek/mtk_drm_fb.c > index 33d30c19f35f..147df85399ab 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_fb.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_fb.c > @@ -138,7 +138,7 @@ struct drm_framebuffer *mtk_drm_mode_fb_create(struct drm_device *dev, > if (drm_format_num_planes(cmd->pixel_format) != 1) > return ERR_PTR(-EINVAL); > > - gem = drm_gem_object_lookup(dev, file, cmd->handles[0]); > + gem = drm_gem_object_lookup(file, cmd->handles[0]); > if (!gem) > return ERR_PTR(-ENOENT); > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_gem.c b/drivers/gpu/drm/mediatek/mtk_drm_gem.c > index a773bfaea913..fa2ec0cd00e8 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_gem.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_gem.c > @@ -139,7 +139,7 @@ int mtk_drm_gem_dumb_map_offset(struct drm_file *file_priv, > struct drm_gem_object *obj; > int ret; > > - obj = drm_gem_object_lookup(dev, file_priv, handle); > + obj = drm_gem_object_lookup(file_priv, handle); > if (!obj) { > DRM_ERROR("failed to lookup gem object.\n"); > return -EINVAL; >Reviewed-by: Matthias Brugger <matthias.bgg at gmail.com>
Possibly Parallel Threads
- [PATCH 1/5] headers_check: don't warn about c++ guards
- [PATCH 0/5] drm: fixes for merge-window regressions
- [PATCH 00/24] drm: add extern C guard for the UAPI headers
- [PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
- [PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory