drivers/gpu/drm/xe/tests/xe_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Hi all,
After merging the random tree, today's linux-next build (x86_64
allmodconfig) failed like this:
Caused by commit
38d1a9d296c8 ("random: Do not include <linux/prandom.h> in <linux/random.h>")
interacting with commit
5a90b60db5e6 ("drm/xe: Add a xe_bo subtest for shrinking / swapping")
from the drm-xe tree.
I have applied the following merge fix patch for today.
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Tue, 1 Oct 2024 13:33:48 +1000
Subject: [PATCH] fix up for "random: Do not include <linux/prandom.h> in <linux/random.h>"
interacting with commit
5a90b60db5e6 ("drm/xe: Add a xe_bo subtest for shrinking / swapping")
from the drm-xe tree.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/gpu/drm/xe/tests/xe_bo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/tests/xe_bo.c b/drivers/gpu/drm/xe/tests/xe_bo.c
index 7d3fd720478b..3a14b70f12b8 100644
--- a/drivers/gpu/drm/xe/tests/xe_bo.c
+++ b/drivers/gpu/drm/xe/tests/xe_bo.c
@@ -7,7 +7,7 @@
#include <kunit/visibility.h>
#include <linux/iosys-map.h>
-#include <linux/random.h>
+#include <linux/prandom.h>
#include <linux/swap.h>
#include <uapi/linux/sysinfo.h>
--
2.45.2
--
Cheers,
Stephen Rothwell
Hi all, On Tue, 1 Oct 2024 13:44:23 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > After merging the random tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > > Caused by commit > > 38d1a9d296c8 ("random: Do not include <linux/prandom.h> in <linux/random.h>") > > interacting with commit > > 5a90b60db5e6 ("drm/xe: Add a xe_bo subtest for shrinking / swapping") > > from the drm-xe tree. > > I have applied the following merge fix patch for today. The patch is now: From: Stephen Rothwell <sfr@canb.auug.org.au> Date: Tue, 1 Oct 2024 13:33:48 +1000 Subject: [PATCH] fix up for "random: Do not include <linux/prandom.h> in <linux/random.h>" interacting with commit 5a90b60db5e6 ("drm/xe: Add a xe_bo subtest for shrinking / swapping") from the drm-xe tree. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> --- drivers/gpu/drm/xe/tests/xe_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/tests/xe_bo.c b/drivers/gpu/drm/xe/tests/xe_bo.c index cd811aa2b227..3e0ae40ebbd2 100644 --- a/drivers/gpu/drm/xe/tests/xe_bo.c +++ b/drivers/gpu/drm/xe/tests/xe_bo.c @@ -8,7 +8,7 @@ #include <linux/iosys-map.h> #include <linux/math64.h> -#include <linux/random.h> +#include <linux/prandom.h> #include <linux/swap.h> #include <uapi/linux/sysinfo.h> -- Cheers, Stephen Rothwell
Hi all, On Thu, 10 Oct 2024 15:38:55 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > On Tue, 1 Oct 2024 13:44:23 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > > > After merging the random tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > > > Caused by commit > > > > 38d1a9d296c8 ("random: Do not include <linux/prandom.h> in <linux/random.h>") > > > > interacting with commit > > > > 5a90b60db5e6 ("drm/xe: Add a xe_bo subtest for shrinking / swapping") > > > > from the drm-xe tree. > > > > I have applied the following merge fix patch for today. > > The patch is now: > > From: Stephen Rothwell <sfr@canb.auug.org.au> > Date: Tue, 1 Oct 2024 13:33:48 +1000 > Subject: [PATCH] fix up for "random: Do not include <linux/prandom.h> in > <linux/random.h>" > > interacting with commit > > 5a90b60db5e6 ("drm/xe: Add a xe_bo subtest for shrinking / swapping") > > from the drm-xe tree. > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> > --- > drivers/gpu/drm/xe/tests/xe_bo.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/xe/tests/xe_bo.c b/drivers/gpu/drm/xe/tests/xe_bo.c > index cd811aa2b227..3e0ae40ebbd2 100644 > --- a/drivers/gpu/drm/xe/tests/xe_bo.c > +++ b/drivers/gpu/drm/xe/tests/xe_bo.c > @@ -8,7 +8,7 @@ > > #include <linux/iosys-map.h> > #include <linux/math64.h> > -#include <linux/random.h> > +#include <linux/prandom.h> > #include <linux/swap.h> > > #include <uapi/linux/sysinfo.h> This patch is now needed when merging the drm tree and Linus' tree. -- Cheers, Stephen Rothwell
On Tue, Oct 1, 2024 at 5:44 AM Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > Hi all, > > After merging the random tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > > Caused by commit > > 38d1a9d296c8 ("random: Do not include <linux/prandom.h> in <linux/random.h>") > > interacting with commit > > 5a90b60db5e6 ("drm/xe: Add a xe_bo subtest for shrinking / swapping") > > from the drm-xe tree. This was kind of expected when two commits are in flight in the same area. IMO, the best way to solve this collision is to change the new include in the DRM tree from <linux/random.h> to <linux/prandom.h>, as is shown in the proposed patch. > I have applied the following merge fix patch for today. Thanks, Uros. > From: Stephen Rothwell <sfr@canb.auug.org.au> > Date: Tue, 1 Oct 2024 13:33:48 +1000 > Subject: [PATCH] fix up for "random: Do not include <linux/prandom.h> in <linux/random.h>" > > interacting with commit > > 5a90b60db5e6 ("drm/xe: Add a xe_bo subtest for shrinking / swapping") > > from the drm-xe tree. > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> > --- > drivers/gpu/drm/xe/tests/xe_bo.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/xe/tests/xe_bo.c b/drivers/gpu/drm/xe/tests/xe_bo.c > index 7d3fd720478b..3a14b70f12b8 100644 > --- a/drivers/gpu/drm/xe/tests/xe_bo.c > +++ b/drivers/gpu/drm/xe/tests/xe_bo.c > @@ -7,7 +7,7 @@ > #include <kunit/visibility.h> > > #include <linux/iosys-map.h> > -#include <linux/random.h> > +#include <linux/prandom.h> > #include <linux/swap.h> > > #include <uapi/linux/sysinfo.h> > -- > 2.45.2 > > -- > Cheers, > Stephen Rothwell
© 2016 - 2024 Red Hat, Inc.