From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 8AF35B657 for ; Mon, 8 Jan 2024 07:46:51 +0000 (UTC) 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="X0tIZ8zK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704700012; x=1736236012; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=AvhfDm2j+qVAzbx7SoLzumEYgb5qaDh8X5waSOXgjnA=; b=X0tIZ8zKVNyZNHQDlAvxmVzg496mogyN+qUZOwE9n7LScSnaFlPfZMFU iqxkUzX8SvSNYEPqYsosKBXdEpfgaJoWfHgBs5xCAM45ehylgzWl1XYxi SOp8bFxsgppmtqzWz6WZVkbE8ti/Fbh+E8h0FU9fqW5ACqPK8/XwjuqtO gyAfNrhmd8zDzYKQDEc9quIvQwvByA2YkYS4QOlPWG0Z1oUiX1lAPAP6U +NYD5Bc3SY6Eds+zUoDA7btkkQ2QjXR3HKLqXau0hn8euBhVH6CbiJcTD poh28HhPf1RraiGb/6lVUub4mfNKUWAtlDxQX33PfMTOicuzu2mARtKMI w==; X-IronPort-AV: E=McAfee;i="6600,9927,10946"; a="19316783" X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="19316783" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jan 2024 23:46:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="23091188" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 07 Jan 2024 23:46:45 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rMkLJ-0004Wy-2z; Mon, 08 Jan 2024 07:46:41 +0000 Date: Mon, 8 Jan 2024 15:46:19 +0800 From: kernel test robot To: Philipp Stanner , Greg Kroah-Hartman , "Rafael J. Wysocki" , Laurentiu Palcu , Lucas Stach , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Mark Brown , Takashi Iwai , David Gow , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Philipp Stanner Subject: Re: [PATCH 1/2] platform_device: add devres function region-reqs Message-ID: <202401081547.VBj4FKaw-lkp@intel.com> References: <20240105172218.42457-3-pstanner@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240105172218.42457-3-pstanner@redhat.com> Hi Philipp, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on driver-core/driver-core-testing driver-core/driver-core-next driver-core/driver-core-linus linus/master v6.7 next-20240105] [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/Philipp-Stanner/platform_device-add-devres-function-region-reqs/20240106-012526 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/20240105172218.42457-3-pstanner%40redhat.com patch subject: [PATCH 1/2] platform_device: add devres function region-reqs config: x86_64-randconfig-101-20240106 (https://download.01.org/0day-ci/archive/20240108/202401081547.VBj4FKaw-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240108/202401081547.VBj4FKaw-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/202401081547.VBj4FKaw-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/base/platform.c:101: warning: expecting prototype for devm_platform_get_and_resource(). Prototype was for devm_platform_get_resource() instead vim +101 drivers/base/platform.c 84 85 /** 86 * devm_platform_get_and_resource - get and request a resource 87 * 88 * @pdev: the platform device to get the resource from 89 * @type: resource type (either IORESOURCE_MEM or IORESOURCE_IO) 90 * @num: resource index 91 * @name: name to be associated with the request 92 * 93 * Return: a pointer to the resource on success, an ERR_PTR on failure. 94 * 95 * Gets a resource and requests it. Use this instead of 96 * devm_platform_ioremap_resource() only if you have to create several single 97 * mappings with devm_ioremap(). 98 */ 99 struct resource *devm_platform_get_resource(struct platform_device *pdev, 100 unsigned int type, unsigned int num, const char *name) > 101 { 102 struct resource *res; 103 104 res = platform_get_resource(pdev, type, num); 105 if (!res) 106 return ERR_PTR(-EINVAL); 107 108 if (type & IORESOURCE_MEM) 109 res = devm_request_mem_region(&pdev->dev, res->start, res->end, name); 110 else if (type & IORESOURCE_IO) 111 res = devm_request_region(&pdev->dev, res->start, res->end, name); 112 else 113 return ERR_PTR(-EINVAL); 114 115 if (!res) 116 return ERR_PTR(-EBUSY); 117 118 return res; 119 } 120 EXPORT_SYMBOL_GPL(devm_platform_get_resource); 121 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki