Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1482094rdb; Sun, 7 Jan 2024 23:46:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5YlvU+1orUM7/tXHp1BjcbcCPpEu9O+t53QuGEfLgiDmO3kEXe5UUj4RaL/st+HavDpCA X-Received: by 2002:a05:620a:25d1:b0:783:1a63:e117 with SMTP id y17-20020a05620a25d100b007831a63e117mr2781635qko.129.1704700019560; Sun, 07 Jan 2024 23:46:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704700019; cv=none; d=google.com; s=arc-20160816; b=TXmzJN8AouaOV9575WHlcSDu/zFYD7Aiv4xu0GxZVdyvJ5WHQ+BpQBhrDF7M4axMS5 awo47rkEeQXHLmH4ET7WZXTBdkSCZtP0hOxx6q1Uc7nE9jTPhUKK05fSG3wsK23lNftX VwdlyfgmZRJOGY8cNhpMAl/juLUU1YAslb2BkrV1hjTsfTU2TJ3T0lPOQA1H0zDvQzyN 4Y9FqG7T5N/WF3yJBosMuoz/yrcXpMfUXIec+fzcM56RiZKv++bepBP27gCXa8rQrUn6 /GPxHXNqz4y7wqKwo4q1p4ogeNDZICgMDGcDZEvnbyymdcitOtwNeXnqsTG8z7bESUnc iw9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nyyP50R0e0cfmVzrtfZByAUjhEDsRfO2W6cjx7+KTdA=; fh=htqshxfKtofZwys2ZVn0w9EX6o3uZMztuV9VMguCBE4=; b=ks0I5A5we8fZ5v0WiX+aTmfk7Aq5bsZBCIGgrCXVM0NGi5QOOJS/mWeb//Q0gyfZ/h 51C9rlmOHb2m96pWc9HTJpZ6uOf0MhlZgx52UX1n+N/074++oBkYGO10SpsZatqqrcvW ojn6YT8m9yeLwTjRapPdd2kXu/qY74K1ebR1wkewbXDWYCLCLLObkbDy0L5UBWtF6QMo LJIHMsRoc1aN5sKclWoEIEF5jA048dG8ObijCXl64BH2hC9T15Z8ir6PgPMzfNegdHaN EA6Fed7N7PpIa54INU4xA9VBlNjfxDIxMwwx1Le/yXW5RiNOAPi6OCbPRfPfameesbk7 BkCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=X0tIZ8zK; spf=pass (google.com: domain of linux-kernel+bounces-19154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ea27-20020a05620a489b00b0078326f16a63si221363qkb.46.2024.01.07.23.46.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 23:46:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=X0tIZ8zK; spf=pass (google.com: domain of linux-kernel+bounces-19154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 250FA1C219D5 for ; Mon, 8 Jan 2024 07:46:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C3EC7B665; Mon, 8 Jan 2024 07:46:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="X0tIZ8zK" X-Original-To: linux-kernel@vger.kernel.org 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 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