From: kernel test robot <lkp@intel.com>
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 [thread overview]
Message-ID: <202201252146.Y5Mz2bte-lkp@intel.com> (raw)
[-- 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
reply other threads:[~2022-01-25 13:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202201252146.Y5Mz2bte-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.