From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [chrome-os:chromeos-6.6 16/16] drivers/gpu/drm/bridge/analogix/anx7625.c:2789:24: warning: variable 'dev' set but not used
Date: Tue, 25 Mar 2025 12:46:53 +0800 [thread overview]
Message-ID: <202503251239.pjXlbVph-lkp@intel.com> (raw)
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
reply other threads:[~2025-03-25 4:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202503251239.pjXlbVph-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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 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.