* [thomash:topic/ttm_branch 30/33] drivers/gpu/drm/i915/i915_ttm.c:9:5: warning: no previous prototype for 'i915_ttm_device_init'
@ 2021-04-26 14:50 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-26 14:50 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3338 bytes --]
tree: git://people.freedesktop.org/~thomash/linux topic/ttm_branch
head: 4dbcc3aefdd4cfb310a9eec11837495aa7886250
commit: c7d3fbec16a37e6d97b00578214c8305b765768b [30/33] drm/i915/ttm: Initialize the ttm device and memory managers
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add thomash git://people.freedesktop.org/~thomash/linux
git fetch --no-tags thomash topic/ttm_branch
git checkout c7d3fbec16a37e6d97b00578214c8305b765768b
# save the attached .config to linux build tree
make W=1 W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/i915_ttm.c:9:5: warning: no previous prototype for 'i915_ttm_device_init' [-Wmissing-prototypes]
9 | int i915_ttm_device_init(struct drm_i915_private *dev_priv)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/i915_ttm.c:18:6: warning: no previous prototype for 'i915_ttm_device_fini' [-Wmissing-prototypes]
18 | void i915_ttm_device_fini(struct drm_i915_private *dev_priv)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/i915_ttm.c:40:5: warning: no previous prototype for 'i915_ttm_manager_init' [-Wmissing-prototypes]
40 | int i915_ttm_manager_init(struct intel_memory_region *mem)
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/i915_ttm.c:49:6: warning: no previous prototype for 'i915_ttm_manager_fini' [-Wmissing-prototypes]
49 | void i915_ttm_manager_fini(struct intel_memory_region *mem)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/i915_ttm_device_init +9 drivers/gpu/drm/i915/i915_ttm.c
8
> 9 int i915_ttm_device_init(struct drm_i915_private *dev_priv)
10 {
11 struct drm_device *drm = &dev_priv->drm;
12
13 return ttm_device_init(&dev_priv->bdev, &i915_ttm_bo_driver,
14 drm->dev, drm->anon_inode->i_mapping,
15 drm->vma_offset_manager, false, false);
16 }
17
> 18 void i915_ttm_device_fini(struct drm_i915_private *dev_priv)
19 {
20 ttm_device_fini(&dev_priv->bdev);
21 }
22
23 /*
24 * Map the i915 memory regions to TTM memory types. We use the
25 * driver-private types for now, reserving TTM_PL_VRAM for stolen
26 * memory and TTM_PL_TT for GGTT use if decided to implement this.
27 */
28 static int i915_region_to_ttm_type(struct intel_memory_region *mem)
29 {
30 int type;
31
32 GEM_BUG_ON(mem->type != INTEL_MEMORY_LOCAL);
33
34 type = mem->instance + TTM_PL_PRIV;
35 GEM_BUG_ON(type >= TTM_NUM_MEM_TYPES);
36
37 return type;
38 }
39
> 40 int i915_ttm_manager_init(struct intel_memory_region *mem)
41 {
42 return ttm_range_man_init(&mem->i915->bdev,
43 i915_region_to_ttm_type(mem),
44 false,
45 resource_size(&mem->region) >>
46 PAGE_SHIFT);
47 }
48
> 49 void i915_ttm_manager_fini(struct intel_memory_region *mem)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 41213 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-26 14:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26 14:50 [thomash:topic/ttm_branch 30/33] drivers/gpu/drm/i915/i915_ttm.c:9:5: warning: no previous prototype for 'i915_ttm_device_init' 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.