summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYilin Chen <1479826151@qq.com>2026-07-07 16:33:33 +0000
committerAlice Ryhl <aliceryhl@google.com>2026-07-13 08:18:37 +0000
commit9a80ddbf66e4fb549fe1e94858da659619333dda (patch)
treef4748fa2cf30ee89ee19d85278b9ab76ab5c3231 /tools/perf/scripts/python
parentaea0aeeff1502c8dfffc52fc1f3db706388c948c (diff)
rust: drm: fix GEM object pointer safety docs
IntoGEMObject::from_raw() receives a pointer to struct drm_gem_object, not a pointer to Self. The previous documentation used Self even though the function argument is the embedded GEM object pointer. However, the pointer must not be any arbitrary valid drm_gem_object. The implementations recover Self with container_of(), so the GEM object must be embedded in a valid Self instance. This patch documents that requirement explicitly. Assisted-by: Codex:GPT-5 Signed-off-by: Yilin Chen <1479826151@qq.com> Link: https://patch.msgid.link/tencent_4426892E62B77DEA2AE898E899A871940005@qq.com Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions