* [chrome-os:chromeos-6.6 16/16] drivers/gpu/drm/bridge/analogix/anx7625.c:2789:24: warning: variable 'dev' set but not used
@ 2025-03-25 4:46 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-25 4:46 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.6
head: 699322c13fb8c58442ef1b7956a600d27be2a27a
commit: 699322c13fb8c58442ef1b7956a600d27be2a27a [16/16] CHROMIUM: drm/bridge: anx7625: Fix bandwidth mismatch issue
config: x86_64-buildonly-randconfig-001-20250325 (https://download.01.org/0day-ci/archive/20250325/202503251239.pjXlbVph-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250325/202503251239.pjXlbVph-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503251239.pjXlbVph-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/gpu/drm/bridge/analogix/anx7625.c: In function 'lt_check_work_func':
>> drivers/gpu/drm/bridge/analogix/anx7625.c:2789:24: warning: variable 'dev' set but not used [-Wunused-but-set-variable]
2789 | struct device *dev;
| ^~~
vim +/dev +2789 drivers/gpu/drm/bridge/analogix/anx7625.c
2784
2785 static void lt_check_work_func(struct work_struct *work)
2786 {
2787 struct delayed_work *dwork;
2788 struct anx7625_data *ctx;
> 2789 struct device *dev;
2790 int ret;
2791 u8 lanes, rate;
2792 u32 downstream_max_pixel_clock;
2793 u8 data[2];
2794 struct drm_connector *conn;
2795
2796 dwork = to_delayed_work(work);
2797 ctx = container_of(dwork, struct anx7625_data, lt_check_work);
2798 dev = ctx->dev;
2799
2800 if (!ctx->connector)
2801 return;
2802
2803 conn = ctx->connector;
2804
2805 ret = anx7625_reg_block_read(ctx, ctx->i2c.tx_p0_client, 0xa0, 2, data);
2806 if (ret < 0)
2807 return;
2808
2809 lanes = data[1] & 0x1F;
2810 rate = data[0];
2811 /*
2812 * Lane rate equals 0x19 and lane count equals 1
2813 * indicate OCM failed to do link training, then just
2814 * reset lane count and lane speed to 0.
2815 */
2816 if (lanes == 1 && rate == 0x19) {
2817 lanes = 0;
2818 rate = 0;
2819 }
2820
2821 downstream_max_pixel_clock = anx7625_get_pixel_clock(lanes, rate);
2822
2823 if (downstream_max_pixel_clock > ctx->dt.pixelclock.min)
2824 return;
2825
2826 /* Grab the locks before changing connector property */
2827 mutex_lock(&conn->dev->mode_config.mutex);
2828 /*
2829 * Set connector link status to BAD and send a Uevent to notify
2830 * userspace to do a modeset.
2831 */
2832 drm_connector_set_link_status_property(conn, DRM_MODE_LINK_STATUS_BAD);
2833 mutex_unlock(&conn->dev->mode_config.mutex);
2834 /* Send Hotplug uevent so userspace can reprobe */
2835 drm_kms_helper_hotplug_event(ctx->bridge.dev);
2836 }
2837
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-25 4:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-25 4:46 [chrome-os:chromeos-6.6 16/16] drivers/gpu/drm/bridge/analogix/anx7625.c:2789:24: warning: variable 'dev' set but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.