From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1A4A3C47077 for ; Wed, 10 Jan 2024 00:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bt89ZxN3mqcY/4uyzsoaw6h6HIiTyvuDCZYmxFXRFjA=; b=rGg3BgOeJKJPsr Xs+hRrT4R+d/gSkdWwNsJ32jxynRC1o03uYwO/+WlZq+MONn2WqhXGgpTe4JXkX/W0qzJnZXd7eQ6 9S+gDr6UTewXlaRnmVaFa0LVJmUNV+Abbnut8MR1eDu0Sp/H4zgA1kTmLmO+rQxty/W+fiFLyzL6B aLQFxFa0cQvlvNmRX1Q59R9XYaAGTinryn5uW2AubH0DfJBF7T2lTl9gAyqmNzlC0TkAFCewhfo+W gRuKCHmAOHdbR3GwgBnQWrwZDdW24GEWd5vb6ZnlpxZYKtIg8LfHqrNxtD/SEEKq6RqCphvytCxjM RuuCxI2kVyxboMgFgY5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rNMdC-009ynU-0X; Wed, 10 Jan 2024 00:39:42 +0000 Received: from mgamail.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rNMd7-009yl8-0u for linux-arm-kernel@lists.infradead.org; Wed, 10 Jan 2024 00:39:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704847177; x=1736383177; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6VSUhxHcVKYf8XcSqAKay5YGN0ehzbjWp+67JrBDyYY=; b=nrRfJKthNO8hrpgpTjYzKcHZREyl61VoSwuBDc1DXPpJ+0zIHbvAOOJv W1FhmEnIAGWVxXIFo05LPBpuVHNB/pO6unTN24ce9KekW9WEFvzRGLm20 /vtqfRuFNPmNzq5yr9B731yFWXRn53AaSGtA+wlUsSH9Gw2qd/4t2TSY6 4TpvefwnsQt9xT7pyWSU3wvYeoZuvsaXnSDAytnaAPdwLAxfRlqcbJHdc uL/eEQuq8FGwDLtgD3mlCfbxBXbH9CcQghdgou1reuG3ceqIrfVTYVsk+ K9oPSvdE1+nPjgAdjbjNLcVgKdQptso6TEdOnuXbDy2TVOdTIufdlooSG g==; X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="398059699" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="398059699" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2024 16:39:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="1113257196" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="1113257196" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 09 Jan 2024 16:39:19 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rNMcn-0006Qw-07; Wed, 10 Jan 2024 00:39:17 +0000 Date: Wed, 10 Jan 2024 08:39:13 +0800 From: kernel test robot To: Philipp Stanner , Laurentiu Palcu , Lucas Stach , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: oe-kbuild-all@lists.linux.dev, NXP Linux Team , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Philipp Stanner Subject: Re: [PATCH v2 1/2] drm/dcss: request memory region Message-ID: <202401100801.1Wiy3ZEd-lkp@intel.com> References: <20240109102032.16165-2-pstanner@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240109102032.16165-2-pstanner@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240109_163937_336726_A4F38FFA X-CRM114-Status: GOOD ( 15.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Philipp, kernel test robot noticed the following build errors: [auto build test ERROR on v6.7] [also build test ERROR on linus/master next-20240109] [cannot apply to drm-misc/drm-misc-next] [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/drm-dcss-request-memory-region/20240109-182239 base: v6.7 patch link: https://lore.kernel.org/r/20240109102032.16165-2-pstanner%40redhat.com patch subject: [PATCH v2 1/2] drm/dcss: request memory region config: arm64-defconfig (https://download.01.org/0day-ci/archive/20240110/202401100801.1Wiy3ZEd-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240110/202401100801.1Wiy3ZEd-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/202401100801.1Wiy3ZEd-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/device.h:17, from include/linux/platform_device.h:13, from drivers/gpu/drm/imx/dcss/dcss-dev.c:9: drivers/gpu/drm/imx/dcss/dcss-dev.c: In function 'dcss_dev_create': >> drivers/gpu/drm/imx/dcss/dcss-dev.c:188:42: error: incompatible type for argument 1 of '__devm_request_region' 188 | if (!devm_request_mem_region(pdev->dev, res->start, res_len, "dcss")) { | ~~~~^~~~~ | | | struct device include/linux/ioport.h:306:31: note: in definition of macro 'devm_request_mem_region' 306 | __devm_request_region(dev, &iomem_resource, (start), (n), (name)) | ^~~ include/linux/ioport.h:308:63: note: expected 'struct device *' but argument is of type 'struct device' 308 | extern struct resource * __devm_request_region(struct device *dev, | ~~~~~~~~~~~~~~~^~~ vim +/__devm_request_region +188 drivers/gpu/drm/imx/dcss/dcss-dev.c 165 166 struct dcss_dev *dcss_dev_create(struct device *dev, bool hdmi_output) 167 { 168 struct platform_device *pdev = to_platform_device(dev); 169 int ret; 170 struct resource *res; 171 struct dcss_dev *dcss; 172 const struct dcss_type_data *devtype; 173 resource_size_t res_len; 174 175 devtype = of_device_get_match_data(dev); 176 if (!devtype) { 177 dev_err(dev, "no device match found\n"); 178 return ERR_PTR(-ENODEV); 179 } 180 181 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 182 if (!res) { 183 dev_err(dev, "cannot get memory resource\n"); 184 return ERR_PTR(-EINVAL); 185 } 186 187 res_len = res->end - res->start; > 188 if (!devm_request_mem_region(pdev->dev, res->start, res_len, "dcss")) { 189 dev_err(dev, "cannot request memory region\n"); 190 return ERR_PTR(-EBUSY); 191 } 192 193 dcss = kzalloc(sizeof(*dcss), GFP_KERNEL); 194 if (!dcss) 195 return ERR_PTR(-ENOMEM); 196 197 dcss->dev = dev; 198 dcss->devtype = devtype; 199 dcss->hdmi_output = hdmi_output; 200 201 ret = dcss_clks_init(dcss); 202 if (ret) { 203 dev_err(dev, "clocks initialization failed\n"); 204 goto err; 205 } 206 207 dcss->of_port = of_graph_get_port_by_id(dev->of_node, 0); 208 if (!dcss->of_port) { 209 dev_err(dev, "no port@0 node in %pOF\n", dev->of_node); 210 ret = -ENODEV; 211 goto clks_err; 212 } 213 214 dcss->start_addr = res->start; 215 216 ret = dcss_submodules_init(dcss); 217 if (ret) { 218 of_node_put(dcss->of_port); 219 dev_err(dev, "submodules initialization failed\n"); 220 goto clks_err; 221 } 222 223 init_completion(&dcss->disable_completion); 224 225 pm_runtime_set_autosuspend_delay(dev, 100); 226 pm_runtime_use_autosuspend(dev); 227 pm_runtime_set_suspended(dev); 228 pm_runtime_allow(dev); 229 pm_runtime_enable(dev); 230 231 return dcss; 232 233 clks_err: 234 dcss_clks_release(dcss); 235 236 err: 237 kfree(dcss); 238 239 return ERR_PTR(ret); 240 } 241 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel