Re: [Outreachy kernel] Re: [PATCH 1/2] gpu: drm: Replace "unsigned" with "unsigned int"

2021-04-12 Thread Julia Lawall
On Mon, 12 Apr 2021, Daniel Vetter wrote: > On Mon, Apr 12, 2021 at 2:21 PM Fabio M. De Francesco > wrote: > > > > Replaced "unsigned with "unsigned int" since the latter is preferred. > > > > Signed-off-by: Fabio M. De Francesco > > Nit for the subjects: In drm we generally don't have the gp

Re: [Outreachy kernel] [PATCH] drm: nouveau: dispnv50: disp.c: Remove set but unused variables

2021-04-15 Thread Julia Lawall
On Thu, 15 Apr 2021, Fabio M. De Francesco wrote: > Removed two set but unused variables. Would it be useful to use the values? julia > > Signed-off-by: Fabio M. De Francesco > --- > drivers/gpu/drm/nouveau/dispnv50/disp.c | 8 +++- > 1 file changed, 3 insertions(+), 5 deletions(-) > >

Re: [Outreachy kernel] [PATCH] drm: nouveau: dispnv50: disp.c: Remove set but unused variables

2021-04-15 Thread Julia Lawall
On Thu, 15 Apr 2021, Fabio M. De Francesco wrote: > On Thursday, April 15, 2021 9:57:07 PM CEST Julia Lawall wrote: > > On Thu, 15 Apr 2021, Fabio M. De Francesco wrote: > > > Removed two set but unused variables. > > > > Would it be useful to use the values? &

Re: [Outreachy kernel] [PATCH Resend] drm/drm_bufs.c: In switch, add break in default case

2021-04-17 Thread Julia Lawall
On Sat, 17 Apr 2021, Fabio M. De Francesco wrote: > Added a 'break' in the default case of a switch selection statement. Why? julia > > Signed-off-by: Fabio M. De Francesco > --- > drivers/gpu/drm/drm_bufs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/g

Re: [Outreachy kernel] [PATCH Resend] drm/drm_bufs.c: In switch, add break in default case

2021-04-17 Thread Julia Lawall
On Sat, 17 Apr 2021, Fabio M. De Francesco wrote: > On Saturday, April 17, 2021 5:45:46 PM CEST Julia Lawall wrote: > > On Sat, 17 Apr 2021, Fabio M. De Francesco wrote: > > > Added a 'break' in the default case of a switch selection statement. > > > >

Re: [Outreachy kernel] [PATCH 1/2] drm/amd/amdgpu/amdgpu_device.c: Replace drm_modeset_*_all with DRM_MODESET_LOCK_ALL_*

2021-04-19 Thread Julia Lawall
On Mon, 19 Apr 2021, Fabio M. De Francesco wrote: > Replace the deprecated API with new helpers, according to the TODO list > of the DRM subsystem. The commit message will perhaps not be very meaningful one year from now. You could say for example DRM_MODESET_LOCK_ALL_BEGIN was introduced in c

Re: [Outreachy kernel] [PATCH 1/2] drm/amd/amdgpu/amdgpu_device.c: Replace drm_modeset_*_all with DRM_MODESET_LOCK_ALL_*

2021-04-19 Thread Julia Lawall
On Mon, 19 Apr 2021, Fabio M. De Francesco wrote: > On Monday, April 19, 2021 3:08:51 PM CEST Julia Lawall wrote: > > On Mon, 19 Apr 2021, Fabio M. De Francesco wrote: > > > Replace the deprecated API with new helpers, according to the TODO list > > > of the DRM su

[PATCH] drm/amdgpu: fix semicolon.cocci warnings

2021-04-02 Thread Julia Lawall
From: kernel test robot Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 37439a51ff17 ("drm/amdgpu: Add mode2 reset support for aldebaran") CC: Lijo Lazar Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Ju

[PATCH] video: use getter/setter functions

2021-02-09 Thread Julia Lawall
Use getter and setter functions, for platform_device structures and a spi_device structure. Signed-off-by: Julia Lawall --- drivers/video/backlight/qcom-wled.c |2 +- drivers/video/fbdev/amifb.c |4 ++-- drivers

[PATCH] drm: use getter/setter functions

2021-02-09 Thread Julia Lawall
Use getter and setter functions, for platform_device structures and a mipi_dsi_device structure. Signed-off-by: Julia Lawall --- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c |2 +- drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c |2 +- drivers/gpu/drm/panel/panel-lvds.c

Re: [PATCH] video: use getter/setter functions

2021-02-10 Thread Julia Lawall
On Wed, 10 Feb 2021, Daniel Vetter wrote: > On Wed, Feb 10, 2021 at 08:23:41AM +, Lee Jones wrote: > > On Tue, 09 Feb 2021, Julia Lawall wrote: > > > > > Use getter and setter functions, for platform_device structures and a > > > spi_device structure. > &

