Re: [PATCH] pci: tegra194: Fix debugfs cleanup for !CONFIG_PCIEASPM

From: kernel test robot
Date: Sat Apr 05 2025 - 22:10:51 EST


Hi Hans,

kernel test robot noticed the following build errors:

[auto build test ERROR on a8662bcd2ff152bfbc751cab20f33053d74d0963]

url: https://github.com/intel-lab-lkp/linux/commits/Hans-Zhang/pci-tegra194-Fix-debugfs-cleanup-for-CONFIG_PCIEASPM/20250405-230047
base: a8662bcd2ff152bfbc751cab20f33053d74d0963
patch link: https://lore.kernel.org/r/20250405145459.26800-1-18255117159%40163.com
patch subject: [PATCH] pci: tegra194: Fix debugfs cleanup for !CONFIG_PCIEASPM
config: arm-randconfig-001-20250406 (https://download.01.org/0day-ci/archive/20250406/202504060938.xa7VrE6O-lkp@xxxxxxxxx/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 92c93f5286b9ff33f27ff694d2dc33da1c07afdd)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250406/202504060938.xa7VrE6O-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504060938.xa7VrE6O-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/pci/controller/dwc/pcie-tegra194.c:2301:18: error: incompatible pointer types passing 'struct dentry *' to parameter of type 'struct tegra_pcie_dw *' [-Werror,-Wincompatible-pointer-types]
2301 | deinit_debugfs(pcie->debugfs);
| ^~~~~~~~~~~~~
drivers/pci/controller/dwc/pcie-tegra194.c:732:57: note: passing argument to parameter 'pcie' here
732 | static inline void deinit_debugfs(struct tegra_pcie_dw *pcie) { return; }
| ^
drivers/pci/controller/dwc/pcie-tegra194.c:2420:18: error: incompatible pointer types passing 'struct dentry *' to parameter of type 'struct tegra_pcie_dw *' [-Werror,-Wincompatible-pointer-types]
2420 | deinit_debugfs(pcie->debugfs);
| ^~~~~~~~~~~~~
drivers/pci/controller/dwc/pcie-tegra194.c:732:57: note: passing argument to parameter 'pcie' here
732 | static inline void deinit_debugfs(struct tegra_pcie_dw *pcie) { return; }
| ^
2 errors generated.


vim +2301 drivers/pci/controller/dwc/pcie-tegra194.c

2292
2293 static void tegra_pcie_dw_remove(struct platform_device *pdev)
2294 {
2295 struct tegra_pcie_dw *pcie = platform_get_drvdata(pdev);
2296
2297 if (pcie->of_data->mode == DW_PCIE_RC_TYPE) {
2298 if (!pcie->link_state)
2299 return;
2300
> 2301 deinit_debugfs(pcie->debugfs);
2302 tegra_pcie_deinit_controller(pcie);
2303 pm_runtime_put_sync(pcie->dev);
2304 } else {
2305 disable_irq(pcie->pex_rst_irq);
2306 pex_ep_event_pex_rst_assert(pcie);
2307 }
2308
2309 pm_runtime_disable(pcie->dev);
2310 tegra_bpmp_put(pcie->bpmp);
2311 if (pcie->pex_refclk_sel_gpiod)
2312 gpiod_set_value(pcie->pex_refclk_sel_gpiod, 0);
2313 }
2314

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki