Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: use linux/stddef.h due to "isystem: trim/fixup stdarg.h and other headers"

After merging the drm tree, today's linux-next build (x86_64 allmodconfig)
failed like this:

In file included from drivers/gpu/drm/i915/i915_debugfs.c:39:
drivers/gpu/drm/i915/gt/intel_gt_requests.h:9:10: fatal error: stddef.h: No such file or directory
9 | #include <stddef.h>
| ^~~~~~~~~~

Caused by commit

564f963eabd1 ("isystem: delete global -isystem compile option")

from the kbuild tree interacting with commit

b97060a99b01 ("drm/i915/guc: Update intel_gt_wait_for_idle to work with GuC")

Fixes: b97060a99b01 ("drm/i915/guc: Update intel_gt_wait_for_idle to work with GuC")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210820123348.6535a87e@canb.auug.org.au

authored by

Stephen Rothwell and committed by
Daniel Vetter
1645cca9 8f0284f1

+1 -1
+1 -1
drivers/gpu/drm/i915/gt/intel_gt_requests.h
··· 6 6 #ifndef INTEL_GT_REQUESTS_H 7 7 #define INTEL_GT_REQUESTS_H 8 8 9 - #include <stddef.h> 9 + #include <linux/stddef.h> 10 10 11 11 struct intel_engine_cs; 12 12 struct intel_gt;