i915/gem/dmabuf: add <asm/smp.h> to fix build error
Subsystems (2)
PATCH 1/1 i915/gem/dmabuf: add <asm/smp.h> to fix build error
When CONFIG_SMP is not set, wbinvd_on_all_cpus() is not declared, due to missing <asm/smp.h>.
Fixes this build error:
../drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c: In function 'i915_gem_object_get_pages_dmabuf':../drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c:251:3: error: implicit declaration of function 'wbinvd_on_all_cpus'; did you mean 'wrmsr_on_cpus'? [-Werror=implicit-function-declaration]
wbinvd_on_all_cpus();
To: Jani Nikula <[email protected]>
Cc: Thomas Hellström <[email protected]>
Cc: Matthew Auld <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: [email protected]
Cc: [email protected]
--- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c +1 -0
@@ -8,6 +8,7 @@#include <linux/highmem.h> #include <linux/dma-resv.h> #include <linux/module.h> +#include <asm/smp.h> #include "i915_drv.h" #include "i915_gem_object.h"
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for i915/gem/dmabuf: add <asm/smp.h> to fix build error
== Series Details ==
== Series Details ==
Series: i915/gem/dmabuf: add <asm/smp.h> to fix build error
URL : https://patchwork.freedesktop.org/series/96360/
State : failure
== Summary ==
Applying: i915/gem/dmabuf: add <asm/smp.h> to fix build error
error: sha1 information is lacking or useless (drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 i915/gem/dmabuf: add <asm/smp.h> to fix build error When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Re: [Intel-gfx] ✗ Fi.CI.BUILD: failure for i915/gem/dmabuf: add <asm/smp.h> to fix build error
Quoted 8 lines · Patchwork
== Series Details ==
Series: i915/gem/dmabuf: add <
asm/smp.h> to fix build error
URL : https://patchwork.freedesktop.org/series/96360/
State : failure== Summary ==
Quoted 8 lines
Applying: i915/gem/dmabuf: add <
asm/smp.h> to fix build error
error: sha1 information is lacking or useless (drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 i915/gem/dmabuf: add <asm/smp.h> to fix build error When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Hi Patchwork,
I am not using git, therefore there is no ancestor information.
This patch applies to linux-next-20211027 (today where I am). Can I just say
sha1: ae5179317e79
from:
commit ae5179317e79 (HEAD, tag: next-20211027, origin/master, origin/HEAD)
Author: Stephen Rothwell <[email protected]> Date: Wed Oct 27 21:40:16 2021 +1100
Add linux-next specific files for 20211027
Where is the format of the sha1: documented?
I will gladly just report this build error and let someone else fix it.
Good day.
Signature · 1 line
~Randy