Hi Puranjay, Thank you for the patch! Yet something to improve: [auto build test ERROR on v5.8] [cannot apply to pci/next pm/linux-next v5.9-rc1 next-20200821] [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] url: https://github.com/0day-ci/linux/commits/Puranjay-Mohan/PCI-Add-support-for-LTR/20200822-031519 base: bcf876870b95592b52519ed4aafcf9d95999bc9c config: x86_64-randconfig-a003-20200820 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): >> drivers/pci/pci-acpi.c:1236:8: error: no member named 'max_snoop_latency' in 'struct pci_dev' dev->max_snoop_latency = (u16)elements[1].integer.value | ~~~ ^ >> drivers/pci/pci-acpi.c:1238:8: error: no member named 'max_nosnoop_latency' in 'struct pci_dev' dev->max_nosnoop_latency = (u16)elements[3].integer.value | ~~~ ^ 2 errors generated. # https://github.com/0day-ci/linux/commit/2aef8c301151afccc59ac8c0ad321f4e0f77d453 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Puranjay-Mohan/PCI-Add-support-for-LTR/20200822-031519 git checkout 2aef8c301151afccc59ac8c0ad321f4e0f77d453 vim +1236 drivers/pci/pci-acpi.c 1215 1216 /* pci_acpi_evaluate_ltr_latency 1217 * 1218 * @dev - the pci_dev to evaluate and save latencies 1219 */ 1220 void pci_acpi_evaluate_ltr_latency(struct pci_dev *dev) 1221 { 1222 union acpi_object *obj, *elements; 1223 struct acpi_device *handle; 1224 1225 handle = ACPI_HANDLE(&dev->dev); 1226 if (!handle) 1227 return; 1228 1229 obj = acpi_evaluate_dsm(handle, &pci_acpi_dsm_guid, 0x2, 1230 DSM_PCI_LTR_MAX_LATENCY, NULL); 1231 if (!obj) 1232 return; 1233 1234 if (obj->type == ACPI_TYPE_PACKAGE && obj->package.count == 4) { 1235 elements = obj->package.elements; > 1236 dev->max_snoop_latency = (u16)elements[1].integer.value | 1237 ((u16)elements[0].integer.value << PCI_LTR_SCALE_SHIFT); > 1238 dev->max_nosnoop_latency = (u16)elements[3].integer.value | 1239 ((u16)elements[2].integer.value << PCI_LTR_SCALE_SHIFT); 1240 } 1241 ACPI_FREE(obj); 1242 } 1243 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip