linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 3985/4465] drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c:113:24: sparse: sparse: Using plain integer as NULL pointer
@ 2024-02-06 13:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-06 13:59 UTC (permalink / raw)
  To: Lucas Stach
  Cc: oe-kbuild-all, Linux Memory Management List, Neil Armstrong,
	Luca Ceresoli, Laurent Pinchart, Adam Ford

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ac139fc7db67968e5061715508b5fc4aa7c40c56
commit: 059c53e877ca6e723e10490c27c1487a63e66efe [3985/4465] drm/bridge: imx: add driver for HDMI TX Parallel Video Interface
config: arc-randconfig-r113-20240206 (https://download.01.org/0day-ci/archive/20240206/202402062134.a6CqAt3s-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240206/202402062134.a6CqAt3s-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/202402062134.a6CqAt3s-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c:113:24: sparse: sparse: Using plain integer as NULL pointer
   drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/stackdepot.h, ...):
   include/linux/page-flags.h:242:46: sparse: sparse: self-comparison always evaluates to false

vim +113 drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c

    99	
   100	static u32 *
   101	imx8mp_hdmi_pvi_bridge_get_input_bus_fmts(struct drm_bridge *bridge,
   102						  struct drm_bridge_state *bridge_state,
   103						  struct drm_crtc_state *crtc_state,
   104						  struct drm_connector_state *conn_state,
   105						  u32 output_fmt,
   106						  unsigned int *num_input_fmts)
   107	{
   108		struct imx8mp_hdmi_pvi *pvi = to_imx8mp_hdmi_pvi(bridge);
   109		struct drm_bridge *next_bridge = pvi->next_bridge;
   110		struct drm_bridge_state *next_state;
   111	
   112		if (!next_bridge->funcs->atomic_get_input_bus_fmts)
 > 113			return 0;
   114	
   115		next_state = drm_atomic_get_new_bridge_state(crtc_state->state,
   116							     next_bridge);
   117	
   118		return next_bridge->funcs->atomic_get_input_bus_fmts(next_bridge,
   119								     next_state,
   120								     crtc_state,
   121								     conn_state,
   122								     output_fmt,
   123								     num_input_fmts);
   124	}
   125	

-- 
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:[~2024-02-06 14:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-06 13:59 [linux-next:master 3985/4465] drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c:113: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