* mm/gup.c:679:22: error: call to '__compiletime_assert_382' declared with 'error' attribute: BUILD_BUG failed
@ 2024-04-04 10:42 Miguel Ojeda
2024-04-04 11:57 ` Peter Xu
0 siblings, 1 reply; 3+ messages in thread
From: Miguel Ojeda @ 2024-04-04 10:42 UTC (permalink / raw)
To: Peter Xu, Andrew Morton; +Cc: Jason Gunthorpe, Linux Memory Management List
Hi Peter, Andrew,
I am not sure if this is one of the issues that Peter mentioned [1] to
be resolved or not eventually, but I have spotted this in the last
couple -next runs for a LLVM=1 loongarch64 defconfig build [2].
Hope that helps!
Cheers,
Miguel
[1] https://lore.kernel.org/all/ZgMzaMu7oILiNLcG@x1n/
[2]
mm/gup.c:679:22: error: call to '__compiletime_assert_382' declared
with 'error' attribute: BUILD_BUG failed
679 | unsigned long pfn = pud_pfn(pud);
| ^
./include/linux/pgtable.h:1887:23: note: expanded from macro 'pud_pfn'
1887 | #define pud_pfn(x) ({ BUILD_BUG(); 0; })
| ^
./include/linux/build_bug.h:59:21: note: expanded from macro 'BUILD_BUG'
59 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
| ^
./include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^
note: (skipping 1 expansions in backtrace; use
-fmacro-backtrace-limit=0 to see all)
././include/linux/compiler_types.h:448:2: note: expanded from macro
'_compiletime_assert'
448 | __compiletime_assert(condition, msg, prefix, suffix)
| ^
././include/linux/compiler_types.h:441:4: note: expanded from macro
'__compiletime_assert'
441 | prefix ## suffix(); \
| ^
<scratch space>:48:1: note: expanded from here
48 | __compiletime_assert_382
| ^
1 error generated.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mm/gup.c:679:22: error: call to '__compiletime_assert_382' declared with 'error' attribute: BUILD_BUG failed
2024-04-04 10:42 mm/gup.c:679:22: error: call to '__compiletime_assert_382' declared with 'error' attribute: BUILD_BUG failed Miguel Ojeda
@ 2024-04-04 11:57 ` Peter Xu
2024-04-05 13:21 ` Miguel Ojeda
0 siblings, 1 reply; 3+ messages in thread
From: Peter Xu @ 2024-04-04 11:57 UTC (permalink / raw)
To: Miguel Ojeda; +Cc: Andrew Morton, Jason Gunthorpe, Linux Memory Management List
On Thu, Apr 04, 2024 at 12:42:12PM +0200, Miguel Ojeda wrote:
> Hi Peter, Andrew,
Hi, Miguel,
>
> I am not sure if this is one of the issues that Peter mentioned [1] to
> be resolved or not eventually, but I have spotted this in the last
> couple -next runs for a LLVM=1 loongarch64 defconfig build [2].
It's the one reported after that:
https://lore.kernel.org/r/20240402190549.GA706730@dev-arch.thelio-3990X
Please try this:
https://lore.kernel.org/r/20240403013249.1418299-4-peterx@redhat.com
It's already included in Andrew's latest mm-unstable, commit 8c9a7c14a7d4.
I don't know how fast it spreads to -next, but assume it'll get there soon
too.
Sorry for the issue!
>
> Hope that helps!
>
> Cheers,
> Miguel
>
> [1] https://lore.kernel.org/all/ZgMzaMu7oILiNLcG@x1n/
> [2]
>
> mm/gup.c:679:22: error: call to '__compiletime_assert_382' declared
> with 'error' attribute: BUILD_BUG failed
> 679 | unsigned long pfn = pud_pfn(pud);
> | ^
> ./include/linux/pgtable.h:1887:23: note: expanded from macro 'pud_pfn'
> 1887 | #define pud_pfn(x) ({ BUILD_BUG(); 0; })
> | ^
> ./include/linux/build_bug.h:59:21: note: expanded from macro 'BUILD_BUG'
> 59 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
> | ^
> ./include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
> 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
> | ^
> note: (skipping 1 expansions in backtrace; use
> -fmacro-backtrace-limit=0 to see all)
> ././include/linux/compiler_types.h:448:2: note: expanded from macro
> '_compiletime_assert'
> 448 | __compiletime_assert(condition, msg, prefix, suffix)
> | ^
> ././include/linux/compiler_types.h:441:4: note: expanded from macro
> '__compiletime_assert'
> 441 | prefix ## suffix(); \
> | ^
> <scratch space>:48:1: note: expanded from here
> 48 | __compiletime_assert_382
> | ^
> 1 error generated.
>
--
Peter Xu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mm/gup.c:679:22: error: call to '__compiletime_assert_382' declared with 'error' attribute: BUILD_BUG failed
2024-04-04 11:57 ` Peter Xu
@ 2024-04-05 13:21 ` Miguel Ojeda
0 siblings, 0 replies; 3+ messages in thread
From: Miguel Ojeda @ 2024-04-05 13:21 UTC (permalink / raw)
To: Peter Xu; +Cc: Andrew Morton, Jason Gunthorpe, Linux Memory Management List
On Thu, Apr 4, 2024 at 1:57 PM Peter Xu <peterx@redhat.com> wrote:
>
> It's the one reported after that:
>
> https://lore.kernel.org/r/20240402190549.GA706730@dev-arch.thelio-3990X
>
> Please try this:
>
> https://lore.kernel.org/r/20240403013249.1418299-4-peterx@redhat.com
>
> It's already included in Andrew's latest mm-unstable, commit 8c9a7c14a7d4.
> I don't know how fast it spreads to -next, but assume it'll get there soon
> too.
>
> Sorry for the issue!
No worries at all!
next-20240405 contains the commit and, indeed, the error is fixed for
me in an LLVM=1 loongarch64 defconfig build-test:
Tested-by: Miguel Ojeda <ojeda@kernel.org>
Thanks!
Cheers,
Miguel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-05 13:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-04 10:42 mm/gup.c:679:22: error: call to '__compiletime_assert_382' declared with 'error' attribute: BUILD_BUG failed Miguel Ojeda
2024-04-04 11:57 ` Peter Xu
2024-04-05 13:21 ` Miguel Ojeda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox