* [drm-intel:for-linux-next-fixes 5/5] drivers/gpu//drm/i915/intel_ringbuffer.c:89:11: error: implicit declaration of function 'i915_scratch_offset'; did you mean 'i915_ggtt_offset'?
@ 2018-12-12 8:31 kbuild test robot
2018-12-12 13:46 ` Joonas Lahtinen
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2018-12-12 8:31 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx, kbuild-all, dri-devel
[-- Attachment #1: Type: text/plain, Size: 1929 bytes --]
tree: git://anongit.freedesktop.org/drm-intel for-linux-next-fixes
head: eeb139ca4b24d515265ad75f668333431896b1aa
commit: eeb139ca4b24d515265ad75f668333431896b1aa [5/5] drm/i915: Flush GPU relocs harder for gen3
config: i386-randconfig-x073-201849 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout eeb139ca4b24d515265ad75f668333431896b1aa
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
drivers/gpu//drm/i915/intel_ringbuffer.c: In function 'gen2_render_ring_flush':
>> drivers/gpu//drm/i915/intel_ringbuffer.c:89:11: error: implicit declaration of function 'i915_scratch_offset'; did you mean 'i915_ggtt_offset'? [-Werror=implicit-function-declaration]
*cs++ = i915_scratch_offset(rq->i915);
^~~~~~~~~~~~~~~~~~~
i915_ggtt_offset
cc1: some warnings being treated as errors
vim +89 drivers/gpu//drm/i915/intel_ringbuffer.c
68
69 static int
70 gen2_render_ring_flush(struct i915_request *rq, u32 mode)
71 {
72 unsigned int num_store_dw;
73 u32 cmd, *cs;
74
75 cmd = MI_FLUSH;
76 num_store_dw = 0;
77 if (mode & EMIT_INVALIDATE)
78 cmd |= MI_READ_FLUSH;
79 if (mode & EMIT_FLUSH)
80 num_store_dw = 4;
81
82 cs = intel_ring_begin(rq, 2 + 3 * num_store_dw);
83 if (IS_ERR(cs))
84 return PTR_ERR(cs);
85
86 *cs++ = cmd;
87 while (num_store_dw--) {
88 *cs++ = MI_STORE_DWORD_IMM | MI_MEM_VIRTUAL;
> 89 *cs++ = i915_scratch_offset(rq->i915);
90 *cs++ = 0;
91 }
92 *cs++ = MI_FLUSH | MI_NO_WRITE_FLUSH;
93
94 intel_ring_advance(rq, cs);
95
96 return 0;
97 }
98
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30366 bytes --]
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [drm-intel:for-linux-next-fixes 5/5] drivers/gpu//drm/i915/intel_ringbuffer.c:89:11: error: implicit declaration of function 'i915_scratch_offset'; did you mean 'i915_ggtt_offset'?
2018-12-12 8:31 [drm-intel:for-linux-next-fixes 5/5] drivers/gpu//drm/i915/intel_ringbuffer.c:89:11: error: implicit declaration of function 'i915_scratch_offset'; did you mean 'i915_ggtt_offset'? kbuild test robot
@ 2018-12-12 13:46 ` Joonas Lahtinen
0 siblings, 0 replies; 2+ messages in thread
From: Joonas Lahtinen @ 2018-12-12 13:46 UTC (permalink / raw)
To: Chris Wilson, kbuild test robot; +Cc: intel-gfx, kbuild-all, dri-devel
Should be fixed already with an updated -fixes.
Regards, Joonas
Quoting kbuild test robot (2018-12-12 10:31:58)
> tree: git://anongit.freedesktop.org/drm-intel for-linux-next-fixes
> head: eeb139ca4b24d515265ad75f668333431896b1aa
> commit: eeb139ca4b24d515265ad75f668333431896b1aa [5/5] drm/i915: Flush GPU relocs harder for gen3
> config: i386-randconfig-x073-201849 (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
> reproduce:
> git checkout eeb139ca4b24d515265ad75f668333431896b1aa
> # save the attached .config to linux build tree
> make ARCH=i386
>
> All errors (new ones prefixed by >>):
>
> drivers/gpu//drm/i915/intel_ringbuffer.c: In function 'gen2_render_ring_flush':
> >> drivers/gpu//drm/i915/intel_ringbuffer.c:89:11: error: implicit declaration of function 'i915_scratch_offset'; did you mean 'i915_ggtt_offset'? [-Werror=implicit-function-declaration]
> *cs++ = i915_scratch_offset(rq->i915);
> ^~~~~~~~~~~~~~~~~~~
> i915_ggtt_offset
> cc1: some warnings being treated as errors
>
> vim +89 drivers/gpu//drm/i915/intel_ringbuffer.c
>
> 68
> 69 static int
> 70 gen2_render_ring_flush(struct i915_request *rq, u32 mode)
> 71 {
> 72 unsigned int num_store_dw;
> 73 u32 cmd, *cs;
> 74
> 75 cmd = MI_FLUSH;
> 76 num_store_dw = 0;
> 77 if (mode & EMIT_INVALIDATE)
> 78 cmd |= MI_READ_FLUSH;
> 79 if (mode & EMIT_FLUSH)
> 80 num_store_dw = 4;
> 81
> 82 cs = intel_ring_begin(rq, 2 + 3 * num_store_dw);
> 83 if (IS_ERR(cs))
> 84 return PTR_ERR(cs);
> 85
> 86 *cs++ = cmd;
> 87 while (num_store_dw--) {
> 88 *cs++ = MI_STORE_DWORD_IMM | MI_MEM_VIRTUAL;
> > 89 *cs++ = i915_scratch_offset(rq->i915);
> 90 *cs++ = 0;
> 91 }
> 92 *cs++ = MI_FLUSH | MI_NO_WRITE_FLUSH;
> 93
> 94 intel_ring_advance(rq, cs);
> 95
> 96 return 0;
> 97 }
> 98
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-12 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-12 8:31 [drm-intel:for-linux-next-fixes 5/5] drivers/gpu//drm/i915/intel_ringbuffer.c:89:11: error: implicit declaration of function 'i915_scratch_offset'; did you mean 'i915_ggtt_offset'? kbuild test robot
2018-12-12 13:46 ` Joonas Lahtinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).