[PATCH] drm/of: free the right object

2021-07-09 Thread Julia Lawall
* of_node_put(x); ... } // Fixes: 6529007522de ("drm: of: Add drm_of_lvds_get_dual_link_pixel_order") Signed-off-by: Julia Lawall --- drivers/gpu/drm/drm_of.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_

[PATCH 01/30] drm/amd/pm: fix typos in comments

2022-03-14 Thread Julia Lawall
Various spelling mistakes in comments. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/amd/pm/amdgpu_pm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index

[PATCH 16/30] drm/sti: fix typos in comments

2022-03-14 Thread Julia Lawall
Various spelling mistakes in comments. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/sti/sti_gdp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sti/sti_gdp.c b/drivers/gpu/drm/sti/sti_gdp.c index 3db3768a3241

[PATCH 00/30] fix typos in comments

2022-03-14 Thread Julia Lawall
Various spelling mistakes in comments. Detected with the help of Coccinelle. --- drivers/base/devres.c |4 ++-- drivers/clk/qcom/gcc-sm6125.c |2 +- drivers/clk/ti/clkctrl.c|2 +- drivers/gpu/drm/amd/amdg

[PATCH 29/30] drm/amdgpu: fix typos in comments

2022-03-14 Thread Julia Lawall
Various spelling mistakes in comments. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 06/30] drm/bridge: analogix_dp: fix typos in comments

2022-03-14 Thread Julia Lawall
Various spelling mistakes in comments. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b

[PATCH 23/30] drm/amdgpu/dc: fix typos in comments

2022-03-14 Thread Julia Lawall
Various spelling mistakes in comments. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/amd/display/dc/bios/command_table.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table.c b

Re: [Intel-gfx] [PATCH 18/22] drm/i915: Use drm_mode_init() for on-stack modes

2022-03-21 Thread Julia Lawall
On Mon, 21 Mar 2022, Ville Syrjälä wrote: > On Wed, Mar 16, 2022 at 10:00:06AM +0200, Jani Nikula wrote: > > On Fri, 18 Feb 2022, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > Initialize on-stack modes with drm_mode_init() to guarantee > > > no stack garbage in the list head, or t

Re: [Intel-gfx] [PATCH] drm/i915: Add ww context to intel_dpt_pin (fwd)

2021-09-11 Thread Julia Lawall
iomem, because vma has already been tested. julia -- Forwarded message -- Date: Sat, 11 Sep 2021 09:14:18 +0800 From: kernel test robot To: kbu...@lists.01.org Cc: l...@intel.com, Julia Lawall Subject: Re: [Intel-gfx] [PATCH] drm/i915: Add ww context to intel_dpt_pin CC: k

[PATCH] drm/tegra: dpaux: Modify error handling

2016-08-13 Thread Julia Lawall
On Sat, 13 Aug 2016, Amitoj Kaur Chawla wrote: > devm_pinctrl_register returns an ERR_PTR in case of error and should > have an IS_ERR check instead of a null check. > > The Coccinelle semantic patch used to make this change is as follows: > @@ > expression e; > @@ > > e = devm_pinxtrl_registe

[PATCH 0/8] reduce indentation

2018-12-30 Thread Julia Lawall
These patches fix cases where a subsequent statement is aligned with the right hand side of an assignment rather than the left hand side. This was done using the following semantic match (http://coccinelle.lip6.fr/). It has a lot of false positives, because Coccinelle doesn't record the differenc

[PATCH 7/8] drm/msm/dsi: reduce indentation

2018-12-30 Thread Julia Lawall
Delete tab aligning a statement with the right hand side of a preceding assignment rather than the left hand side. Found with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/msm/dsi/phy/dsi_phy.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 0/4] add missing of_node_puts

2019-01-13 Thread Julia Lawall
The device node iterators perform an of_node_get on each iteration, so a jump out of the loop requires an of_node_put. The patches for drivers/gpu/drm/imx/imx-ldb.c and drivers/gpu/drm/sun4i/sun4i_backend.c contain some added of_node_puts for which the need was identified manually. Details are in

[PATCH 2/4] drm/imx: imx-ldb: add missing of_node_puts

2019-01-13 Thread Julia Lawall
node_put(child) when != e = child ( return child; | * return ...; ) ... } // Signed-off-by: Julia Lawall --- This changes the semantics, with respect to the availability of the child field, and has not been tested. drivers/gpu/drm/imx/imx-ldb.c | 25 +

[PATCH 1/4] drm/mediatek: add missing of_node_puts

2019-01-13 Thread Julia Lawall
,n) { ... ( of_node_put(n); | e = n | + of_node_put(n); ? goto l; ) ... } ... l: ... when != n // Signed-off-by: Julia Lawall --- drivers/gpu/drm/mediatek/mtk_drm_drv.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek

[PATCH 4/4] drm/sun4i: backend: add missing of_node_puts

2019-01-13 Thread Julia Lawall
; @@ for_each_available_child_of_node(root, child) { ... when != of_node_put(child) when != e = child + of_node_put(child); ? break; ... } ... when != child // Signed-off-by: Julia Lawall --- Not tested. drivers/gpu/drm/sun4i/sun4i_backend.c |5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH 3/4] drm/rockchip: add missing of_node_put

2019-01-13 Thread Julia Lawall
; @@ for_each_child_of_node(root, child) { ... when != of_node_put(child) when != e = child + of_node_put(child); ? break; ... } ... when != child // Signed-off-by: Julia Lawall --- drivers/gpu/drm/rockchip/rockchip_rgb.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH 0/3] add missing of_node_put

2019-01-13 Thread Julia Lawall
The result of of_graph_get_remote_port_parent needs an of_node_put, even if it is not available. --- drivers/gpu/drm/meson/meson_drv.c |9 +++-- drivers/gpu/drm/rcar-du/rcar_du_kms.c |1 + drivers/of/property.c |1 + 3 files changed, 9 insertions(+), 2 deletio

[PATCH 1/3] drm: rcar-du: add missing of_node_put

2019-01-13 Thread Julia Lawall
!= true e == NULL when != of_node_put(e) when != of_fwnode_handle(e) ( return e; | *return ...; ) // Signed-off-by: Julia Lawall --- drivers/gpu/drm/rcar-du/rcar_du_kms.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rcar-du/rcar_du_kms.c b/drivers/gpu/drm

[PATCH 3/3] drm/meson: add missing of_node_put

2019-01-13 Thread Julia Lawall
(http://coccinelle.lip6.fr): // @r exists@ local idexpression e; expression x; @@ e = of_graph_get_remote_port_parent(...); ... when != x = e when != true e == NULL when != of_node_put(e) when != of_fwnode_handle(e) ( return e; | *return ...; ) // Signed-off-by: Julia Lawall

Re: [PATCH 1/3] drm: rcar-du: add missing of_node_put

2019-01-14 Thread Julia Lawall
On Mon, 14 Jan 2019, Kieran Bingham wrote: > Hi Julia, > > Thank you for the patch, > > On 13/01/2019 09:44, Julia Lawall wrote: > > Add an of_node_put when the result of of_graph_get_remote_port_parent is > > not available. > > > > The semantic matc

[PATCH 1/3 v2] drm: rcar-du: add missing of_node_put

2019-01-14 Thread Julia Lawall
; expression x; @@ e = of_graph_get_remote_port_parent(...); ... when != x = e when != true e == NULL when != of_node_put(e) when != of_fwnode_handle(e) ( return e; | *return ...; ) // Signed-off-by: Julia Lawall --- v2: Add the second of_node_put(entity);, as suggested by Kieran Bingham

[PATCH 00/12] add missing of_node_put after of_device_is_available

2019-02-23 Thread Julia Lawall
Failure of of_device_is_available implies that the device node should be put, if it is not used otherwise. --- arch/arm/mach-omap2/display.c|4 +++- arch/powerpc/platforms/83xx/usb.c|4 +++- drivers/bus/arm-cci.c

[PATCH 06/12] omapfb: add missing of_node_put after of_device_is_available

2019-02-23 Thread Julia Lawall
any if (<+...of_device_is_available(e)...+>) { ... when != of_node_put(e) ( return e; | + of_node_put(e); return ...; ) } // Fixes: f76ee892a99e6 ("omapfb: copy omapdss & displays for omapfb") Signed-off-by: Julia Lawall --- drivers/video/fbdev/omap2/omapfb/dss/omapds

[PATCH 07/12] drm: omapdrm: add missing of_node_put after of_device_is_available

2019-02-23 Thread Julia Lawall
any if (<+...of_device_is_available(e)...+>) { ... when != of_node_put(e) ( return e; | + of_node_put(e); return ...; ) } // Fixes: f2dd36ac9974c ("OMAPDSS: move 'compatible' converter to omapdss driver") Signed-off-by: Julia Lawall --- drivers/gpu/drm/omapdrm/dss/

[PATCH 02/12] drm/tegra: rgb: add missing of_node_put after of_device_is_available

2019-02-23 Thread Julia Lawall
any if (<+...of_device_is_available(e)...+>) { ... when != of_node_put(e) ( return e; | + of_node_put(e); return ...; ) } // Fixes: d8f4a9eda0067 ("drm: Add NVIDIA Tegra20 support") Signed-off-by: Julia Lawall --- drivers/gpu/drm/tegra/rgb.c |4 +++- 1 file changed, 3

[radeon-alex:drm-next-5.2-wip 214/226] drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:1204:3-9: preceding lock on line 1065 (fwd)

2019-03-01 Thread Julia Lawall
Hello, It looks like line 1204 needs a break rather than a return, like in the aborts from the other cases. julia -- Forwarded message -- Date: Sat, 2 Mar 2019 14:36:31 +0800 From: kbuild test robot To: kbu...@01.org Cc: Julia Lawall Subject: [radeon-alex:drm-next-5.2-wip 214

[PATCH] drm/amd/powerplay: fix memdup.cocci warnings

2019-03-01 Thread Julia Lawall
test robot Signed-off-by: Julia Lawall --- tree: git://people.freedesktop.org/~agd5f/linux.git drm-next-5.2-wip head: 25752e1fc83e9f983b11d680fc7bfc129b4eaae6 commit: 76760fe3c00d04f25cc1a6115294310d4effeb77 [161/226] drm/amd/powerplay: add function to store overdrive information for smu11 :::

[PATCH] drm/panfrost: fix odd_ptr_err.cocci warnings

2019-04-01 Thread Julia Lawall
From: kbuild test robot PTR_ERR should access the value just tested by IS_ERR Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci Fixes: 10f21de123ac ("drm/panfrost: add support for reset lines") CC: Neil Armstrong Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall

[PATCH] drm: fix device_node_continue.cocci warnings (fwd)

2022-06-12 Thread Julia Lawall
The of_node_put does not seem to be needed. Note that there is none at the preceeding continues. julia -- Forwarded message -- Date: Sat, 11 Jun 2022 06:02:45 +0800 From: kernel test robot To: kbu...@lists.01.org Cc: l...@intel.com, Julia Lawall Subject: [PATCH] drm: fix

[PATCH] drm/etnaviv: fix typo in comment

2022-05-21 Thread Julia Lawall
Spelling mistake (triple letters) in comment. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv

[PATCH] drm/i915/gvt: fix typo in comment

2022-05-21 Thread Julia Lawall
Spelling mistake (triple letters) in comment. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/i915/gvt/gtt.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c index

[PATCH] drm/nouveau/mmu: fix typo in comment

2022-05-21 Thread Julia Lawall
Spelling mistake (triple letters) in comment. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c b/drivers/gpu

[PATCH] drm/i915: fix typos in comments

2022-05-21 Thread Julia Lawall
Spelling mistakes (triple letters) in comments. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/i915/display/intel_color.c |2 +- drivers/gpu/drm/i915/display/intel_pps.c |2 +- drivers/gpu/drm/i915/gt

[PATCH] drm/amdgpu/gfx: fix typos in comments

2022-05-21 Thread Julia Lawall
Spelling mistakes (triple letters) in comments. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c |2 +- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c |4 ++-- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c |2 +- 3 files changed, 4

[PATCH] drm/amdkfd: fix typo in comment

2022-05-21 Thread Julia Lawall
Spelling mistake (triple letters) in comment. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b

Re: mainline build failure due to f1e4c916f97f ("drm/edid: add EDID block count and size helpers")

2022-05-30 Thread Julia Lawall
> On 30 May 2022, at 15:27, Arnd Bergmann wrote: > > On Mon, May 30, 2022 at 4:08 PM Jani Nikula wrote: >>> On Mon, 30 May 2022, Arnd Bergmann wrote: >>> struct my_driver_priv { >>> struct device dev; >>> u8 causes_misalignment; >>> spinlock_t lock; >>> atomic_t coun

[PATCH] drm/amdgpu/powerplay/vega10: fix minmax.cocci warnings

2022-04-16 Thread Julia Lawall
From: kernel test robot Use max to simplify the code. Generated by: scripts/coccinelle/misc/minmax.cocci CC: Denis Efremov Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds

[PATCH 00/16] constify copied structure

2020-01-01 Thread Julia Lawall
Make const static structures that are just copied into other structures. The semantic patch that detects the opportunity for this change is as follows: (http://coccinelle.lip6.fr/) @r disable optional_qualifier@ identifier i,j; position p; @@ static struct i j@p = { ... }; @upd@ position p1; id

[PATCH 15/16] drm: bridge: dw-hdmi: constify copied structure

2020-01-01 Thread Julia Lawall
The dw_hdmi_hw structure is only copied into another structure, so make it const. The opportunity for this change was found using Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 07/16] video: sa1100fb: constify copied structure

2020-01-01 Thread Julia Lawall
The monspecs structure is only copied into another structure, so make it const. The opportunity for this change was found using Coccinelle. Signed-off-by: Julia Lawall --- drivers/video/fbdev/sa1100fb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev

[PATCH 03/10] fbdev: s1d13xxxfb: use resource_size

2020-01-02 Thread Julia Lawall
Use resource_size rather than a verbose computation on the end and start fields. The semantic patch that makes these changes is as follows: (http://coccinelle.lip6.fr/) @@ struct resource ptr; @@ - (ptr.end - ptr.start + 1) + resource_size(&ptr) Signed-off-by: Julia Lawall --- dri

[PATCH 00/10] use resource_size

2020-01-02 Thread Julia Lawall
Use resource_size rather than a verbose computation on the end and start fields. The semantic patch that makes these changes is as follows: (http://coccinelle.lip6.fr/) @@ struct resource ptr; @@ - ((ptr.end) - (ptr.start) + 1) + resource_size(&ptr) @@ struct resource *ptr; @@ - ((ptr->end) -

[PATCH 07/10] video: fbdev: use resource_size

2020-01-02 Thread Julia Lawall
Use resource_size rather than a verbose computation on the end and start fields. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) @@ struct resource ptr; @@ - (ptr.end - ptr.start + 1) + resource_size(&ptr) Signed-off-by: Julia Lawall --- drivers/v

[PATCH] video: fbdev: mmp: fix platform_get_irq.cocci warnings

2020-01-06 Thread Julia Lawall
t;) Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- tree: git://anongit.freedesktop.org/drm/drm-misc for-linux-next head: 80805774fc354f9ae7755a8e649a01dedfd0dcf8 commit: dd90e9ae55a1e7efd3ac036afe9f7ae7bb64d39d [2/16] video: fbdev: mmp: add COMPILE_TEST support :: b

Re: [PATCH 1/2] drm/imx: Fix error handling for a kmemdup() call in imx_pd_bind()

2019-10-12 Thread Julia Lawall
On Sat, 12 Oct 2019, Navid Emamdoost wrote: > On Sat, Oct 12, 2019 at 4:07 AM Markus Elfring wrote: > > > > From: Markus Elfring > > Date: Sat, 12 Oct 2019 10:30:21 +0200 > > > > The return value from a call of the function “kmemdup” was not checked > > in this function implementation. Thus ad

Re: [Outreachy kernel] [PATCH] drm: remove unnecessary return variable

2019-10-19 Thread Julia Lawall
On Sat, 19 Oct 2019, Wambui Karuga wrote: > From: Wambui Karuga > > Remove unnecessary variable `ret` in drm_dp_atomic_find_vcpi_slots() > only used to hold the function return value and have the function > return the value directly. This patch applies for me, but with a huge offset. What tr

Re: [Outreachy kernel] [Outreachy][PATCH] drm: use DIV_ROUND_UP helper macro for calculations

2019-10-25 Thread Julia Lawall
> | > - ((n + (d - 1)) / d) > + DIV_ROUND_UP(n,d) > ) > > Signed-off-by: Wambui Karuga Acked-by: Julia Lawall > --- > drivers/gpu/drm/drm_agpsupport.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/drm_agpsupport.c > b/driv

[PATCH] UNCLEAN: fix semicolon.cocci warnings

2019-09-20 Thread Julia Lawall
From: kbuild test robot Remove unneeded semicolons. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 841b04751dc0 ("UNCLEAN: add HDMI TX driver") CC: Lucas Stach Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- tree: git://git.infradead.org/users

[PATCH] UNCLEAN: fix semicolon.cocci warnings

2019-09-20 Thread Julia Lawall
From: kbuild test robot Remove unneeded semicolons. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 841b04751dc0 ("UNCLEAN: add HDMI TX driver") CC: Lucas Stach Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- tree: git://git.infradead.org/users

Re: [PATCH v6 2/2] drm/bridge: Add NWL MIPI DSI host controller support (fwd)

2019-09-22 Thread Julia Lawall
Hello, Color_format is unsigned, so it won't be less than 0 on line 272. julia -- Forwarded message -- Date: Mon, 23 Sep 2019 02:29:34 +0800 From: kbuild test robot To: kbu...@01.org Cc: Julia Lawall Subject: Re: [PATCH v6 2/2] drm/bridge: Add NWL MIPI DSI host contr

Re: [PATCH 0/2] drm/tegra: Use PTR_ERR_OR_ZERO() to simplify code

2019-11-19 Thread Julia Lawall
On Tue, 19 Nov 2019, Jani Nikula wrote: > On Tue, 19 Nov 2019, Jani Nikula wrote: > > On Mon, 18 Nov 2019, Thierry Reding wrote: > >> On Mon, Nov 18, 2019 at 07:46:10PM +0800, zhengbin wrote: > >>> zhengbin (2): > >>> drm/tegra: Use PTR_ERR_OR_ZERO() to simplify code in > >>> tegra_bo_du

Re: [PATCH] drm/vmwgfx: Replace deprecated PTR_RET

2019-12-10 Thread Julia Lawall
> De: "Lukas Bulwahn" > À: "Thomas Hellstrom" , dri-devel@lists.freedesktop.org > Cc: "David Airlie" , "Daniel Vetter" , > "Sinclair Yeh" , > linux-graphics-maintai...@vmware.com, kernel-janit...@vger.kernel.org, > linux-ker...@vger.kernel.org, "Lukas Bulwahn" > > Envoyé: Dimanche 8 Décembre 20

Re: [PATCH v4 2/6] treewide: use prandom_u32_max() when possible

2022-10-08 Thread Julia Lawall
> >> @minus_one@ > >> expression FULL; > >> @@ > >> > >> - (get_random_int() & ((FULL) - 1) > >> + prandom_u32_max(FULL) > > > >Ahh, well, okay, this is the example I mentioned above. Only works if > >FULL is saturated. Any clever way to get coccinelle to prove that? Can > >it look at the value of

Re: [PATCH] staging: fbtft: Use ARRAY_SIZE() to get argument count

2022-10-29 Thread Julia Lawall
On Sat, 29 Oct 2022, Deepak R Varma wrote: > On Sat, Oct 29, 2022 at 09:32:50AM +0200, Greg Kroah-Hartman wrote: > > On Fri, Oct 28, 2022 at 07:00:05PM +0530, Deepak R Varma wrote: > > > The ARRAY_SIZE(foo) macro should be preferred over sizeof operator > > > based computation such as sizeof(fo

Re: [PATCH] staging: fbtft: Use ARRAY_SIZE() to get argument count

2022-10-31 Thread Julia Lawall
On Mon, 31 Oct 2022, Deepak R Varma wrote: > On Mon, Oct 31, 2022 at 12:41:40PM +0530, Deepak Varma wrote: > > On Sat, Oct 29, 2022 at 07:34:26PM +0200, Julia Lawall wrote: > > > > > > > > > On Sat, 29 Oct 2022, Deepak R Varma wrote: > > > > >

Re: [PATCH] drm/i915/fbc: Avoid full proxy f_ops for FBC debug attributes

2023-01-04 Thread Julia Lawall
On Tue, 3 Jan 2023, Deepak R Varma wrote: > On Wed, Dec 28, 2022 at 06:18:12AM -0500, Rodrigo Vivi wrote: > > On Tue, Dec 27, 2022 at 11:36:13PM +0530, Deepak R Varma wrote: > > > On Tue, Dec 27, 2022 at 12:13:56PM -0500, Rodrigo Vivi wrote: > > > > On Tue, Dec 27, 2022 at 01:30:53PM +0530, Dee

Re: [PATCH] drm/i915/fbc: Avoid full proxy f_ops for FBC debug attributes

2023-01-05 Thread Julia Lawall
> Hi Julia, thanks for helping here. > > So, my question is why this > > make coccicheck M=drivers/gpu/drm/i915/ MODE=context > COCCI=./scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci > > didn't catch this chunck: > > - debugfs_create_file("i915_fbc_false_color", 0644, parent,

[PATCH 03/26] drm/gud: use array_size

2023-06-23 Thread Julia Lawall
) + array_size(E1, E2) ,...) ) // Signed-off-by: Julia Lawall --- drivers/gpu/drm/gud/gud_pipe.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gud/gud_pipe.c b/drivers/gpu/drm/gud/gud_pipe.c index dc16a92625d4..34df847bd829 100644 --- a

[PATCH 16/26] drm/i915/gvt: use array_size

2023-06-23 Thread Julia Lawall
) + array_size(E1, E2) ,...) ) // Signed-off-by: Julia Lawall --- drivers/gpu/drm/i915/gvt/gtt.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c index 4ec85308379a..df52385ad436 100644

[PATCH 06/26] dma-buf: system_heap: use array_size

2023-06-23 Thread Julia Lawall
) + array_size(e1, e2) ,...) | alloc( - (e1) * (COUNT) + array_size(COUNT, e1) ,...) ) // Signed-off-by: Julia Lawall --- drivers/dma-buf/heaps/system_heap.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/heaps/system_heap.c

[PATCH 20/26] drm/vmwgfx: use array_size

2023-06-23 Thread Julia Lawall
) + array_size(e1, e2) ,...) | alloc( - (e1) * (COUNT) + array_size(COUNT, e1) ,...) ) // Signed-off-by: Julia Lawall --- drivers/gpu/drm/vmwgfx/vmwgfx_devcaps.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vmwgfx

[PATCH 15/26] habanalabs: use array_size

2023-06-23 Thread Julia Lawall
) + array_size(E1, E2) ,...) ) // Signed-off-by: Julia Lawall --- drivers/accel/habanalabs/common/device.c |3 ++- drivers/accel/habanalabs/common/state_dump.c |6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/accel/habanalabs/common

[PATCH 00/26] use array_size

2023-06-23 Thread Julia Lawall
Use array_size to protect against multiplication overflows. This follows up on the following patches by Kees Cook from 2018. 42bc47b35320 ("treewide: Use array_size() in vmalloc()") fad953ce0b22 ("treewide: Use array_size() in vzalloc()") The changes were done using the following Coccinelle sema

[PATCH v2 00/24] use vmalloc_array and vcalloc

2023-06-27 Thread Julia Lawall
The functions vmalloc_array and vcalloc were introduced in commit a8749a35c399 ("mm: vmalloc: introduce array allocation functions") but are not used much yet. This series introduces uses of these functions, to protect against multiplication overflows. The changes were done using the following

[PATCH v2 15/24] habanalabs: use vmalloc_array and vcalloc

2023-06-27 Thread Julia Lawall
t:ocaml(alloc) { rename alloc }; @@ ( alloc(x1*x2*x3) | alloc(C1 * C2) | alloc((sizeof(t)) * (COUNT), ...) | - alloc((e1) * (e2)) + realloc(e1, e2) | - alloc((e1) * (COUNT)) + realloc(COUNT, e1) | - alloc((E1) * (E2)) + realloc(E1, E2) ) // Signed-o

[PATCH v2 06/24] dma-buf: system_heap: use vmalloc_array and vcalloc

2023-06-27 Thread Julia Lawall
t:ocaml(alloc) { rename alloc }; @@ ( alloc(x1*x2*x3) | alloc(C1 * C2) | alloc((sizeof(t)) * (COUNT), ...) | - alloc((e1) * (e2)) + realloc(e1, e2) | - alloc((e1) * (COUNT)) + realloc(COUNT, e1) | - alloc((E1) * (E2)) + realloc(E1, E2) ) // Signed-o

[PATCH v2 03/24] drm/gud: use vmalloc_array and vcalloc

2023-06-27 Thread Julia Lawall
t:ocaml(alloc) { rename alloc }; @@ ( alloc(x1*x2*x3) | alloc(C1 * C2) | alloc((sizeof(t)) * (COUNT), ...) | - alloc((e1) * (e2)) + realloc(e1, e2) | - alloc((e1) * (COUNT)) + realloc(COUNT, e1) | - alloc((E1) * (E2)) + realloc(E1, E2) ) // Signed-o

[PATCH v2 16/24] drm/i915/gvt: use vmalloc_array and vcalloc

2023-06-27 Thread Julia Lawall
t:ocaml(alloc) { rename alloc }; @@ ( alloc(x1*x2*x3) | alloc(C1 * C2) | alloc((sizeof(t)) * (COUNT), ...) | - alloc((e1) * (e2)) + realloc(e1, e2) | - alloc((e1) * (COUNT)) + realloc(COUNT, e1) | - alloc((E1) * (E2)) + realloc(E1, E2) ) // Signed-o

Re: [PATCH 20/26] drm/vmwgfx: use array_size

2023-06-27 Thread Julia Lawall
On Fri, 23 Jun 2023, Julia Lawall wrote: > Use array_size to protect against multiplication overflows. > > The changes were done using the following Coccinelle semantic patch: > > // > @@ > size_t e1,e2; > expression COUNT; > identifier alloc = {vmallo

