Re: [PATCH v2 2/3] PCI: dwc: Add sysfs support for PTM context

From: kernel test robot
Date: Wed Mar 26 2025 - 17:43:44 EST


Hi Manivannan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 1f5a69f1b3132054d8d82b8d7546d0af6a2ed4f6]

url: https://github.com/intel-lab-lkp/linux/commits/Manivannan-Sadhasivam-via-B4-Relay/PCI-Add-sysfs-support-for-exposing-PTM-context/20250324-181039
base: 1f5a69f1b3132054d8d82b8d7546d0af6a2ed4f6
patch link: https://lore.kernel.org/r/20250324-pcie-ptm-v2-2-c7d8c3644b4a%40linaro.org
patch subject: [PATCH v2 2/3] PCI: dwc: Add sysfs support for PTM context
config: i386-randconfig-062-20250326 (https://download.01.org/0day-ci/archive/20250327/202503270545.z7lzaIQz-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.1 (https://github.com/llvm/llvm-project 424c2d9b7e4de40d0804dd374721e6411c27d1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250327/202503270545.z7lzaIQz-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/202503270545.z7lzaIQz-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/pci/controller/dwc/pcie-designware-sysfs.c:222:21: sparse: sparse: symbol 'dw_pcie_ptm_ops' was not declared. Should it be static?

vim +/dw_pcie_ptm_ops +222 drivers/pci/controller/dwc/pcie-designware-sysfs.c

221
> 222 struct pcie_ptm_ops dw_pcie_ptm_ops = {
223 .check_capability = dw_pcie_ptm_check_capability,
224 .context_update_store = dw_pcie_ptm_context_update_store,
225 .context_update_show = dw_pcie_ptm_context_update_show,
226 .context_valid_store = dw_pcie_ptm_context_valid_store,
227 .context_valid_show = dw_pcie_ptm_context_valid_show,
228 .local_clock_show = dw_pcie_ptm_local_clock_show,
229 .master_clock_show = dw_pcie_ptm_master_clock_show,
230 .t1_show = dw_pcie_ptm_t1_show,
231 .t2_show = dw_pcie_ptm_t2_show,
232 .t3_show = dw_pcie_ptm_t3_show,
233 .t4_show = dw_pcie_ptm_t4_show,
234 .context_update_visible = dw_pcie_ptm_context_update_visible,
235 .context_valid_visible = dw_pcie_ptm_context_valid_visible,
236 .local_clock_visible = dw_pcie_ptm_local_clock_visible,
237 .master_clock_visible = dw_pcie_ptm_master_clock_visible,
238 .t1_visible = dw_pcie_ptm_t1_visible,
239 .t2_visible = dw_pcie_ptm_t2_visible,
240 .t3_visible = dw_pcie_ptm_t3_visible,
241 .t4_visible = dw_pcie_ptm_t4_visible,
242 };
243

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