Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/tilcdc: Fix type mismatch

cpu_to_be32() returns a __be32 big-endian value, but the compound literals
passed to tilcdc_panel_update_prop() were typed as u32. This causes a
sparse type mismatch warning. Fix it by using __be32 as the compound
literal type to match the return type of cpu_to_be32().

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202602200130.LjofC7YE-lkp@intel.com/
Fixes: 0ff223d991477 ("drm/tilcdc: Convert legacy panel binding via DT overlay at boot time")
Signed-off-by: Kory Maincent (TI) <kory.maincent@bootlin.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://patch.msgid.link/20260305163907.717719-1-kory.maincent@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>

authored by

Kory Maincent (TI) and committed by
Luca Ceresoli
27a39e13 1d3864cf

+2 -2
+2 -2
drivers/gpu/drm/tilcdc/tilcdc_panel_legacy.c
··· 105 105 106 106 if (!invert_pxl_clk) { 107 107 ret = tilcdc_panel_update_prop(&ocs, new_timing, "pixelclk-active", 108 - &(u32){cpu_to_be32(1)}, sizeof(u32)); 108 + &(__be32){cpu_to_be32(1)}, sizeof(__be32)); 109 109 if (ret) 110 110 goto destroy_ocs; 111 111 } 112 112 113 113 if (!sync_edge) { 114 114 ret = tilcdc_panel_update_prop(&ocs, new_timing, "syncclk-active", 115 - &(u32){cpu_to_be32(1)}, sizeof(u32)); 115 + &(__be32){cpu_to_be32(1)}, sizeof(__be32)); 116 116 if (ret) 117 117 goto destroy_ocs; 118 118 }