Re: [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-12 Thread Julia Lawall
On Wed, 12 Jul 2023, Uwe Kleine-König wrote: > On Wed, Jul 12, 2023 at 12:46:33PM +0200, Christian König wrote: > > Am 12.07.23 um 11:46 schrieb Uwe Kleine-König: > > > Hello, > > > > > > while I debugged an issue in the imx-lcdc driver I was constantly > > > irritated about struct drm_device po

[PATCH 15/15] drm/omap: improve function-level documentation

2016-10-01 Thread Julia Lawall
Use the names of the corresponding functions. Issue detected using Coccinelle (http://coccinelle.lip6.fr/) Signed-off-by: Julia Lawall --- drivers/gpu/drm/omapdrm/omap_drv.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b

[PATCH 00/15] improve function-level documentation

2016-10-01 Thread Julia Lawall
These patches fix cases where the documentation above a function definition is not consistent with the function header. Issues are detected using the semantic patch below (http://coccinelle.lip6.fr/). Basically, the semantic patch parses a file to find comments, then matches each function header,

[PATCH 05/15] dma-buf/sw_sync: improve function-level documentation

2016-10-01 Thread Julia Lawall
Adjust the documentation to use the names that appear in the function parameter list. Issue detected using Coccinelle (http://coccinelle.lip6.fr/) Signed-off-by: Julia Lawall --- drivers/dma-buf/sw_sync.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma

[PATCH 09/15] gma500: improve function-level documentation

2016-10-01 Thread Julia Lawall
Delete a reference to a variable that has never been used by the function in the first case, and rename a variable to that of the corresponding parameter name in the second case. Issue detected using Coccinelle (http://coccinelle.lip6.fr/) Signed-off-by: Julia Lawall --- drivers/gpu/drm

[PATCH 00/15] improve function-level documentation

2016-10-01 Thread Julia Lawall
On Sat, 1 Oct 2016, Joe Perches wrote: > On Sat, 2016-10-01 at 21:46 +0200, Julia Lawall wrote: > > These patches fix cases where the documentation above a function definition > > is not consistent with the function header. Issues are detected using the > > seman

[PATCH 00/15] improve function-level documentation

2016-10-05 Thread Julia Lawall
parameters etc. But the set of patches is not exhaustive with respect to the remaining interesting ones either. julia > > Jani, can you pls digg out these patches? Can't find them right now ... > -Daniel > > > On Sat, Oct 1, 2016 at 9:46 PM, Julia Lawall wrote: > >

kernel-doc-rst-lint (was: Re: [PATCH 00/15] improve function-level documentation)

2016-10-05 Thread Julia Lawall
On Wed, 5 Oct 2016, Jani Nikula wrote: > On Wed, 05 Oct 2016, Daniel Vetter wrote: > > Jani Nikula has a patch with a scrip to make the one kernel-doc parser > > into a lint/checker pass over the entire kernel. I think that'd would > > be more robust instead of trying to approximate the real ke

[drm-intel:drm-intel-nightly 1066/1091] drivers/gpu/drm/drm_plane.c:933:48-49: ERROR: reference preceded by free on line 926 (fwd)

2017-03-29 Thread Julia Lawall
The kfree on line 926 would only be a problem for the references to e on lines 933 and 937 if the return value of drm_event_reserve_init can be -EDEADLK. julia -- Forwarded message -- Date: Thu, 30 Mar 2017 00:48:54 +0800 From: kbuild test robot To: kbu...@01.org Cc: Julia

[radeon-alex:drm-next-4.12 212/315] drivers/gpu/drm/amd/amdgpu/../powerplay/amd_powerplay.c:895:1-11: second lock on line 897 (fwd)

2017-03-31 Thread Julia Lawall
Hello, It looks pretty clear that an unlock was intended. julia -- Forwarded message -- Date: Fri, 31 Mar 2017 19:29:47 +0800 From: kbuild test robot To: kbu...@01.org Cc: Julia Lawall Subject: [radeon-alex:drm-next-4.12 212/315] drivers/gpu/drm/amd/amdgpu/../powerplay

Re: [PATCH 04/22] target: Make use of the new sg_map function at 16 call sites (fwd)

2017-04-14 Thread Julia Lawall
It looks like &udev->cmdr_lock should be released at line 512 if it has not been released otherwise. The lock was taken at line 438. julia -- Forwarded message -- Date: Fri, 14 Apr 2017 22:21:44 +0800 From: kbuild test robot To: kbu...@01.org Cc: Julia Lawall Subj

[PATCH] drm/amd/dc: fix semicolon.cocci warnings

2017-02-13 Thread Julia Lawall
Remove unneeded semicolons. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Harry Wentland Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.9 head: 79d2de1bcb650296adff1cb08bfbf1501a6e6e14 commit

[PATCH] drm/amd/dc: fix semicolon.cocci warnings

2017-02-13 Thread Julia Lawall
Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Harry Wentland Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.9 head: 79d2de1bcb650296adff1cb08bfbf1501a6e6e14 commit

[PATCH] drm/amd/dc: hw_sequencer: fix semicolon.cocci warnings

2017-02-13 Thread Julia Lawall
Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Harry Wentland Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.9 head: 79d2de1bcb650296adff1cb08bfbf1501a6e6e14 commit

[PATCH v2] drm/amd/dc: resource: fix semicolon.cocci warnings (fwd)

2017-02-13 Thread Julia Lawall
Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Harry Wentland Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- v2: make subject line unique tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.9 head

[PATCH v2] drm/amd/dc: dm_types: fix semicolon.cocci warnings

2017-02-13 Thread Julia Lawall
Remove unneeded semicolons. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Harry Wentland Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- v2: make subject line unique tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.9 head

[radeon-alex:drm-next-4.10-wip 26/45] drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c:1613:24-48: duplicated argument to & or |

2016-11-09 Thread Julia Lawall
The constants on lines 1613 and 1615 are the same. julia On Wed, 9 Nov 2016, kbuild test robot wrote: > > tree: git://people.freedesktop.org/~agd5f/linux.git drm-next-4.10-wip > head: a5178d59d93d8b04fed1de3602cd448de9f1f995 > commit: 94f2d9bf6f3c0c192bc864ba1530d0f40afe9984 [26/45] drm/amd/

[PATCH] drm/rockchip: return ERR_PTR instead of NULL

2016-11-10 Thread Julia Lawall
: Julia Lawall --- drivers/gpu/drm/rockchip/rockchip_drm_fb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_fb.c b/drivers/gpu/drm/rockchip/rockchip_drm_fb.c index 0f6eda0..01e11bf 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_fb.c

[PATCH] drm/sun4i: constify component_ops structures

2016-11-12 Thread Julia Lawall
filename 5274228 855101586 sun4i_backend.o 6401228 8663719ed sun4i_tcon.o 3708360 84076 fec sun4i_tv.o 1676100 01776 6f0 sun6i_drc.o Signed-off-by: Julia Lawall --- drivers/gpu/d

  1   2   3   4   >