Re: [PATCH v3] media: verisilicon: Fix kernel panic due to __initconst misuse

From: Ming Qian(OSS)

Date: Thu Mar 05 2026 - 21:48:50 EST


Hi Fabio,

On 3/6/2026 10:38 AM, Fabio Estevam wrote:
On Thu, Mar 5, 2026 at 11:26 PM <ming.qian@xxxxxxxxxxx> wrote:

- { /* sentinel */ }
+ { /* sentinel */ },

Drop this change. It is unrelated.

But without this, the checkpatch.pl will report error:

ERROR: missing sentinel in ID array
#50: FILE: drivers/media/platform/verisilicon/imx8m_vpu_hw.c:346:
+static const struct of_device_id imx8mq_vpu_shared_resources[] = {
{ .compatible = "XXXXXXXXXXXXXXXXX", },
{ .compatible = "XXXXXXXXXXXXXXXXX", },
{ }


total: 1 errors, 0 warnings, 8 lines checked
====checkpatch ERROR, please correct it====

I've found two methods to fix this error.
- Add commas
- Remove "/* sentinel */"

Regards,
Ming