linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/pl111: add in missing sentinel to a of_device_id array
@ 2018-08-21 10:54 Colin King
  2018-08-23 10:55 ` Linus Walleij
  2018-08-23 11:16 ` zhong jiang
  0 siblings, 2 replies; 4+ messages in thread
From: Colin King @ 2018-08-21 10:54 UTC (permalink / raw)
  To: Linus Walleij, Eric Anholt, David Airlie, dri-devel
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Array vexpress_muxfpga_match is missing an end of array sentinel,
add it.

Detected by Coccinelle: ("vexpress_muxfpga_match is not NULL
terminated at line")

Fixes: ca454bd42dc2 ("drm/pl111: Support the Versatile Express")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/gpu/drm/pl111/pl111_vexpress.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/pl111/pl111_vexpress.c b/drivers/gpu/drm/pl111/pl111_vexpress.c
index a534b225e31b..48e2afcd4798 100644
--- a/drivers/gpu/drm/pl111/pl111_vexpress.c
+++ b/drivers/gpu/drm/pl111/pl111_vexpress.c
@@ -111,7 +111,8 @@ static int vexpress_muxfpga_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id vexpress_muxfpga_match[] = {
-	{ .compatible = "arm,vexpress-muxfpga", }
+	{ .compatible = "arm,vexpress-muxfpga", },
+	{ /* sentinel */ }
 };
 
 static struct platform_driver vexpress_muxfpga_driver = {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/pl111: add in missing sentinel to a of_device_id array
  2018-08-21 10:54 [PATCH] drm/pl111: add in missing sentinel to a of_device_id array Colin King
@ 2018-08-23 10:55 ` Linus Walleij
  2018-08-23 11:16 ` zhong jiang
  1 sibling, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2018-08-23 10:55 UTC (permalink / raw)
  To: Colin King
  Cc: Eric Anholt, Dave Airlie, open list:DRM PANEL DRIVERS,
	kernel-janitors, linux-kernel

On Tue, Aug 21, 2018 at 12:54 PM Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Array vexpress_muxfpga_match is missing an end of array sentinel,
> add it.
>
> Detected by Coccinelle: ("vexpress_muxfpga_match is not NULL
> terminated at line")
>
> Fixes: ca454bd42dc2 ("drm/pl111: Support the Versatile Express")
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/pl111: add in missing sentinel to a of_device_id array
  2018-08-21 10:54 [PATCH] drm/pl111: add in missing sentinel to a of_device_id array Colin King
  2018-08-23 10:55 ` Linus Walleij
@ 2018-08-23 11:16 ` zhong jiang
  2018-08-28 20:46   ` Linus Walleij
  1 sibling, 1 reply; 4+ messages in thread
From: zhong jiang @ 2018-08-23 11:16 UTC (permalink / raw)
  To: Colin King
  Cc: Linus Walleij, Eric Anholt, David Airlie, dri-devel,
	kernel-janitors, linux-kernel

Hi,  Colin

I has posted the same patch about a month ago. but it seems to be ignored.:-(

https://lore.kernel.org/patchwork/patch/971652/

Thanks,
zhong jiang

On 2018/8/21 18:54, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Array vexpress_muxfpga_match is missing an end of array sentinel,
> add it.
>
> Detected by Coccinelle: ("vexpress_muxfpga_match is not NULL
> terminated at line")
>
> Fixes: ca454bd42dc2 ("drm/pl111: Support the Versatile Express")
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  drivers/gpu/drm/pl111/pl111_vexpress.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/pl111/pl111_vexpress.c b/drivers/gpu/drm/pl111/pl111_vexpress.c
> index a534b225e31b..48e2afcd4798 100644
> --- a/drivers/gpu/drm/pl111/pl111_vexpress.c
> +++ b/drivers/gpu/drm/pl111/pl111_vexpress.c
> @@ -111,7 +111,8 @@ static int vexpress_muxfpga_probe(struct platform_device *pdev)
>  }
>  
>  static const struct of_device_id vexpress_muxfpga_match[] = {
> -	{ .compatible = "arm,vexpress-muxfpga", }
> +	{ .compatible = "arm,vexpress-muxfpga", },
> +	{ /* sentinel */ }
>  };
>  
>  static struct platform_driver vexpress_muxfpga_driver = {



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/pl111: add in missing sentinel to a of_device_id array
  2018-08-23 11:16 ` zhong jiang
@ 2018-08-28 20:46   ` Linus Walleij
  0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2018-08-28 20:46 UTC (permalink / raw)
  To: zhongjiang
  Cc: Colin King, Eric Anholt, Dave Airlie,
	open list:DRM PANEL DRIVERS, kernel-janitors, linux-kernel

On Thu, Aug 23, 2018 at 1:16 PM zhong jiang <zhongjiang@huawei.com> wrote:

> I has posted the same patch about a month ago. but it seems to be ignored.:-(
>
> https://lore.kernel.org/patchwork/patch/971652/

I applied your patch and pushed it.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-28 20:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-21 10:54 [PATCH] drm/pl111: add in missing sentinel to a of_device_id array Colin King
2018-08-23 10:55 ` Linus Walleij
2018-08-23 11:16 ` zhong jiang
2018-08-28 20:46   ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).