From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7563227036230333123==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [mlankhorst:xe 25/165] drivers/gpu/drm/xe/xe_vm.c:124:15: error: no previous prototype for 'xe_pt_create' Date: Tue, 25 Jan 2022 21:21:11 +0800 Message-ID: <202201252146.Y5Mz2bte-lkp@intel.com> List-Id: --===============7563227036230333123== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: git://people.freedesktop.org/~mlankhorst/linux xe head: 4bc3039b4403c76a13d58f7ac1f7c07dca6f88d8 commit: 51863276ebe41e455cac1388eae8b3f2fc33fe0b [25/165] We've got somethi= ng that looks like page tables config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220125= /202201252146.Y5Mz2bte-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): git remote add mlankhorst git://people.freedesktop.org/~mlankhorst/= linux git fetch --no-tags mlankhorst xe git checkout 51863276ebe41e455cac1388eae8b3f2fc33fe0b # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/gpu/drm/xe/xe_vm.c:124:15: error: no previous prototype for 'xe_= pt_create' [-Werror=3Dmissing-prototypes] 124 | struct xe_pt *xe_pt_create(struct xe_device *xe, struct xe_vm *v= m, | ^~~~~~~~~~~~ drivers/gpu/drm/xe/xe_vm.c:273:12: error: 'xe_pt_populate' defined but n= ot used [-Werror=3Dunused-function] 273 | static int xe_pt_populate(struct xe_device *xe, struct xe_vm *vm, | ^~~~~~~~~~~~~~ drivers/gpu/drm/xe/xe_vm.c:228:13: error: 'xe_pt_clear' defined but not = used [-Werror=3Dunused-function] 228 | static void xe_pt_clear(struct xe_pt *pt, uint64_t start, uint64= _t end, | ^~~~~~~~~~~ drivers/gpu/drm/xe/xe_vm.c:114:13: error: 'xe_pt_0_set_live' defined but= not used [-Werror=3Dunused-function] 114 | static bool xe_pt_0_set_live(struct xe_pt_0 *pt, unsigned int id= x) | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/xe/xe_vm.c:49:17: error: 'gen8_pte_encode' defined but n= ot used [-Werror=3Dunused-function] 49 | static uint64_t gen8_pte_encode(dma_addr_t addr, | ^~~~~~~~~~~~~~~ drivers/gpu/drm/xe/xe_vm.c:36:17: error: 'gen8_pde_encode' defined but n= ot used [-Werror=3Dunused-function] 36 | static uint64_t gen8_pde_encode(const dma_addr_t addr, | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/xe_pt_create +124 drivers/gpu/drm/xe/xe_vm.c 123 = > 124 struct xe_pt *xe_pt_create(struct xe_device *xe, struct xe_vm *vm, 125 unsigned int level) 126 { 127 struct xe_pt *pt; 128 struct xe_bo *bo; 129 size_t size; 130 = 131 size =3D level ? sizeof(struct xe_pt_dir) : sizeof(struct xe_pt_0); 132 pt =3D kzalloc(size, GFP_KERNEL); 133 if (!pt) 134 return NULL; 135 = 136 bo =3D xe_bo_create(xe, SZ_4K, vm, ttm_bo_type_kernel, 0); 137 if (IS_ERR(bo)) { 138 kfree(pt); 139 return ERR_CAST(bo); 140 } 141 = 142 pt->bo =3D bo; 143 pt->level =3D level; 144 pt->num_live =3D 0; 145 = 146 return pt; 147 } 148 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7563227036230333123==--