Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp62087lqb; Tue, 28 May 2024 08:53:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUMDvUt/kjVI3cgtd2UDBDLYr38mCD53YUE7Rcnd3sfu74b1wH5rdwH+bAcJ3x+WHi+DaB1xfpigcUKXHdCwiko6J+w1xXT5tvBaRP87A== X-Google-Smtp-Source: AGHT+IHhhuQAZ1QcedBZT+wNu/FP/GF3QxlGamm7G5TLZpLqmADBQzGLqPPF225wAqFFC1JJdx48 X-Received: by 2002:a50:8d08:0:b0:574:ecf3:f7d1 with SMTP id 4fb4d7f45d1cf-57850aeba35mr11531937a12.0.1716911626662; Tue, 28 May 2024 08:53:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716911626; cv=pass; d=google.com; s=arc-20160816; b=YuCBcRlbr5+0g+zwO9+4HNBLUdl5VK77gI5PfkfJ8/hi8xubnqraCEsmqCKqN451dV PH7mkeXaNnIF4JHOlCHTlJWU+o9vnZyw9to0cLTSVT3sGz3Bn49VZwIQHMdhWySuQgxL 1PPeHULazIULAico0TdhxCbs8Xu/7wwGO4PVuoH/PafSbRR0lJ1ind96Zl6F5GEzDwAd Hzaw38ggOvy90SrsfXOh91kh3w1+sOTdEItV3yInDrafbh6e1GwGfob61ckL5j8XfWte NBtplIiek8Dw22t6LKhZvDLmkV/R2dZpnx8J5D7iAMUpmXXstPSg6ODmwxUlLiKhsX1M uVHw== ARC-Message-Signature: i=2; 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=oYQX6aVN2EsAoDM1WW6VCynk37ZESdBXdBg2Zsnlli8=; fh=J/Iey52eWosxzlGE2M5O0vN0ql9vWaXDw7TC5HNm/WA=; b=oOUCX3OJ9EXiD7x9eZhExQUAX2/uzltjBlhMMd0balKdmcvMMK8F8hoEuJ/rcUXY/b umrFpOzQmUIhe/hKomiFK+GpyFPdm9nieREEimSLYc4AwOwZC31p/fTqAHJ8MVhhoxcG npL7JxAuNS3kppX6VzTxYOeocEJxv0mC179ii3Hxi8wtIH+YM5PZjZnGr3q2pO5qaSl7 ifyQG8bnJj7OCMMqkgaZ/ac99Vpt4YRtTuLRO7xw13fNxedYxODR0DxcTgMk6m6y2NE6 sRTswNzBGSQztzFiMIucBXv/NUhC1INgRHF3hKZ61vkZvJMDrYIzlKrheg62QPLQ2Eax gCZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mXI2zp7Z; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-192696-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-578524b6c47si5141123a12.573.2024.05.28.08.53.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 08:53:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192696-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mXI2zp7Z; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-192696-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192696-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3C3B91F212E5 for ; Tue, 28 May 2024 15:53:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC700171671; Tue, 28 May 2024 15:53:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mXI2zp7Z" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 A99CF170851 for ; Tue, 28 May 2024 15:53:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716911618; cv=none; b=XQETYBlzNPGFOmyUWbJbjcyTmE7GagasPgsU6KNhGMrD0wSde+Al3MLVAiVEfsJt8N8FTmVO08FuEZpC6ogCj6IQAzYJ6FeYNJq1h/dHGdaCL3zWQy90HjI5zBELZeJI0yLnvuJIhv66DkLKXoPBpN3qgVVAeOkyo8zTAubP/Zc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716911618; c=relaxed/simple; bh=bebSNINfLGRXjEL3kdOR1gvaAlgvXerHGRc6bFG72XM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FCO0pk5ZafCbECVYF9A9pJUsrcBoa8xDGt/WxgFCBFK78j4V2eFlxjihb5V+7S19a53JAHch3GzD/8dG8wCjjPad0cWLuZOChk8E4HadMf7SGY1zIKMuXPoqFM/El9auPvhXWrRNTpL3Dyjj3RQk/oxkCXwM2TRRq9DcmSoXv5w= 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=mXI2zp7Z; arc=none smtp.client-ip=192.198.163.14 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=1716911617; x=1748447617; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bebSNINfLGRXjEL3kdOR1gvaAlgvXerHGRc6bFG72XM=; b=mXI2zp7ZQsjXBHVXtYpJrC69a+8aA8pC0S8WUYaiFM2Pkq3wdjgnsgwp muH2iu30ZziNXJcf4RVfSX+4XwEAlscmI5vTzOY/+JiLwBeJW4djuvZ+F Mu0EmMsUDoZjCqE/U8176H66cr8LNbuYKUls/NazKFWPOXvrpBMNI82/T PyYa0j1UfHdgNbOdddApK5wCv6D5q5nk7u/O0eZlsKrRTW068cnS7tMqa 2Zf18H1tZIZYbmF9m4LSpI6RyUK0ZYKtmk5xJ6H0qjlOITJJB7yIHe3O7 BvE6jrn2yBpMmkurlmdyH3hTMSVDnBenFUZ5qLm83wlEE4EdUc7ZFEhYq Q==; X-CSE-ConnectionGUID: g5gLuwjYT0mO8iUfFVdwGg== X-CSE-MsgGUID: sva2hfgFRlGDpjcmU4iPMw== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13488885" X-IronPort-AV: E=Sophos;i="6.08,195,1712646000"; d="scan'208";a="13488885" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 08:53:36 -0700 X-CSE-ConnectionGUID: MtRu17F0SRKNFeJRdnL+dw== X-CSE-MsgGUID: 1Akhkm+dTiWzxcfzcudOOA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,195,1712646000"; d="scan'208";a="72551972" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by orviesa001.jf.intel.com with ESMTP; 28 May 2024 08:53:30 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sBz7l-000CPL-0V; Tue, 28 May 2024 15:53:04 +0000 Date: Tue, 28 May 2024 23:51:49 +0800 From: kernel test robot To: Alexander Stein , Liu Ying , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , 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, Alexander Stein , dri-devel@lists.freedesktop.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] drm/bridge: imx93-mipi-dsi: Use dev_err_probe Message-ID: <202405282314.dvr8cFY0-lkp@intel.com> References: <20240528093922.194684-1-alexander.stein@ew.tq-group.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: <20240528093922.194684-1-alexander.stein@ew.tq-group.com> Hi Alexander, kernel test robot noticed the following build warnings: [auto build test WARNING on shawnguo/for-next] [also build test WARNING on linus/master v6.10-rc1 next-20240528] [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/Alexander-Stein/drm-bridge-imx93-mipi-dsi-Use-dev_err_probe/20240528-174332 base: https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next patch link: https://lore.kernel.org/r/20240528093922.194684-1-alexander.stein%40ew.tq-group.com patch subject: [PATCH 1/1] drm/bridge: imx93-mipi-dsi: Use dev_err_probe config: arm-randconfig-001-20240528 (https://download.01.org/0day-ci/archive/20240528/202405282314.dvr8cFY0-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240528/202405282314.dvr8cFY0-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/202405282314.dvr8cFY0-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c: In function 'imx93_dsi_probe': >> drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c:837:13: warning: unused variable 'ret' [-Wunused-variable] 837 | int ret; | ^~~ vim +/ret +837 drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c ce62f8ea7e3f8a8 Liu Ying 2023-08-21 831 ce62f8ea7e3f8a8 Liu Ying 2023-08-21 832 static int imx93_dsi_probe(struct platform_device *pdev) ce62f8ea7e3f8a8 Liu Ying 2023-08-21 833 { ce62f8ea7e3f8a8 Liu Ying 2023-08-21 834 struct device *dev = &pdev->dev; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 835 struct device_node *np = dev->of_node; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 836 struct imx93_dsi *dsi; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 @837 int ret; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 838 ce62f8ea7e3f8a8 Liu Ying 2023-08-21 839 dsi = devm_kzalloc(dev, sizeof(*dsi), GFP_KERNEL); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 840 if (!dsi) ce62f8ea7e3f8a8 Liu Ying 2023-08-21 841 return -ENOMEM; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 842 ce62f8ea7e3f8a8 Liu Ying 2023-08-21 843 dsi->regmap = syscon_regmap_lookup_by_phandle(np, "fsl,media-blk-ctrl"); b407e810c9a5b87 Alexander Stein 2024-05-28 844 if (IS_ERR(dsi->regmap)) b407e810c9a5b87 Alexander Stein 2024-05-28 845 return dev_err_probe(dev, PTR_ERR(dsi->regmap), b407e810c9a5b87 Alexander Stein 2024-05-28 846 "failed to get block ctrl regmap"); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 847 ce62f8ea7e3f8a8 Liu Ying 2023-08-21 848 dsi->clk_pixel = devm_clk_get(dev, "pix"); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 849 if (IS_ERR(dsi->clk_pixel)) ce62f8ea7e3f8a8 Liu Ying 2023-08-21 850 return dev_err_probe(dev, PTR_ERR(dsi->clk_pixel), ce62f8ea7e3f8a8 Liu Ying 2023-08-21 851 "failed to get pixel clock\n"); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 852 ce62f8ea7e3f8a8 Liu Ying 2023-08-21 853 dsi->clk_cfg = devm_clk_get(dev, "phy_cfg"); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 854 if (IS_ERR(dsi->clk_cfg)) ce62f8ea7e3f8a8 Liu Ying 2023-08-21 855 return dev_err_probe(dev, PTR_ERR(dsi->clk_cfg), ce62f8ea7e3f8a8 Liu Ying 2023-08-21 856 "failed to get phy cfg clock\n"); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 857 ce62f8ea7e3f8a8 Liu Ying 2023-08-21 858 dsi->clk_ref = devm_clk_get(dev, "phy_ref"); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 859 if (IS_ERR(dsi->clk_ref)) ce62f8ea7e3f8a8 Liu Ying 2023-08-21 860 return dev_err_probe(dev, PTR_ERR(dsi->clk_ref), ce62f8ea7e3f8a8 Liu Ying 2023-08-21 861 "failed to get phy ref clock\n"); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 862 ce62f8ea7e3f8a8 Liu Ying 2023-08-21 863 dsi->ref_clk_rate = clk_get_rate(dsi->clk_ref); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 864 if (dsi->ref_clk_rate < REF_CLK_RATE_MIN || ce62f8ea7e3f8a8 Liu Ying 2023-08-21 865 dsi->ref_clk_rate > REF_CLK_RATE_MAX) { ce62f8ea7e3f8a8 Liu Ying 2023-08-21 866 dev_err(dev, "invalid phy ref clock rate %lu\n", ce62f8ea7e3f8a8 Liu Ying 2023-08-21 867 dsi->ref_clk_rate); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 868 return -EINVAL; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 869 } ce62f8ea7e3f8a8 Liu Ying 2023-08-21 870 dev_dbg(dev, "phy ref clock rate: %lu\n", dsi->ref_clk_rate); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 871 ce62f8ea7e3f8a8 Liu Ying 2023-08-21 872 dsi->dev = dev; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 873 dsi->pdata.max_data_lanes = 4; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 874 dsi->pdata.mode_valid = imx93_dsi_mode_valid; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 875 dsi->pdata.mode_fixup = imx93_dsi_mode_fixup; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 876 dsi->pdata.get_input_bus_fmts = imx93_dsi_get_input_bus_fmts; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 877 dsi->pdata.phy_ops = &imx93_dsi_phy_ops; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 878 dsi->pdata.host_ops = &imx93_dsi_host_ops; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 879 dsi->pdata.priv_data = dsi; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 880 platform_set_drvdata(pdev, dsi); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 881 ce62f8ea7e3f8a8 Liu Ying 2023-08-21 882 dsi->dmd = dw_mipi_dsi_probe(pdev, &dsi->pdata); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 883 if (IS_ERR(dsi->dmd)) ce62f8ea7e3f8a8 Liu Ying 2023-08-21 884 return dev_err_probe(dev, PTR_ERR(dsi->dmd), ce62f8ea7e3f8a8 Liu Ying 2023-08-21 885 "failed to probe dw_mipi_dsi\n"); ce62f8ea7e3f8a8 Liu Ying 2023-08-21 886 ce62f8ea7e3f8a8 Liu Ying 2023-08-21 887 return 0; ce62f8ea7e3f8a8 Liu Ying 2023-08-21 888 } ce62f8ea7e3f8a8 Liu Ying 2023-08-21 889 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki