mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/gpu/drm/bridge/tda998x_drv.c:1296:24: sparse: sparse: Using plain integer as NULL pointer
@ 2026-04-17 14:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-17 14:54 UTC (permalink / raw)
  To: Kory Maincent (TI.com); +Cc: oe-kbuild-all, linux-kernel, Luca Ceresoli

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   43cfbdda5af60ffc6272a7b8c5c37d1d0a181ca9
commit: c76a8be4feecebbb39095e3c012b67e0f939543d drm/bridge: tda998x: Add support for DRM_BRIDGE_ATTACH_NO_CONNECTOR
date:   9 weeks ago
config: openrisc-randconfig-r121-20260417 (https://download.01.org/0day-ci/archive/20260417/202604172257.Imo6GOH9-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 11.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260417/202604172257.Imo6GOH9-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
| Fixes: c76a8be4feec ("drm/bridge: tda998x: Add support for DRM_BRIDGE_ATTACH_NO_CONNECTOR")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604172257.Imo6GOH9-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/bridge/tda998x_drv.c:1296:24: sparse: sparse: Using plain integer as NULL pointer
   drivers/gpu/drm/bridge/tda998x_drv.c:1784:50: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] * @@
   drivers/gpu/drm/bridge/tda998x_drv.c:1784:50: sparse:     expected restricted __be32 const [usertype] *p
   drivers/gpu/drm/bridge/tda998x_drv.c:1784:50: sparse:     got unsigned int const [usertype] *
   drivers/gpu/drm/bridge/tda998x_drv.c:1785:52: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] * @@
   drivers/gpu/drm/bridge/tda998x_drv.c:1785:52: sparse:     expected restricted __be32 const [usertype] *p
   drivers/gpu/drm/bridge/tda998x_drv.c:1785:52: sparse:     got unsigned int const [usertype] *

vim +1296 drivers/gpu/drm/bridge/tda998x_drv.c

25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1284  
c76a8be4feecebb drivers/gpu/drm/bridge/tda998x_drv.c Kory Maincent (TI.com  2026-01-23  1285) static const struct drm_edid *tda998x_edid_read(struct tda998x_priv *priv,
c76a8be4feecebb drivers/gpu/drm/bridge/tda998x_drv.c Kory Maincent (TI.com  2026-01-23  1286) 						struct drm_connector *connector)
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1287  {
78e90e003b96efa drivers/gpu/drm/i2c/tda998x_drv.c    Jani Nikula            2024-05-10  1288  	const struct drm_edid *drm_edid;
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1289  
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1290  	/*
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1291  	 * If we get killed while waiting for the HPD timeout, return
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1292  	 * no modes found: we are not in a restartable path, so we
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1293  	 * can't handle signals gracefully.
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1294  	 */
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1295  	if (tda998x_edid_delay_wait(priv))
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23 @1296  		return 0;
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1297  
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1298  	if (priv->rev == TDA19988)
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1299  		reg_clear(priv, REG_TX4, TX4_PD_RAM);
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1300  
78e90e003b96efa drivers/gpu/drm/i2c/tda998x_drv.c    Jani Nikula            2024-05-10  1301  	drm_edid = drm_edid_read_custom(connector, read_edid_block, priv);
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1302  
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1303  	if (priv->rev == TDA19988)
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1304  		reg_set(priv, REG_TX4, TX4_PD_RAM);
25576733ec6e051 drivers/gpu/drm/i2c/tda998x_drv.c    Russell King           2016-10-23  1305  
c76a8be4feecebb drivers/gpu/drm/bridge/tda998x_drv.c Kory Maincent (TI.com  2026-01-23  1306) 	return drm_edid;
c76a8be4feecebb drivers/gpu/drm/bridge/tda998x_drv.c Kory Maincent (TI.com  2026-01-23  1307) }
c76a8be4feecebb drivers/gpu/drm/bridge/tda998x_drv.c Kory Maincent (TI.com  2026-01-23  1308) 

:::::: The code at line 1296 was first introduced by commit
:::::: 25576733ec6e051e541b13ba77a8e1c63619336f drm/i2c: tda998x: group connector functions and funcs together

:::::: TO: Russell King <rmk+kernel@armlinux.org.uk>
:::::: CC: Russell King <rmk+kernel@armlinux.org.uk>

-- 
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:[~2026-04-17 14:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-17 14:54 drivers/gpu/drm/bridge/tda998x_drv.c:1296:24: sparse: sparse: Using plain integer as NULL pointer kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®