* linux-next: build failure after merge of the v4l-dvb-next tree
@ 2024-05-06 0:49 Stephen Rothwell
2024-05-07 11:56 ` Sakari Ailus
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Stephen Rothwell @ 2024-05-06 0:49 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: Andrew Morton, Kent Overstreet, Suren Baghdasaryan, Bingbu Cao,
Hans Verkuil, Sakari Ailus, Linux Kernel Mailing List,
Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 2331 bytes --]
Hi all,
After merging the v4l-dvb-next tree, today's linux-next build (x86_64
allmodconfig) failed like this:
drivers/media/pci/intel/ipu6/ipu6-mmu.c: In function 'ipu6_mmu_alloc':
drivers/media/pci/intel/ipu6/ipu6-mmu.c:541:28: error: implicit declaration of function 'vzalloc'; did you mean 'kzalloc'? [-Werror=implicit-function-declaration]
541 | mmu_info->l2_pts = vzalloc(ISP_L2PT_PTES * sizeof(*mmu_info->l2_pts));
| ^~~~~~~
| kzalloc
drivers/media/pci/intel/ipu6/ipu6-mmu.c:541:26: error: assignment to 'u32 **' {aka 'unsigned int **'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
541 | mmu_info->l2_pts = vzalloc(ISP_L2PT_PTES * sizeof(*mmu_info->l2_pts));
| ^
drivers/media/pci/intel/ipu6/ipu6-mmu.c:560:9: error: implicit declaration of function 'vfree'; did you mean 'kvfree'? [-Werror=implicit-function-declaration]
560 | vfree(mmu_info->l2_pts);
| ^~~~~
| kvfree
cc1: all warnings being treated as errors
Caused by commit
9163d83573e4 ("media: intel/ipu6: add IPU6 DMA mapping API and MMU table")
not including <linux/vmalloc.h>. It may have been exposed by commit
690da22dbfa8 ("asm-generic/io.h: kill vmalloc.h dependency")
from the mm-unstable branch of the mm tree, so I have applied the
following patch for today (and this or somthing like it should be applied
to the v4l-dvb-next tree).
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 6 May 2024 10:39:47 +1000
Subject: [PATCH] media: intel/ipu6: explicitly include vmalloc.h
since this file uses vzalloc etc ...
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/media/pci/intel/ipu6/ipu6-mmu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/pci/intel/ipu6/ipu6-mmu.c b/drivers/media/pci/intel/ipu6/ipu6-mmu.c
index 98a4bf9ca267..c3a20507d6db 100644
--- a/drivers/media/pci/intel/ipu6/ipu6-mmu.c
+++ b/drivers/media/pci/intel/ipu6/ipu6-mmu.c
@@ -22,6 +22,7 @@
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/types.h>
+#include <linux/vmalloc.h>
#include "ipu6.h"
#include "ipu6-dma.h"
--
2.43.0
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: linux-next: build failure after merge of the v4l-dvb-next tree
2024-05-06 0:49 linux-next: build failure after merge of the v4l-dvb-next tree Stephen Rothwell
@ 2024-05-07 11:56 ` Sakari Ailus
2024-05-07 12:32 ` [PATCH v2 1/1] media: intel/ipu6: explicitly include vmalloc.h Sakari Ailus
2024-05-07 12:35 ` [RESEND PATCH " Sakari Ailus
2 siblings, 0 replies; 4+ messages in thread
From: Sakari Ailus @ 2024-05-07 11:56 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Mauro Carvalho Chehab, Andrew Morton, Kent Overstreet,
Suren Baghdasaryan, Bingbu Cao, Hans Verkuil,
Linux Kernel Mailing List, Linux Next Mailing List
Hi Stephen,
On Mon, May 06, 2024 at 10:49:53AM +1000, Stephen Rothwell wrote:
> Hi all,
>
> After merging the v4l-dvb-next tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> drivers/media/pci/intel/ipu6/ipu6-mmu.c: In function 'ipu6_mmu_alloc':
> drivers/media/pci/intel/ipu6/ipu6-mmu.c:541:28: error: implicit declaration of function 'vzalloc'; did you mean 'kzalloc'? [-Werror=implicit-function-declaration]
> 541 | mmu_info->l2_pts = vzalloc(ISP_L2PT_PTES * sizeof(*mmu_info->l2_pts));
> | ^~~~~~~
> | kzalloc
> drivers/media/pci/intel/ipu6/ipu6-mmu.c:541:26: error: assignment to 'u32 **' {aka 'unsigned int **'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
> 541 | mmu_info->l2_pts = vzalloc(ISP_L2PT_PTES * sizeof(*mmu_info->l2_pts));
> | ^
> drivers/media/pci/intel/ipu6/ipu6-mmu.c:560:9: error: implicit declaration of function 'vfree'; did you mean 'kvfree'? [-Werror=implicit-function-declaration]
> 560 | vfree(mmu_info->l2_pts);
> | ^~~~~
> | kvfree
> cc1: all warnings being treated as errors
>
> Caused by commit
>
> 9163d83573e4 ("media: intel/ipu6: add IPU6 DMA mapping API and MMU table")
>
> not including <linux/vmalloc.h>. It may have been exposed by commit
>
> 690da22dbfa8 ("asm-generic/io.h: kill vmalloc.h dependency")
>
> from the mm-unstable branch of the mm tree, so I have applied the
> following patch for today (and this or somthing like it should be applied
> to the v4l-dvb-next tree).
>
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Mon, 6 May 2024 10:39:47 +1000
> Subject: [PATCH] media: intel/ipu6: explicitly include vmalloc.h
>
> since this file uses vzalloc etc ...
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> drivers/media/pci/intel/ipu6/ipu6-mmu.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/media/pci/intel/ipu6/ipu6-mmu.c b/drivers/media/pci/intel/ipu6/ipu6-mmu.c
> index 98a4bf9ca267..c3a20507d6db 100644
> --- a/drivers/media/pci/intel/ipu6/ipu6-mmu.c
> +++ b/drivers/media/pci/intel/ipu6/ipu6-mmu.c
> @@ -22,6 +22,7 @@
> #include <linux/slab.h>
> #include <linux/spinlock.h>
> #include <linux/types.h>
> +#include <linux/vmalloc.h>
>
> #include "ipu6.h"
> #include "ipu6-dma.h"
I agree this is the right fix, we'll merge it via the media tree (I'll just
polish the commit message a little).
--
Kind regards,
Sakari Ailus
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH v2 1/1] media: intel/ipu6: explicitly include vmalloc.h
2024-05-06 0:49 linux-next: build failure after merge of the v4l-dvb-next tree Stephen Rothwell
2024-05-07 11:56 ` Sakari Ailus
@ 2024-05-07 12:32 ` Sakari Ailus
2024-05-07 12:35 ` [RESEND PATCH " Sakari Ailus
2 siblings, 0 replies; 4+ messages in thread
From: Sakari Ailus @ 2024-05-07 12:32 UTC (permalink / raw)
To: linux-media
Cc: Stephen Rothwell, Mauro Carvalho Chehab, Andrew Morton, Kent,
Overstreet, kent.overstreet, Suren Baghdasaryan, Bingbu Cao,
Hans Verkuil, Linux Kernel Mailing List, Linux Next Mailing List
From: Stephen Rothwell <sfr@canb.auug.org.au>
linux/vmalloc.h needs to be included explicitly nowadays. Do it.
Fixes: 9163d83573e4 ("media: intel/ipu6: add IPU6 DMA mapping API and MMU table")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
since v1:
- Rework the commit message a little.
drivers/media/pci/intel/ipu6/ipu6-mmu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/pci/intel/ipu6/ipu6-mmu.c b/drivers/media/pci/intel/ipu6/ipu6-mmu.c
index 98a4bf9ca267..c3a20507d6db 100644
--- a/drivers/media/pci/intel/ipu6/ipu6-mmu.c
+++ b/drivers/media/pci/intel/ipu6/ipu6-mmu.c
@@ -22,6 +22,7 @@
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/types.h>
+#include <linux/vmalloc.h>
#include "ipu6.h"
#include "ipu6-dma.h"
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread* [RESEND PATCH v2 1/1] media: intel/ipu6: explicitly include vmalloc.h
2024-05-06 0:49 linux-next: build failure after merge of the v4l-dvb-next tree Stephen Rothwell
2024-05-07 11:56 ` Sakari Ailus
2024-05-07 12:32 ` [PATCH v2 1/1] media: intel/ipu6: explicitly include vmalloc.h Sakari Ailus
@ 2024-05-07 12:35 ` Sakari Ailus
2 siblings, 0 replies; 4+ messages in thread
From: Sakari Ailus @ 2024-05-07 12:35 UTC (permalink / raw)
To: linux-media
Cc: Stephen Rothwell, Mauro Carvalho Chehab, Andrew Morton,
Kent Overstreet, Suren Baghdasaryan, Bingbu Cao, Hans Verkuil,
Linux Kernel Mailing List, Linux Next Mailing List
From: Stephen Rothwell <sfr@canb.auug.org.au>
linux/vmalloc.h needs to be included explicitly nowadays. Do it.
Fixes: 9163d83573e4 ("media: intel/ipu6: add IPU6 DMA mapping API and MMU table")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
Fixed Kent's e-mail address.
since v1:
- Rework the commit message a little.
drivers/media/pci/intel/ipu6/ipu6-mmu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/pci/intel/ipu6/ipu6-mmu.c b/drivers/media/pci/intel/ipu6/ipu6-mmu.c
index 98a4bf9ca267..c3a20507d6db 100644
--- a/drivers/media/pci/intel/ipu6/ipu6-mmu.c
+++ b/drivers/media/pci/intel/ipu6/ipu6-mmu.c
@@ -22,6 +22,7 @@
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/types.h>
+#include <linux/vmalloc.h>
#include "ipu6.h"
#include "ipu6-dma.h"
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-05-07 12:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-06 0:49 linux-next: build failure after merge of the v4l-dvb-next tree Stephen Rothwell
2024-05-07 11:56 ` Sakari Ailus
2024-05-07 12:32 ` [PATCH v2 1/1] media: intel/ipu6: explicitly include vmalloc.h Sakari Ailus
2024-05-07 12:35 ` [RESEND PATCH " Sakari Ailus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox