mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] media: Set missing .owner = THIS_MODULE in V4L2 and D-PHY ops
@ 2026-12-03 17:15 Ian Rogers
  2026-12-03 17:15 ` [PATCH 1/5] media: amlogic: c3-isp: Set .owner = THIS_MODULE in v4l2_file_operations Ian Rogers
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Ian Rogers @ 2026-12-03 17:15 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Hans Verkuil, Sakari Ailus, Laurent Pinchart
  Cc: Nathan Chancellor, linux-media, llvm, linux-kernel, Ian Rogers

Five modular media drivers omit .owner = THIS_MODULE in their const
struct v4l2_file_operations or struct phy_ops definitions, leaving the
module owner NULL for chrdev_open() or phy_get() reference counting.

Split per driver to simplify review and stable backporting.

Tooling note: Found using Clang's require_explicit_initialization
attribute; an AI coding assistant helped audit call sites, verify Fixes
commits, and draft the changelogs. All affected files were build-tested
as modules (-DMODULE) with LLVM=1.

Ian Rogers (5):
  media: amlogic: c3-isp: Set .owner = THIS_MODULE in
    v4l2_file_operations
  media: rockchip: rkcif: Set .owner = THIS_MODULE in
    v4l2_file_operations
  media: rkisp1: Set .owner = THIS_MODULE in v4l2_file_operations
  staging: media: ipu3: Set .owner = THIS_MODULE in v4l2_file_operations
  media: sunxi: a83t-mipi-csi2: Set .owner = THIS_MODULE in phy_ops

 drivers/media/platform/amlogic/c3/isp/c3-isp-capture.c         | 1 +
 drivers/media/platform/amlogic/c3/isp/c3-isp-params.c          | 1 +
 drivers/media/platform/amlogic/c3/isp/c3-isp-stats.c           | 1 +
 drivers/media/platform/rockchip/rkcif/rkcif-stream.c           | 1 +
 drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c        | 1 +
 drivers/media/platform/rockchip/rkisp1/rkisp1-params.c         | 3 ++-
 drivers/media/platform/rockchip/rkisp1/rkisp1-stats.c          | 3 ++-
 .../platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_dphy.c      | 1 +
 drivers/staging/media/ipu3/ipu3-v4l2.c                         | 1 +
 9 files changed, 11 insertions(+), 2 deletions(-)


base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
-- 
2.56.1.839.g22a8290db9-goog


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

end of thread, other threads:[~2026-12-04  1:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-03 17:15 [PATCH 0/5] media: Set missing .owner = THIS_MODULE in V4L2 and D-PHY ops Ian Rogers
2026-12-03 17:15 ` [PATCH 1/5] media: amlogic: c3-isp: Set .owner = THIS_MODULE in v4l2_file_operations Ian Rogers
2026-12-04  1:57   ` Laurent Pinchart
2026-12-03 17:15 ` [PATCH 2/5] media: rockchip: rkcif: " Ian Rogers
2026-12-03 17:15 ` [PATCH 3/5] media: rkisp1: " Ian Rogers
2026-12-03 17:15 ` [PATCH 4/5] staging: media: ipu3: " Ian Rogers
2026-12-03 17:15 ` [PATCH 5/5] media: sunxi: a83t-mipi-csi2: Set .owner = THIS_MODULE in phy_ops Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®