[Intel-gfx] [drm-intel:drm-intel-next-queued 11/59] drivers/gpu/drm/i915/selftests/i915_mock_selftests.h:11: error: unknown field 'mock' specified in initializer
kbuild test robot
fengguang.wu at intel.com
Tue Feb 14 10:32:17 UTC 2017
tree: git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head: d892e9398ecf6defc7972a62227b77dad6be20bd
commit: 953c7f82eb890085c60dbe22578e883d6837c674 [11/59] drm/i915: Provide a hook for selftests
config: x86_64-randconfig-s2-02141638 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
git checkout 953c7f82eb890085c60dbe22578e883d6837c674
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/i915/selftests/i915_selftest.c:68:
>> drivers/gpu/drm/i915/selftests/i915_mock_selftests.h:11: error: unknown field 'mock' specified in initializer
cc1: warnings being treated as errors
>> drivers/gpu/drm/i915/selftests/i915_mock_selftests.h:11: error: missing braces around initializer
drivers/gpu/drm/i915/selftests/i915_mock_selftests.h:11: error: (near initialization for 'mock_selftests[0].<anonymous>')
In file included from drivers/gpu/drm/i915/selftests/i915_selftest.c:74:
>> drivers/gpu/drm/i915/selftests/i915_live_selftests.h:11: error: unknown field 'live' specified in initializer
>> drivers/gpu/drm/i915/selftests/i915_live_selftests.h:11: error: missing braces around initializer
drivers/gpu/drm/i915/selftests/i915_live_selftests.h:11: error: (near initialization for 'live_selftests[0].<anonymous>')
>> drivers/gpu/drm/i915/selftests/i915_live_selftests.h:11: error: initialization from incompatible pointer type
vim +/mock +11 drivers/gpu/drm/i915/selftests/i915_mock_selftests.h
5 *
6 * The function should be of type int function(void). It may be conditionally
7 * compiled using #if IS_ENABLED(DRM_I915_SELFTEST).
8 *
9 * Tests are executed in order by igt/drv_selftest
10 */
> 11 selftest(sanitycheck, i915_mock_sanitycheck) /* keep first (igt selfcheck) */
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 32716 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20170214/54f48b3b/attachment-0001.gz>
More information about the Intel-gfx
mailing list