Checkpatch false positive
From: Dave Stevenson
Date: Thu Oct 29 2026 - 11:51:47 EST
Hi Andy and Joe.
Checkpatch is giving the error
ERROR: missing sentinel in ID array
#1455: FILE: drivers/media/i2c/sony-starvis2.c:1450:
+static const struct of_device_id starvis2_of_match[] = {
{ .compatible = "XXXXXXXXXXXXXXXX", .data = &imx678_aamr_info },
{ .compatible = "XXXXXXXXXXXXXXXX", .data = &imx678_aaqr_info },
on patch https://lore.kernel.org/linux-media/20261022-media-starvis2-v6-1-374343f55fd3@xxxxxxxxxxxxxxx/
The sentinel is there, but just not in that hunk that renames the
struct of_device_id. That counts as a false positive to me, hence I'm
reporting it to you as requested.
Thanks
Dave