Hi Alexander, kernel test robot noticed the following build warnings: [auto build test WARNING on media-tree/master] [also build test WARNING on linus/master v6.5-rc2 next-20230720] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Alexander-Stein/media-imx-imx7-media-csi-Fix-applying-format-constraints/20230720-154426 base: git://linuxtv.org/media_tree.git master patch link: https://lore.kernel.org/r/20230720074129.3680269-2-alexander.stein%40ew.tq-group.com patch subject: [PATCH 2/2] media: imx: imx7-media-csi: Fix applying format constraints config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20230721/202307210050.s7hfCvwG-lkp@xxxxxxxxx/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230721/202307210050.s7hfCvwG-lkp@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202307210050.s7hfCvwG-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): drivers/media/platform/nxp/imx7-media-csi.c: In function '__imx7_csi_video_try_fmt': >> drivers/media/platform/nxp/imx7-media-csi.c:1120:13: warning: variable 'walign' set but not used [-Wunused-but-set-variable] 1120 | u32 walign; | ^~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for SM_GCC_8350 Depends on [n]: COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] && (ARM64 || COMPILE_TEST [=n]) Selected by [m]: - SM_VIDEOCC_8350 [=m] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] WARNING: unmet direct dependencies detected for SM_GCC_8450 Depends on [n]: COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] && (ARM64 || COMPILE_TEST [=n]) Selected by [m]: - SM_GPUCC_8450 [=m] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] - SM_VIDEOCC_8450 [=m] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] WARNING: unmet direct dependencies detected for SM_GCC_8550 Depends on [n]: COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] && (ARM64 || COMPILE_TEST [=n]) Selected by [m]: - SM_GPUCC_8550 [=m] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] - SM_VIDEOCC_8550 [=m] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] vim +/walign +1120 drivers/media/platform/nxp/imx7-media-csi.c 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1114 e352833d32e693 drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1115 static const struct imx7_csi_pixfmt * 31959b981c231f drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1116 __imx7_csi_video_try_fmt(struct v4l2_pix_format *pixfmt, 31959b981c231f drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1117 struct v4l2_rect *compose) 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1118 { e352833d32e693 drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1119 const struct imx7_csi_pixfmt *cc; bef1bb620ca693 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 @1120 u32 walign; 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1121 6f482c4729d904 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1122 if (compose) { 6f482c4729d904 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1123 compose->width = pixfmt->width; 6f482c4729d904 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1124 compose->height = pixfmt->height; 6f482c4729d904 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1125 } 6f482c4729d904 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1126 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1127 /* 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1128 * Find the pixel format, default to the first supported format if not 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1129 * found. 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1130 */ 2d35c1ff83c095 drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-10 1131 cc = imx7_csi_find_pixel_format(pixfmt->pixelformat); 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1132 if (!cc) { a1a60e7ac274dc drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-10 1133 pixfmt->pixelformat = IMX7_CSI_DEF_PIX_FORMAT; 2d35c1ff83c095 drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-10 1134 cc = imx7_csi_find_pixel_format(pixfmt->pixelformat); 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1135 } 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1136 6f482c4729d904 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1137 /* bef1bb620ca693 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1138 * The width alignment is 8 bytes as indicated by the bef1bb620ca693 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1139 * CSI_IMAG_PARA.IMAGE_WIDTH documentation. Convert it to pixels. 6f482c4729d904 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1140 * bef1bb620ca693 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1141 * TODO: Implement configurable stride support. 6f482c4729d904 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1142 */ bef1bb620ca693 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1143 walign = 8 * 8 / cc->bpp; 75ab3b3196c39c drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-07-20 1144 v4l2_apply_frmsize_constraints(&pixfmt->width, &pixfmt->height, 75ab3b3196c39c drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-07-20 1145 &imx7_csi_frmsize_stepwise); 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1146 6f482c4729d904 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1147 pixfmt->bytesperline = pixfmt->width * cc->bpp / 8; 6f482c4729d904 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1148 pixfmt->sizeimage = pixfmt->bytesperline * pixfmt->height; 79bb4c7df8af76 drivers/media/platform/nxp/imx7-media-csi.c Alexander Stein 2023-04-19 1149 pixfmt->field = V4L2_FIELD_NONE; 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1150 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1151 return cc; 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1152 } 01ac6b7542872e drivers/staging/media/imx/imx7-media-csi.c Laurent Pinchart 2022-05-09 1153 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki