Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Dave Airlie <airlied@redhat.com>
Subject: [linux-next:master 4174/4394] drivers/gpu/drm/bridge/microchip-lvds.c:153:55: error: incompatible pointer types passing 'struct drm_atomic_state *' to parameter of type 'const struct drm_atomic_commit *'
Date: Tue, 12 May 2026 12:31:12 +0800	[thread overview]
Message-ID: <202605121203.Pv3sG5BJ-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e98d21c170b01ddef366f023bbfcf6b31509fa83
commit: f96538285cfdbb3acf5e3356e0bb88c38815790b [4174/4394] Merge tag 'drm-misc-next-2026-05-07' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-next
config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20260512/202605121203.Pv3sG5BJ-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260512/202605121203.Pv3sG5BJ-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/202605121203.Pv3sG5BJ-lkp@intel.com/

Note: the linux-next/master HEAD e98d21c170b01ddef366f023bbfcf6b31509fa83 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   drivers/gpu/drm/bridge/microchip-lvds.c:132:16: warning: declaration of 'struct drm_atomic_state' will not be visible outside of this function [-Wvisibility]
     132 |                                     struct drm_atomic_state *state)
         |                                            ^
>> drivers/gpu/drm/bridge/microchip-lvds.c:153:55: error: incompatible pointer types passing 'struct drm_atomic_state *' to parameter of type 'const struct drm_atomic_commit *' [-Wincompatible-pointer-types]
     153 |         connector = drm_atomic_get_new_connector_for_encoder(state, bridge->encoder);
         |                                                              ^~~~~
   include/drm/drm_atomic.h:758:74: note: passing argument to parameter 'state' here
     758 | drm_atomic_get_new_connector_for_encoder(const struct drm_atomic_commit *state,
         |                                                                          ^
   drivers/gpu/drm/bridge/microchip-lvds.c:161:17: warning: declaration of 'struct drm_atomic_state' will not be visible outside of this function [-Wvisibility]
     161 |                                      struct drm_atomic_state *state)
         |                                             ^
   drivers/gpu/drm/bridge/microchip-lvds.c:171:19: error: incompatible function pointer types initializing 'void (*)(struct drm_bridge *, struct drm_atomic_commit *)' with an expression of type 'void (struct drm_bridge *, struct drm_atomic_state *)' [-Wincompatible-function-pointer-types]
     171 |         .atomic_enable = mchp_lvds_atomic_enable,
         |                          ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/bridge/microchip-lvds.c:172:20: error: incompatible function pointer types initializing 'void (*)(struct drm_bridge *, struct drm_atomic_commit *)' with an expression of type 'void (struct drm_bridge *, struct drm_atomic_state *)' [-Wincompatible-function-pointer-types]
     172 |         .atomic_disable = mchp_lvds_atomic_disable,
         |                           ^~~~~~~~~~~~~~~~~~~~~~~~
   2 warnings and 3 errors generated.


vim +153 drivers/gpu/drm/bridge/microchip-lvds.c

179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  130  
c4cbe5d9e87d22 Dharma Balasubiramani 2025-06-25  131  static void mchp_lvds_atomic_enable(struct drm_bridge *bridge,
c4cbe5d9e87d22 Dharma Balasubiramani 2025-06-25 @132  				    struct drm_atomic_state *state)
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  133  {
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  134  	struct mchp_lvds *lvds = bridge_to_lvds(bridge);
57f68ed1f08cd1 Dharma Balasubiramani 2025-06-25  135  	struct drm_connector *connector;
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  136  	int ret;
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  137  
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  138  	ret = clk_prepare_enable(lvds->pclk);
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  139  	if (ret < 0) {
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  140  		dev_err(lvds->dev, "failed to enable lvds pclk %d\n", ret);
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  141  		return;
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  142  	}
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  143  
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  144  	ret = pm_runtime_get_sync(lvds->dev);
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  145  	if (ret < 0) {
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  146  		dev_err(lvds->dev, "failed to get pm runtime: %d\n", ret);
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  147  		return;
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  148  	}
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  149  
57f68ed1f08cd1 Dharma Balasubiramani 2025-06-25  150  	/* default to jeida-24 */
57f68ed1f08cd1 Dharma Balasubiramani 2025-06-25  151  	u32 bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA;
57f68ed1f08cd1 Dharma Balasubiramani 2025-06-25  152  
57f68ed1f08cd1 Dharma Balasubiramani 2025-06-25 @153  	connector = drm_atomic_get_new_connector_for_encoder(state, bridge->encoder);
57f68ed1f08cd1 Dharma Balasubiramani 2025-06-25  154  	if (connector && connector->display_info.num_bus_formats)
57f68ed1f08cd1 Dharma Balasubiramani 2025-06-25  155  		bus_format = connector->display_info.bus_formats[0];
57f68ed1f08cd1 Dharma Balasubiramani 2025-06-25  156  
57f68ed1f08cd1 Dharma Balasubiramani 2025-06-25  157  	lvds_serialiser_on(lvds, bus_format);
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  158  }
179b0769fc5fc1 Dharma Balasubiramani 2024-04-21  159  

:::::: The code at line 153 was first introduced by commit
:::::: 57f68ed1f08cd10f51a9091645fd5dfcc369a885 drm/bridge: microchip-lvds: fix bus format mismatch with VESA displays

:::::: TO: Dharma Balasubiramani <dharma.b@microchip.com>
:::::: CC: Manikandan Muralidharan <manikandan.m@microchip.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-05-12  4:31 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=202605121203.Pv3sG5BJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=airlied@redhat.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tomi.valkeinen@ideasonboard.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