[Intel-gfx] [drm-intel:for-linux-next 479/497] drivers/gpu/drm/i915/i915_gem_gtt.c:1086:26: sparse: Using plain integer as NULL pointer
kbuild test robot
fengguang.wu at intel.com
Thu Aug 6 13:17:27 PDT 2015
tree: git://anongit.freedesktop.org/drm-intel for-linux-next
head: 176b15ab89a89f5bd5f73f96afcc5c4a6105fa5e
commit: fb6c09f3ae620c5e0db5b4c2058a9c25b52197f9 [479/497] drm/i915/gen8: Make pdp allocation more dynamic
reproduce:
# apt-get install sparse
git checkout fb6c09f3ae620c5e0db5b4c2058a9c25b52197f9
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/i915/i915_gem_gtt.c:1086:26: sparse: Using plain integer as NULL pointer
vim +1086 drivers/gpu/drm/i915/i915_gem_gtt.c
1070 if (IS_ENABLED(CONFIG_X86_32))
1071 /* While we have a proliferation of size_t variables
1072 * we cannot represent the full ppgtt size on 32bit,
1073 * so limit it to the same size as the GGTT (currently
1074 * 2GiB).
1075 */
1076 ppgtt->base.total = to_i915(ppgtt->base.dev)->gtt.base.total;
1077 ppgtt->base.cleanup = gen8_ppgtt_cleanup;
1078 ppgtt->base.allocate_va_range = gen8_alloc_va_range;
1079 ppgtt->base.insert_entries = gen8_ppgtt_insert_entries;
1080 ppgtt->base.clear_range = gen8_ppgtt_clear_range;
1081 ppgtt->base.unbind_vma = ppgtt_unbind_vma;
1082 ppgtt->base.bind_vma = ppgtt_bind_vma;
1083
1084 ppgtt->switch_mm = gen8_mm_switch;
1085
> 1086 ret = __pdp_init(false, &ppgtt->pdp);
1087
1088 if (ret)
1089 goto free_scratch;
1090
1091 return 0;
1092
1093 free_scratch:
1094 gen8_free_scratch(&ppgtt->base);
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
More information about the Intel-gfx
mailing list