[PATCH 3/3] drm/ttm: remove io_reserve_lru handling v2
kernel test robot
lkp at intel.com
Tue Sep 1 19:20:00 UTC 2020
Hi "Christian,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20200828]
[cannot apply to linus/master v5.9-rc3 v5.9-rc2 v5.9-rc1 v5.9-rc3]
[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/Christian-K-nig/drm-ttm-make-sure-that-we-always-zero-init-mem-bus-v2/20200901-230736
base: b36c969764ab12faebb74711c942fa3e6eaf1e96
config: x86_64-randconfig-a006-20200901 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/ttm/ttm_bo_util.c: In function 'ttm_resource_iounmap':
>> drivers/gpu/drm/ttm/ttm_bo_util.c:157:31: warning: variable 'man' set but not used [-Wunused-but-set-variable]
157 | struct ttm_resource_manager *man;
| ^~~
In file included from include/linux/energy_model.h:10,
from include/linux/device.h:16,
from include/drm/drm_print.h:32,
from include/drm/drm_mm.h:49,
from include/drm/ttm/ttm_bo_driver.h:33,
from drivers/gpu/drm/ttm/ttm_bo_util.c:32:
At top level:
include/linux/sched/topology.h:40:3: warning: 'sd_flag_debug' defined but not used [-Wunused-const-variable=]
40 | } sd_flag_debug[] = {
| ^~~~~~~~~~~~~
In file included from include/linux/energy_model.h:10,
from include/linux/device.h:16,
from include/drm/drm_print.h:32,
from include/drm/drm_mm.h:49,
from include/drm/ttm/ttm_bo_driver.h:33,
from drivers/gpu/drm/ttm/ttm_bo_util.c:32:
include/linux/sched/topology.h:30:27: warning: 'SD_DEGENERATE_GROUPS_MASK' defined but not used [-Wunused-const-variable=]
30 | static const unsigned int SD_DEGENERATE_GROUPS_MASK =
| ^~~~~~~~~~~~~~~~~~~~~~~~~
# https://github.com/0day-ci/linux/commit/640f5da8a063c527c64720caa2c7b8b29aee5bb3
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christian-K-nig/drm-ttm-make-sure-that-we-always-zero-init-mem-bus-v2/20200901-230736
git checkout 640f5da8a063c527c64720caa2c7b8b29aee5bb3
vim +/man +157 drivers/gpu/drm/ttm/ttm_bo_util.c
ba4e7d973dd09b Thomas Hellstrom 2009-06-10 152
2966141ad2dda2 Dave Airlie 2020-08-04 153 static void ttm_resource_iounmap(struct ttm_bo_device *bdev,
2966141ad2dda2 Dave Airlie 2020-08-04 154 struct ttm_resource *mem,
ba4e7d973dd09b Thomas Hellstrom 2009-06-10 155 void *virtual)
ba4e7d973dd09b Thomas Hellstrom 2009-06-10 156 {
9de59bc201496f Dave Airlie 2020-08-04 @157 struct ttm_resource_manager *man;
ba4e7d973dd09b Thomas Hellstrom 2009-06-10 158
9eca33f4a13919 Dave Airlie 2020-08-04 159 man = ttm_manager_type(bdev, mem->mem_type);
ba4e7d973dd09b Thomas Hellstrom 2009-06-10 160
0c321c79627189 Jerome Glisse 2010-04-07 161 if (virtual && mem->bus.addr == NULL)
ba4e7d973dd09b Thomas Hellstrom 2009-06-10 162 iounmap(virtual);
82c5da6bf8b55a Jerome Glisse 2010-04-09 163 ttm_mem_io_free(bdev, mem);
ba4e7d973dd09b Thomas Hellstrom 2009-06-10 164 }
ba4e7d973dd09b Thomas Hellstrom 2009-06-10 165
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 31509 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200902/3fa64f5b/attachment-0001.gz>
More information about the dri-devel
mailing list