summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorNam Cao <namcao@linutronix.de>2025-07-27 19:31:12 +0200
committerSteven Rostedt (Google) <rostedt@goodmis.org>2025-07-28 10:39:34 -0400
commite82aea50fe0600da176b2e50a6213f6057b719f9 (patch)
tree4fef38410d24939a55159e2bf40fe2bcf3d3a42e /tools/perf/scripts/python/export-to-sqlite.py
parentb8a7fba39cd49eab343bfe561d85bb5dc57541af (diff)
downloadkernel-e82aea50fe0600da176b2e50a6213f6057b719f9.tar.gz
rv: Fix wrong type cast in monitors_show()
Argument 'p' of monitors_show() is not a pointer to struct rv_monitor, it is actually a pointer to the list_head inside struct rv_monitor. Therefore it is wrong to cast 'p' to struct rv_monitor *. This wrong type cast has been there since the beginning. But it still worked because the list_head was the first field in struct rv_monitor_def. This is no longer true since commit 24cbfe18d55a ("rv: Merge struct rv_monitor_def into struct rv_monitor") moved the list_head, and this wrong type cast became a functional problem. Properly use container_of() instead. Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/35e49e97696007919ceacf73796487a2e15a3d02.1753625621.git.namcao@linutronix.de Fixes: 24cbfe18d55a ("rv: Merge struct rv_monitor_def into struct rv_monitor") Signed-off-by: Nam Cao <namcao@linutronix.de> Reviewed-by: Gabriele Monaco <gmonaco@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
-09-19 00:15:19 -0300'>2009-09-19V4L/DVB (12944): SAA7164: Minor i2c assignment cleanupSteven Toth 2009-09-19V4L/DVB (12943): SAA7164: Add a warning about addr usageSteven Toth 2009-09-19V4L/DVB (12942): SAA7164: HVR2250 changes related to attach time tuner config...Steven Toth 2009-09-19V4L/DVB (12941): SAA7164: Removed spurious debugSteven Toth 2009-09-19V4L/DVB (12940): SAA7164: IRQ / message timeout related changeSteven Toth 2009-09-19V4L/DVB (12939): SAA7164: Removed a duplicate call to address any PCI quirks.Steven Toth 2009-09-19V4L/DVB (12938): SAA7164: Increase the firmware command timeout to avoid firm...Steven Toth 2009-09-19V4L/DVB (12937): SAA7164: Cleanup a printkSteven Toth 2009-09-19V4L/DVB (12936): SAA7164: Added waitsecs module parameterSteven Toth 2009-09-19V4L/DVB (12935): SAA7164: Ensure we specify I/F's for all bandwidthsSteven Toth 2009-09-19V4L/DVB (12934): SAA7164: Fix i2c eeprom read errors during load (some boards).Steven Toth 2009-09-19V4L/DVB (12933): SAA7164: Fix IRQ related system hang when firmware is not fo...Steven Toth 2009-09-19V4L/DVB (12932): SAA7164: Fixed the missing eeprom parse on a specific board.Steven Toth 2009-09-19V4L/DVB (12931): SAA7164: Fix the 88021 definition to work with production bo...Steven Toth 2009-09-19V4L/DVB (12930): SAA7164: Removed spurious I2C errors during driver load with...Steven Toth 2009-09-19V4L/DVB (12929): SAA7164: OOPS avoidance during interrupt handlingSteven Toth 2009-09-19V4L/DVB (12928): SAA7164: Increase firmware load toleranceSteven Toth 2009-09-19V4L/DVB (12927): SAA7164: Remove volatiles for PCI writes (coding style viola...Steven Toth 2009-09-19V4L/DVB (12926): SAA7164: Email address changeSteven Toth 2009-09-19V4L/DVB (12925): SAA7164: Adjust I/F's to the TDA10048 enabling DVB-T lockSteven Toth 2009-09-19V4L/DVB (12924): SAA7164: Fix some 32/64bit compile time warningsSteven Toth 2009-09-19V4L/DVB (12923): SAA7164: Add support for the NXP SAA7164 siliconSteven Toth