linux-next: build failure after merge of the mm tree
Subsystems (3)
Hi all,
After merging the mm tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:
lib/iov_iter.c: In function 'iov_iter_extract_user_pages':lib/iov_iter.c:2143:34: error: 'FOLL_PIN' undeclared (first use in this function); did you mean 'POLL_IN'?
2143 | unsigned int gup_flags = FOLL_PIN;
| ^~~~~~~~
| POLL_INlib/iov_iter.c:2143:34: note: each undeclared identifier is reported only once for each function it appears in
Caused by commit
0ff325d28700 ("mm/gup: move private gup FOLL_ flags to internal.h")
interacting with commit
895d773054a2 ("iov_iter: Add a function to extract a page list from an iterator")
from the block tree.
I have reverted commit 0ff325d28700 for today. A better resolution would be appreciated.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 16 lines · Stephen Rothwell
Hi all,
After merging the mm tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
lib/iov_iter.c: In function 'iov_iter_extract_user_pages':lib/iov_iter.c:2143:34: error: 'FOLL_PIN' undeclared (first use in this function); did you mean 'POLL_IN'?2143 | unsigned int gup_flags = FOLL_PIN; | ^~~~~~~~ | POLL_IN
lib/iov_iter.c:2143:34: note: each undeclared identifier is reported only once for each function it appears inCaused by commit
0ff325d28700("mm/gup: move private gupFOLL_flags tointernal.h")
Quoted 8 lines
interacting with commit
895d773054a2("iov_iter: Add a function to extract a page list from an iterator")from the block tree.
I have reverted commit
0ff325d28700for today. A better resolution would be appreciated.
Just s/= FOLL_PIN/= 0/, it is unconditionally set internally when calling pin_user_pages_fast()
David can you send a patch to the block tree to fix it?
Jason
Quoted 1 line · Jason Gunthorpe
David can you send a patch to the block tree to fix it?
I'll see. Given that the patch series introduces a memory corruptor bug that someone might bisect through, I want to see if Jens will let me replace it to put the fix first, in which case I can just alter the patch that adds the FOLL_PIN usage.
David
Hi Jason,
Quoted 3 lines · On Tue, 7 Feb 2023 08:17:46 -0400 Jason Gunthorpe <[email protected]> wrote:
Just s/= FOLL_PIN/= 0/, it is unconditionally set internally when calling
pin_user_pages_fast()
Thanks, I have done just that for today:
From: Stephen Rothwell <[email protected]>
Date: Wed, 8 Feb 2023 13:33:55 +1100
Subject: [PATCH] fixup for "mm/gup: move private gup FOLL_ flags to internal.h"
interacting with "iov_iter: Add a function to extract a page list from an iterator" from the block tree.
--- lib/iov_iter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/iov_iter.c +1 -1
@@ -2140,7 +2140,7 @@ static ssize_t iov_iter_extract_user_pages(struct iov_iter *i, size_t *offset0) {unsigned long addr; -unsigned int gup_flags =FOLL_PIN ; +unsigned int gup_flags =0 ;size_t offset;int res;
Signature · 5 lines
2.35.1 -- Cheers, Stephen Rothwell