drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c:218:23: sparse: sparse: cast to restricted __be32

From: kernel test robot

Date: Wed Mar 04 2026 - 13:23:56 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ecc64d2dc9ff9738d2a896beb68e02c2feaf9a02
commit: bf9ec461a7d1b82bbc3fe110fba9e9533879849d fbdev: omapfb: Make FB_DEVICE dependency optional
date: 3 weeks ago
config: nios2-randconfig-r112-20260304 (https://download.01.org/0day-ci/archive/20260305/202603050230.ONrYuERr-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260305/202603050230.ONrYuERr-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603050230.ONrYuERr-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c:218:23: sparse: sparse: cast to restricted __be32
>> drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c:218:23: sparse: sparse: cast to restricted __be32
>> drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c:218:23: sparse: sparse: cast to restricted __be32
>> drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c:218:23: sparse: sparse: cast to restricted __be32
>> drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c:218:23: sparse: sparse: cast to restricted __be32
>> drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c:218:23: sparse: sparse: cast to restricted __be32

vim +218 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c

f76ee892a99e68 Tomi Valkeinen 2015-12-09 210
f76ee892a99e68 Tomi Valkeinen 2015-12-09 211 static int panel_enabled(struct panel_drv_data *ddata)
f76ee892a99e68 Tomi Valkeinen 2015-12-09 212 {
f76ee892a99e68 Tomi Valkeinen 2015-12-09 213 u32 disp_status;
f76ee892a99e68 Tomi Valkeinen 2015-12-09 214 int enabled;
f76ee892a99e68 Tomi Valkeinen 2015-12-09 215
f76ee892a99e68 Tomi Valkeinen 2015-12-09 216 acx565akm_read(ddata, MIPID_CMD_READ_DISP_STATUS,
f76ee892a99e68 Tomi Valkeinen 2015-12-09 217 (u8 *)&disp_status, 4);
f76ee892a99e68 Tomi Valkeinen 2015-12-09 @218 disp_status = __be32_to_cpu(disp_status);
f76ee892a99e68 Tomi Valkeinen 2015-12-09 219 enabled = (disp_status & (1 << 17)) && (disp_status & (1 << 10));
f76ee892a99e68 Tomi Valkeinen 2015-12-09 220 dev_dbg(&ddata->spi->dev,
f76ee892a99e68 Tomi Valkeinen 2015-12-09 221 "LCD panel %senabled by bootloader (status 0x%04x)\n",
f76ee892a99e68 Tomi Valkeinen 2015-12-09 222 enabled ? "" : "not ", disp_status);
f76ee892a99e68 Tomi Valkeinen 2015-12-09 223 return enabled;
f76ee892a99e68 Tomi Valkeinen 2015-12-09 224 }
f76ee892a99e68 Tomi Valkeinen 2015-12-09 225

:::::: The code at line 218 was first introduced by commit
:::::: f76ee892a99e68b55402b8d4b8aeffcae2aff34d omapfb: copy omapdss & displays for omapfb

:::::: TO: Tomi Valkeinen <tomi.valkeinen@xxxxxx>
:::::: CC: Tomi Valkeinen <tomi.valkeinen@xxxxxx>

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