From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 06BF714375C for ; Sun, 19 Jan 2025 17:46:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737308820; cv=none; b=mtcyYQ6TiBVO34ss4mlSVcKIKjkzvg2PvvsHGcnN6kWBGHGiUPtyCIsv5khcsBiAmX1C0MTCPyw6xBCFzbuNZFt6c+PVe7CN6XGjQ7l+whlmU9QKxAtpYmtyaG5jsmIiWsCSDDI0ETArNc103/XSjPDi8q4gU6KDsNTMgplp0Uc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737308820; c=relaxed/simple; bh=aZbHJYRbMKCJpHFItl5oFbQn5XFWVdyTVMiyc2yxH90=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=f3q5iCOuQ6gEZdVFJi6v4Sh//lqkVn1R1bKEg7F/YaR42akOpKxY6UJU8aHoROukKn32EDMaZSIcN/5caClAJDDSDWH2r7anXUW7sCrqckZ3QraaK5wqEIVDVgj9rot4VB3opigmF9whDeh6nxK3ye9MM6rxf67dA5w4jxmumDo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lgHQiEf+; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lgHQiEf+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1737308817; x=1768844817; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=aZbHJYRbMKCJpHFItl5oFbQn5XFWVdyTVMiyc2yxH90=; b=lgHQiEf++xGVYq2++HFFkW0B6HDTjlmu1w4xR3qqQVSTZT+fN1f6QOc5 TcPmUf90oW32R4bi6PBukPXy70UCCA+h+ORE3O7b10BAt7uV30pcuT4H2 2EC6K6x9nawUiPIsTQ4V/DCzdpFnTgx/zaGoeTarGTw67NExX54np/f5/ 1K4tQQpU/PyURS6/zS+Q+QVSUhr1m7peZTBdRx51XuVmVO+qiWWnx2G5c by+doKhdcM/1AaX5b0PhBdO1bn3unt5G6bqibRag4mfgEhHme8+1eHfHa CK610m+SMzm+7DK7rs+6MLyrRslpA+ohK9OcySRzW7gNXKuHWvKm6x3ek A==; X-CSE-ConnectionGUID: 6A0vGp39QCycLA7RzGIVlQ== X-CSE-MsgGUID: KANcRpUmSHa4EE8naFtorw== X-IronPort-AV: E=McAfee;i="6700,10204,11320"; a="60144692" X-IronPort-AV: E=Sophos;i="6.13,217,1732608000"; d="scan'208";a="60144692" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2025 09:46:56 -0800 X-CSE-ConnectionGUID: 7vS0xZRDSUuer5HnoMqclw== X-CSE-MsgGUID: ERhnETa0R/WOE5VKd2yxzQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="106109892" Received: from lkp-server01.sh.intel.com (HELO d63d4d77d921) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 19 Jan 2025 09:46:50 -0800 Received: from kbuild by d63d4d77d921 with local (Exim 4.96) (envelope-from ) id 1tZZNm-000Vg3-2b; Sun, 19 Jan 2025 17:46:46 +0000 Date: Mon, 20 Jan 2025 01:46:26 +0800 From: kernel test robot To: Sakari Ailus , linux-media@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Benjamin Mugnier , Sylvain Petinot , Yong Zhi , Dan Scally , Jacopo Mondi , hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, bingbu.cao@intel.com, Tianshu Qiu , Maxime Ripard , Rui Miguel Silva , Martin Kepplinger , Purism Kernel Team , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Robert Foss , Todor Tomov , Bryan O'Donoghue , Tomi Valkeinen , Raspberry Pi Kernel Maintenance , Florian Fainelli , Broadcom internal kernel review list , Maxime Coquelin , Alexandre Torgue , Benoit Parrot , Ricardo Ribalda , "Duc-Long, Le" Subject: Re: [PATCH v9 9/9] media: v4l: Convert the users of v4l2_get_link_freq to call it on a pad Message-ID: <202501200100.zPV2fkA4-lkp@intel.com> References: <20250119143904.114991-10-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250119143904.114991-10-sakari.ailus@linux.intel.com> Hi Sakari, kernel test robot noticed the following build errors: [auto build test ERROR on c4b7779abc6633677e6edb79e2809f4f61fde157] url: https://github.com/intel-lab-lkp/linux/commits/Sakari-Ailus/media-v4l-Support-passing-media-pad-argument-to-v4l2_get_link_freq/20250119-224053 base: c4b7779abc6633677e6edb79e2809f4f61fde157 patch link: https://lore.kernel.org/r/20250119143904.114991-10-sakari.ailus%40linux.intel.com patch subject: [PATCH v9 9/9] media: v4l: Convert the users of v4l2_get_link_freq to call it on a pad config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20250120/202501200100.zPV2fkA4-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250120/202501200100.zPV2fkA4-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/202501200100.zPV2fkA4-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/media/platform/qcom/camss/camss.c: In function 'camss_get_pixel_clock': >> drivers/media/platform/qcom/camss/camss.c:2057:9: error: 'sensor_pad' undeclared (first use in this function); did you mean 'sensor'? 2057 | sensor_pad = camss_find_sensor_pad(entity); | ^~~~~~~~~~ | sensor drivers/media/platform/qcom/camss/camss.c:2057:9: note: each undeclared identifier is reported only once for each function it appears in In file included from include/linux/container_of.h:5, from include/linux/kernel.h:22, from include/linux/clk.h:13, from drivers/media/platform/qcom/camss/camss.c:10: >> include/linux/container_of.h:20:35: error: invalid type argument of unary '*' (have 'int') 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ include/media/v4l2-subdev.h:1132:17: note: in expansion of macro 'container_of' 1132 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \ | ^~~~~~~~~~~~ drivers/media/platform/qcom/camss/camss.c:2061:18: note: in expansion of macro 'media_entity_to_v4l2_subdev' 2061 | subdev = media_entity_to_v4l2_subdev(sensor_pad->entity); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/container_of.h:21:35: error: invalid type argument of unary '*' (have 'int') 21 | __same_type(*(ptr), void), \ | ^~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:21:23: note: in expansion of macro '__same_type' 21 | __same_type(*(ptr), void), \ | ^~~~~~~~~~~ include/media/v4l2-subdev.h:1132:17: note: in expansion of macro 'container_of' 1132 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \ | ^~~~~~~~~~~~ drivers/media/platform/qcom/camss/camss.c:2061:18: note: in expansion of macro 'media_entity_to_v4l2_subdev' 2061 | subdev = media_entity_to_v4l2_subdev(sensor_pad->entity); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:483:27: error: expression in static assertion is not an integer 483 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ include/media/v4l2-subdev.h:1132:17: note: in expansion of macro 'container_of' 1132 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \ | ^~~~~~~~~~~~ drivers/media/platform/qcom/camss/camss.c:2061:18: note: in expansion of macro 'media_entity_to_v4l2_subdev' 2061 | subdev = media_entity_to_v4l2_subdev(sensor_pad->entity); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/qcom/camss/camss.c:2053:27: warning: unused variable 'sensor' [-Wunused-variable] 2053 | struct media_pad *sensor; | ^~~~~~ -- camss.c: In function 'camss_get_pixel_clock': camss.c:2057:9: error: 'sensor_pad' undeclared (first use in this function); did you mean 'sensor'? 2057 | sensor_pad = camss_find_sensor_pad(entity); | ^~~~~~~~~~ | sensor camss.c:2057:9: note: each undeclared identifier is reported only once for each function it appears in In file included from include/linux/container_of.h:5, from include/linux/kernel.h:22, from include/linux/clk.h:13, from camss.c:10: >> include/linux/container_of.h:20:35: error: invalid type argument of unary '*' (have 'int') 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ include/media/v4l2-subdev.h:1132:17: note: in expansion of macro 'container_of' 1132 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \ | ^~~~~~~~~~~~ camss.c:2061:18: note: in expansion of macro 'media_entity_to_v4l2_subdev' 2061 | subdev = media_entity_to_v4l2_subdev(sensor_pad->entity); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/container_of.h:21:35: error: invalid type argument of unary '*' (have 'int') 21 | __same_type(*(ptr), void), \ | ^~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:21:23: note: in expansion of macro '__same_type' 21 | __same_type(*(ptr), void), \ | ^~~~~~~~~~~ include/media/v4l2-subdev.h:1132:17: note: in expansion of macro 'container_of' 1132 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \ | ^~~~~~~~~~~~ camss.c:2061:18: note: in expansion of macro 'media_entity_to_v4l2_subdev' 2061 | subdev = media_entity_to_v4l2_subdev(sensor_pad->entity); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:483:27: error: expression in static assertion is not an integer 483 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ include/media/v4l2-subdev.h:1132:17: note: in expansion of macro 'container_of' 1132 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \ | ^~~~~~~~~~~~ camss.c:2061:18: note: in expansion of macro 'media_entity_to_v4l2_subdev' 2061 | subdev = media_entity_to_v4l2_subdev(sensor_pad->entity); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ camss.c:2053:27: warning: unused variable 'sensor' [-Wunused-variable] 2053 | struct media_pad *sensor; | ^~~~~~ vim +2057 drivers/media/platform/qcom/camss/camss.c 2043 2044 /* 2045 * camss_get_pixel_clock - Get pixel clock rate from sensor 2046 * @entity: Media entity in the current pipeline 2047 * @pixel_clock: Received pixel clock value 2048 * 2049 * Return 0 on success or a negative error code otherwise 2050 */ 2051 int camss_get_pixel_clock(struct media_entity *entity, u64 *pixel_clock) 2052 { 2053 struct media_pad *sensor; 2054 struct v4l2_subdev *subdev; 2055 struct v4l2_ctrl *ctrl; 2056 > 2057 sensor_pad = camss_find_sensor_pad(entity); 2058 if (!sensor_pad) 2059 return -ENODEV; 2060 2061 subdev = media_entity_to_v4l2_subdev(sensor_pad->entity); 2062 2063 ctrl = v4l2_ctrl_find(subdev->ctrl_handler, V4L2_CID_PIXEL_RATE); 2064 2065 if (!ctrl) 2066 return -EINVAL; 2067 2068 *pixel_clock = v4l2_ctrl_g_ctrl_int64(ctrl); 2069 2070 return 0; 2071 } 2072 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki