drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c:113:24: sparse: sparse: Using plain integer as NULL pointer
kernel test robot
build bottree: 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/[email protected]/config) compiler: arceb-elf-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20240206/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
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
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki