[xilinx-xlnx:xlnx_rebase_v5.10 251/1981] drivers/gpu/drm/xlnx/xlnx_scaler.c:1394:21: warning: variable 'fmt_out' set but not used
kernel test robot
lkp at intel.com
Tue Dec 14 14:12:46 PST 2021
Hi Venkateshwar,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10
head: 87ec9a2d98a7a7dfc98b57348a0ec310fd170e4b
commit: 9c2aaea5d2da626727258703b85f52281b8673bb [251/1981] drm: xlnx: scaler: Adding vpss-scaler driver
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20211215/202112150658.YseS4mn1-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Xilinx/linux-xlnx/commit/9c2aaea5d2da626727258703b85f52281b8673bb
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.10
git checkout 9c2aaea5d2da626727258703b85f52281b8673bb
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/clk/ drivers/fpga/ drivers/gpu/drm/vc4/ drivers/gpu/drm/xlnx/ drivers/infiniband/hw/mlx5/ drivers/media/platform/xilinx/ drivers/memory/samsung/ drivers/misc/ drivers/mtd/nand/raw/brcmnand/ drivers/mtd/spi-nor/controllers/ drivers/net/ drivers/of/ drivers/ptp/ drivers/remoteproc/ drivers/spi/ drivers/staging/ drivers/thunderbolt/ drivers/uio/ drivers/usb/cdns3/ sound/hda/ sound/pci/hda/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/xlnx/xlnx_scaler.c: In function 'xilinx_scaler_stream':
>> drivers/gpu/drm/xlnx/xlnx_scaler.c:1394:21: warning: variable 'fmt_out' set but not used [-Wunused-but-set-variable]
1394 | u32 fmt_in, fmt_out;
| ^~~~~~~
>> drivers/gpu/drm/xlnx/xlnx_scaler.c:1394:13: warning: variable 'fmt_in' set but not used [-Wunused-but-set-variable]
1394 | u32 fmt_in, fmt_out;
| ^~~~~~
vim +/fmt_out +1394 drivers/gpu/drm/xlnx/xlnx_scaler.c
1383
1384 /**
1385 * xilinx_scaler_stream - Set up v-scaler and h-scaler for streaming
1386 * @scaler: Pointer to scaler device structure
1387 *
1388 * This function sets up the required configuration of v-scaler and h-scaler
1389 *
1390 * Return: 0 on success. Returns -EINVAL on failure conditions.
1391 */
1392 static int xilinx_scaler_stream(struct xilinx_scaler *scaler)
1393 {
> 1394 u32 fmt_in, fmt_out;
1395 u32 pixel_rate;
1396 u32 line_rate;
1397 int ret;
1398
1399 fmt_in = scaler->fmt_in;
1400 fmt_out = scaler->fmt_out;
1401 line_rate = (scaler->height_in * STEP_PRECISION) / scaler->height_out;
1402
1403 if (scaler->is_polyphase) {
1404 ret = xv_vscaler_select_coeff(scaler, scaler->height_in,
1405 scaler->height_out);
1406 if (ret < 0) {
1407 dev_info(scaler->dev, "Failed: vscaler select coeff\n");
1408 return ret;
1409 }
1410 xv_vscaler_set_coeff(scaler);
1411 }
1412 xilinx_scaler_write(scaler->base, V_VSCALER_OFF +
1413 XV_VSCALER_CTRL_ADDR_HWREG_LINERATE_DATA,
1414 line_rate);
1415 ret = xv_vscaler_setup_video_fmt(scaler, scaler->fmt_in);
1416 if (ret < 0) {
1417 dev_info(scaler->dev, "Failed: vscaler setup video format\n");
1418 return ret;
1419 }
1420 pixel_rate = (scaler->width_in * STEP_PRECISION) / scaler->width_out;
1421 xilinx_scaler_write(scaler->base, V_HSCALER_OFF +
1422 XV_HSCALER_CTRL_ADDR_HWREG_PIXELRATE_DATA,
1423 pixel_rate);
1424 ret = xv_hscaler_setup_video_fmt(scaler, scaler->fmt_out, ret);
1425 if (ret < 0) {
1426 dev_info(scaler->dev, "Failed: vscaler setup video format\n");
1427 return ret;
1428 }
1429 if (scaler->is_polyphase) {
1430 ret = xv_hscaler_select_coeff(scaler, scaler->width_in,
1431 scaler->width_out);
1432 if (ret < 0) {
1433 dev_info(scaler->dev, "Failed: hscaler select coeff\n");
1434 return ret;
1435 }
1436 xv_hscaler_set_coeff(scaler);
1437 }
1438 xv_hscaler_calculate_phases(scaler, scaler->width_in,
1439 scaler->width_out, pixel_rate);
1440 xv_hscaler_set_phases(scaler);
1441 return 0;
1442 }
1443
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
More information about the linux-arm-kernel
mailing list