From: Ian Rogers <irogers@google.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>,
Hans Verkuil <hverkuil@kernel.org>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Nathan Chancellor <nathan@kernel.org>,
linux-media@vger.kernel.org, llvm@lists.linux.dev,
linux-kernel@vger.kernel.org, Ian Rogers <irogers@google.com>
Subject: [PATCH 0/5] media: Set missing .owner = THIS_MODULE in V4L2 and D-PHY ops
Date: Thu, 3 Dec 2026 09:15:42 -0800 [thread overview]
Message-ID: <20261203171549.438355-1-irogers@google.com> (raw)
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
next reply other threads:[~2026-12-03 17:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 17:15 Ian Rogers [this message]
2026-12-03 17:15 ` [PATCH 1/5] media: amlogic: c3-isp: Set .owner = THIS_MODULE in v4l2_file_operations Ian Rogers
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203171549.438355-1-irogers@google.com \
--to=irogers@google.com \
--cc=hverkuil@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mchehab@kernel.org \
--cc=nathan@kernel.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox