[PATCH v3] media: verisilicon: Fix kernel panic due to __initconst misuse
Ming Qian(OSS)
ming.qian at oss.nxp.com
Thu Mar 5 18:47:02 PST 2026
Hi Fabio,
On 3/6/2026 10:38 AM, Fabio Estevam wrote:
> On Thu, Mar 5, 2026 at 11:26 PM <ming.qian at oss.nxp.com> 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
More information about the linux-arm-kernel
mailing list