Skip to content

Commit 9d7516b

Browse files
lucasdemarchitursulin
authored andcommitted
drm/i915: Fix header test for !CONFIG_X86
Architectures others than x86 have a stub implementation calling WARN_ON_ONCE(). The appropriate headers need to be included, otherwise the header-test target will fail with: HDRTEST drivers/gpu/drm/i915/i915_mm.h In file included from <command-line>: ./drivers/gpu/drm/i915/i915_mm.h: In function ‘remap_io_mapping’: ./drivers/gpu/drm/i915/i915_mm.h:26:2: error: implicit declaration of function ‘WARN_ON_ONCE’ [-Werror=implicit-function-declaration] 26 | WARN_ON_ONCE(1); | ^~~~~~~~~~~~ v2: Do not include <linux/printk.h> since call to pr_err() has been removed Fixes: 67c430b ("drm/i915: Skip remap_io_mapping() for non-x86 platforms") Cc: Siva Mullati <[email protected]> Signed-off-by: Lucas De Marchi <[email protected]> Reviewed-by: Siva Mullati <[email protected]> Reviewed-by: José Roberto de Souza <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 377c675) Signed-off-by: Tvrtko Ursulin <[email protected]>
1 parent 3526b60 commit 9d7516b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/i915/i915_mm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#ifndef __I915_MM_H__
77
#define __I915_MM_H__
88

9+
#include <linux/bug.h>
910
#include <linux/types.h>
1011

1112
struct vm_area_struct;

0 commit comments

Comments
 (0)