mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Kory Maincent (TI.com)" <kory.maincent@bootlin.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Luca Ceresoli <luca.ceresoli@bootlin.com>
Subject: drivers/gpu/drm/bridge/tda998x_drv.c:1296:24: sparse: sparse: Using plain integer as NULL pointer
Date: Fri, 17 Apr 2026 22:54:46 +0800	[thread overview]
Message-ID: <202604172257.Imo6GOH9-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-04-17 14:54 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=202604172257.Imo6GOH9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kory.maincent@bootlin.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luca.ceresoli@bootlin.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 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®