* [freescale-fslc:6.1-1.0.x-imx 1061/9879] drivers/gpu/drm/imx/dcss/dcss-rdsrc.c:86:13: warning: variable 'buf_size' set but not used
@ 2023-05-27 5:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-27 5:59 UTC (permalink / raw)
To: Otavio Salvador; +Cc: oe-kbuild-all
tree: https://github.com/Freescale/linux-fslc 6.1-1.0.x-imx
head: ad9ab3b3c553cbc3c61f233b6e2cd5abdd2a624b
commit: 8d181fada260045dcc130d3b82e9e49f37f60dd6 [1061/9879] drm/imx/dcss: add WRSCL/RDSRC support
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230527/202305271311.jsdNHHt2-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
mkdir -p ~/bin
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Freescale/linux-fslc/commit/8d181fada260045dcc130d3b82e9e49f37f60dd6
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 6.1-1.0.x-imx
git checkout 8d181fada260045dcc130d3b82e9e49f37f60dd6
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305271311.jsdNHHt2-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/gpu/drm/imx/dcss/dcss-rdsrc.c: In function 'dcss_rdsrc_setup':
>> drivers/gpu/drm/imx/dcss/dcss-rdsrc.c:86:13: warning: variable 'buf_size' set but not used [-Wunused-but-set-variable]
86 | u32 buf_size, pitch, bpp;
| ^~~~~~~~
vim +/buf_size +86 drivers/gpu/drm/imx/dcss/dcss-rdsrc.c
82
83 void dcss_rdsrc_setup(struct dcss_rdsrc *rdsrc, u32 pix_format, u32 dst_xres,
84 u32 dst_yres, u32 base_addr)
85 {
> 86 u32 buf_size, pitch, bpp;
87
88 /* since the scaler output is YUV444, the RDSRC output has to match */
89 bpp = 4;
90
91 rdsrc->ctrl_status = FIFO_512 << RDSRC_FIFO_SIZE_POS;
92 rdsrc->ctrl_status |= PSIZE_256 << RDSRC_P_SIZE_POS;
93 rdsrc->ctrl_status |= TSIZE_256 << RDSRC_T_SIZE_POS;
94 rdsrc->ctrl_status |= BPP_32_10BIT_OUTPUT << RDSRC_BPP_POS;
95
96 buf_size = dst_xres * dst_yres * bpp;
97 pitch = dst_xres * bpp;
98
99 rdsrc->buf_addr = base_addr;
100
101 dcss_rdsrc_write(rdsrc, rdsrc->buf_addr, DCSS_RDSRC_BASE_ADDR);
102 dcss_rdsrc_write(rdsrc, pitch, DCSS_RDSRC_PITCH);
103 dcss_rdsrc_write(rdsrc, dst_xres, DCSS_RDSRC_WIDTH);
104 dcss_rdsrc_write(rdsrc, dst_yres, DCSS_RDSRC_HEIGHT);
105 }
106
--
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:[~2023-05-27 5:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-27 5:59 [freescale-fslc:6.1-1.0.x-imx 1061/9879] drivers/gpu/drm/imx/dcss/dcss-rdsrc.c:86:13: warning: variable 'buf_size' set but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.