Hi Koba, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on drm-tip/drm-tip linus/master v5.14-rc7 next-20210827] [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/Koba-Ko/drm-i915-move-intel_pch-h-to-include-drm/20210825-123642 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: x86_64-randconfig-r004-20210827 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1076082a0d97bd5c16a25ee7cf3dbb6ee4b5a9fe) 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 # https://github.com/0day-ci/linux/commit/5317e1b91c79cc69afdae37e3f868195299f5275 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Koba-Ko/drm-i915-move-intel_pch-h-to-include-drm/20210825-123642 git checkout 5317e1b91c79cc69afdae37e3f868195299f5275 # 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 warnings (new ones prefixed by >>): >> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:1748:42: warning: use of logical '||' with constant operand [-Wconstant-logical-operand] if (id == INTEL_PCH_TGP_DEVICE_ID_TYPE || INTEL_PCH_TGP2_DEVICE_ID_TYPE) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:1748:42: note: use '|' for a bitwise operation if (id == INTEL_PCH_TGP_DEVICE_ID_TYPE || INTEL_PCH_TGP2_DEVICE_ID_TYPE) ^~ | drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:3503:14: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction] int index = GetIndexIntoMasterTable(DATA, FirmwareInfo); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/atombios.h:7151:132: note: expanded from macro 'GetIndexIntoMasterTable' #define GetIndexIntoMasterTable(MasterOrData, FieldName) (((char*)(&((ATOM_MASTER_LIST_OF_##MasterOrData##_TABLES*)0)->FieldName)-(char*)0)/sizeof(USHORT)) ^~~~~~~~~ 2 warnings generated. vim +1748 drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c 1737 1738 static bool intel_tgp_chk(void) 1739 { 1740 struct pci_dev *pch = NULL; 1741 unsigned short id; 1742 1743 while ((pch = pci_get_class(PCI_CLASS_BRIDGE_ISA << 8, pch))) { 1744 if (pch->vendor != PCI_VENDOR_ID_INTEL) 1745 continue; 1746 1747 id = pch->device & INTEL_PCH_DEVICE_ID_MASK; > 1748 if (id == INTEL_PCH_TGP_DEVICE_ID_TYPE || INTEL_PCH_TGP2_DEVICE_ID_TYPE) 1749 return true; 1750 } 1751 1752 return false; 1753 } 1754 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip