Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7AB0168B9; Wed, 16 Aug 2023 18:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692209389; x=1723745389; h=date:from:to:cc:subject:message-id:mime-version; bh=TlYtdN+Z+Wkt4n2fSUjeSF3J884QcalrWBnPWce+AMU=; b=Ulmjq1aMgoOewr0k5eX+ZKnjTykeHMOpIX28bQqOpbG9LxAqn6X+AXpS P9WTP34Q8bxfQjwteAQPV2keuYhkxgub0FItrjYbeO/h08dPzxkiv4q37 xiBw6C2eeNKJz8T+E3w1sUkkvvAHRHq3t0713sSt8UrOjN2eZM5l0OYje YsrBzvF6+IjOQuJfDB8GSNm7+YMc3RaDpVOz0BOKESoe2DdQ6vQUBQQ8O 4nM7OArjCrkEESRtVf3W/h8Xdsa0kciyKsgz3ldKZbYuzLwDrlYXnxoEM JSoiyzmjXNRTFZTT5NK41hnkLCEDQeyxEseOWRR/AOwHDAcjKrPPKO2ny Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="352190491" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="352190491" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2023 11:09:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="1064939788" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="1064939788" Received: from lkp-server02.sh.intel.com (HELO a9caf1a0cf30) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 16 Aug 2023 11:09:45 -0700 Received: from kbuild by a9caf1a0cf30 with local (Exim 4.96) (envelope-from ) id 1qWKxk-0000UJ-2v; Wed, 16 Aug 2023 18:09:44 +0000 Date: Thu, 17 Aug 2023 02:09:17 +0800 From: kernel test robot To: Wentong Wu Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Mauro Carvalho Chehab , linux-media@vger.kernel.org, Sakari Ailus Subject: [linux-next:master 9402/10518] drivers/media/pci/intel/ivsc/mei_csi.c:342:10: error: call to undeclared function 'v4l2_subdev_get_try_format'; ISO C99 and later do not support implicit function declarations Message-ID: <202308170227.ymiFlMbT-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: ef66bf8aeb91fd331cf8f5dca8f9d7bca9ab2849 commit: 29006e196a5661d9afc8152fa2bf8a5347ac17b4 [9402/10518] media: pci: intel: ivsc: Add CSI submodule config: x86_64-randconfig-x074-20230817 (https://download.01.org/0day-ci/archive/20230817/202308170227.ymiFlMbT-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce: (https://download.01.org/0day-ci/archive/20230817/202308170227.ymiFlMbT-lkp@intel.com/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 | Closes: https://lore.kernel.org/oe-kbuild-all/202308170227.ymiFlMbT-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/media/pci/intel/ivsc/mei_csi.c:342:10: error: call to undeclared function 'v4l2_subdev_get_try_format'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return v4l2_subdev_get_try_format(sd, sd_state, pad); ^ >> drivers/media/pci/intel/ivsc/mei_csi.c:342:10: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct v4l2_mbus_framefmt *' [-Wint-conversion] return v4l2_subdev_get_try_format(sd, sd_state, pad); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/pci/intel/ivsc/mei_csi.c:360:16: error: call to undeclared function 'v4l2_subdev_get_try_format'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] mbusformat = v4l2_subdev_get_try_format(sd, sd_state, i); ^ >> drivers/media/pci/intel/ivsc/mei_csi.c:360:14: error: incompatible integer to pointer conversion assigning to 'struct v4l2_mbus_framefmt *' from 'int' [-Wint-conversion] mbusformat = v4l2_subdev_get_try_format(sd, sd_state, i); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 errors generated. vim +/v4l2_subdev_get_try_format +342 drivers/media/pci/intel/ivsc/mei_csi.c 332 333 static struct v4l2_mbus_framefmt * 334 mei_csi_get_pad_format(struct v4l2_subdev *sd, 335 struct v4l2_subdev_state *sd_state, 336 unsigned int pad, u32 which) 337 { 338 struct mei_csi *csi = sd_to_csi(sd); 339 340 switch (which) { 341 case V4L2_SUBDEV_FORMAT_TRY: > 342 return v4l2_subdev_get_try_format(sd, sd_state, pad); 343 case V4L2_SUBDEV_FORMAT_ACTIVE: 344 return &csi->format_mbus[pad]; 345 default: 346 return NULL; 347 } 348 } 349 350 static int mei_csi_init_cfg(struct v4l2_subdev *sd, 351 struct v4l2_subdev_state *sd_state) 352 { 353 struct v4l2_mbus_framefmt *mbusformat; 354 struct mei_csi *csi = sd_to_csi(sd); 355 unsigned int i; 356 357 mutex_lock(&csi->lock); 358 359 for (i = 0; i < sd->entity.num_pads; i++) { > 360 mbusformat = v4l2_subdev_get_try_format(sd, sd_state, i); 361 *mbusformat = mei_csi_format_mbus_default; 362 } 363 364 mutex_unlock(&csi->lock); 365 366 return 0; 367 } 368 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki