All of lore.kernel.org
 help / color / mirror / Atom feed
* [mlankhorst:xe 25/165] drivers/gpu/drm/xe/xe_vm.c:124:15: error: no previous prototype for 'xe_pt_create'
@ 2022-01-25 13:21 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-25 13:21 UTC (permalink / raw)
  To: Jason Ekstrand; +Cc: kbuild-all, linux-kernel, Maarten Lankhorst

tree:   git://people.freedesktop.org/~mlankhorst/linux xe
head:   4bc3039b4403c76a13d58f7ac1f7c07dca6f88d8
commit: 51863276ebe41e455cac1388eae8b3f2fc33fe0b [25/165] We've got something that looks like page tables
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220125/202201252146.Y5Mz2bte-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 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=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/xe/xe_vm.c:124:15: error: no previous prototype for 'xe_pt_create' [-Werror=missing-prototypes]
     124 | struct xe_pt *xe_pt_create(struct xe_device *xe, struct xe_vm *vm,
         |               ^~~~~~~~~~~~
   drivers/gpu/drm/xe/xe_vm.c:273:12: error: 'xe_pt_populate' defined but not used [-Werror=unused-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=unused-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=unused-function]
     114 | static bool xe_pt_0_set_live(struct xe_pt_0 *pt, unsigned int idx)
         |             ^~~~~~~~~~~~~~~~
   drivers/gpu/drm/xe/xe_vm.c:49:17: error: 'gen8_pte_encode' defined but not used [-Werror=unused-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 not used [-Werror=unused-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 = level ? sizeof(struct xe_pt_dir) : sizeof(struct xe_pt_0);
   132		pt = kzalloc(size, GFP_KERNEL);
   133		if (!pt)
   134			return NULL;
   135	
   136		bo = 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 = bo;
   143		pt->level = level;
   144		pt->num_live = 0;
   145	
   146		return pt;
   147	}
   148	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [mlankhorst:xe 25/165] drivers/gpu/drm/xe/xe_vm.c:124:15: error: no previous prototype for 'xe_pt_create'
@ 2022-01-25 13:21 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-25 13:21 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3137 bytes --]

tree:   git://people.freedesktop.org/~mlankhorst/linux xe
head:   4bc3039b4403c76a13d58f7ac1f7c07dca6f88d8
commit: 51863276ebe41e455cac1388eae8b3f2fc33fe0b [25/165] We've got something 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=1 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=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/xe/xe_vm.c:124:15: error: no previous prototype for 'xe_pt_create' [-Werror=missing-prototypes]
     124 | struct xe_pt *xe_pt_create(struct xe_device *xe, struct xe_vm *vm,
         |               ^~~~~~~~~~~~
   drivers/gpu/drm/xe/xe_vm.c:273:12: error: 'xe_pt_populate' defined but not used [-Werror=unused-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=unused-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=unused-function]
     114 | static bool xe_pt_0_set_live(struct xe_pt_0 *pt, unsigned int idx)
         |             ^~~~~~~~~~~~~~~~
   drivers/gpu/drm/xe/xe_vm.c:49:17: error: 'gen8_pte_encode' defined but not used [-Werror=unused-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 not used [-Werror=unused-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 = level ? sizeof(struct xe_pt_dir) : sizeof(struct xe_pt_0);
   132		pt = kzalloc(size, GFP_KERNEL);
   133		if (!pt)
   134			return NULL;
   135	
   136		bo = 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 = bo;
   143		pt->level = level;
   144		pt->num_live = 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-25 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25 13:21 [mlankhorst:xe 25/165] drivers/gpu/drm/xe/xe_vm.c:124:15: error: no previous prototype for 'xe_pt_create' kernel test robot
2022-01-25 13:21 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.