From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Nathan Chancellor <natechancellor@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org, linux-s390@vger.kernel.org
Subject: Re: linux-next: Tree for Apr 28
Date: Wed, 29 Apr 2020 11:54:56 +1000 [thread overview]
Message-ID: <20200429115456.34d511a0@canb.auug.org.au> (raw)
In-Reply-To: <20200429013435.GA1133928@ubuntu-s3-xlarge-x86>
[-- Attachment #1: Type: text/plain, Size: 3360 bytes --]
Hi all,
On Tue, 28 Apr 2020 18:34:35 -0700 Nathan Chancellor <natechancellor@gmail.com> wrote:
>
> On Tue, Apr 28, 2020 at 06:24:21PM -0700, Minchan Kim wrote:
> >
> > On Tue, Apr 28, 2020 at 12:04:59PM -0700, Nathan Chancellor wrote:
> > >
> > > I am seeing the following build error on s390 defconfig, caused by
> > > commit 743f242d65ec ("mm: support compat_sys_process_madvise").
> > > Apologies if it has already been reported, I did a search of lore and
> > > found nothing.
> > >
> > > Cheers,
> > > Nathan
> > >
> > > $ make -j$(nproc) -s ARCH=s390 CROSS_COMPILE=s390x-linux- defconfig all
> > > ...
> > > mm/madvise.c: In function '__se_compat_sys_process_madvise':
> > > ./include/linux/compiler.h:394:38: error: call to '__compiletime_assert_162' declared with attribute error: BUILD_BUG_ON failed: sizeof(unsigned long) > 4 && !__TYPE_IS_PTR(unsigned long)
> > > 394 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
> > > | ^
> >
> > Could you try this patch? I think it should fix it.
> >
> > From 3f993353c310a027f138d822a79ce49770fe6e50 Mon Sep 17 00:00:00 2001
> > From: Minchan Kim <minchan@kernel.org>
> > Date: Tue, 28 Apr 2020 18:20:24 -0700
> > Subject: [PATCH] mm: fix s390 compat build error
> >
> > Nathan reported build error with sys_compat_process_madvise.
> > This patch should fix it.
> >
> > Reported-by: Nathan Chancellor <natechancellor@gmail.com>
> > Signed-off-by: Minchan Kim <minchan@kernel.org>
>
> Tested-by: Nathan Chancellor <natechancellor@gmail.com> # build
>
> > ---
> > include/linux/compat.h | 5 +++--
> > mm/madvise.c | 9 ++++++---
> > 2 files changed, 9 insertions(+), 5 deletions(-)
> >
> > diff --git a/include/linux/compat.h b/include/linux/compat.h
> > index 1134ba3e61d0..19c524513cbb 100644
> > --- a/include/linux/compat.h
> > +++ b/include/linux/compat.h
> > @@ -820,9 +820,10 @@ asmlinkage long compat_sys_pwritev64v2(unsigned long fd,
> > unsigned long vlen, loff_t pos, rwf_t flags);
> > #endif
> >
> > -asmlinkage ssize_t compat_sys_process_madvise(int which,
> > +asmlinkage ssize_t compat_sys_process_madvise(compat_int_t which,
> > compat_pid_t upid, const struct compat_iovec __user *vec,
> > - unsigned long vlen, int behavior, unsigned long flags);
> > + compat_ulong_t vlen, compat_int_t behavior,
> > + compat_ulong_t flags);
> >
> > /*
> > * Deprecated system calls which are still defined in
> > diff --git a/mm/madvise.c b/mm/madvise.c
> > index 8fec261457a6..99c06d5f0785 100644
> > --- a/mm/madvise.c
> > +++ b/mm/madvise.c
> > @@ -1311,9 +1311,12 @@ SYSCALL_DEFINE6(process_madvise, int, which, pid_t, upid,
> > }
> >
> > #ifdef CONFIG_COMPAT
> > -COMPAT_SYSCALL_DEFINE6(process_madvise, int, which, compat_pid_t, upid,
> > - const struct compat_iovec __user *, vec, unsigned long, vlen,
> > - int, behavior, unsigned long, flags)
> > +COMPAT_SYSCALL_DEFINE6(process_madvise, compat_int_t, which,
> > + compat_pid_t, upid,
> > + const struct compat_iovec __user *, vec,
> > + compat_ulong_t, vlen,
> > + compat_int_t, behavior,
> > + compat_ulong_t, flags)
> >
> > {
> > ssize_t ret;
I have applied that fix to linux-next for today.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2020-04-29 1:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-28 8:10 linux-next: Tree for Apr 28 Stephen Rothwell
2020-04-28 19:04 ` Nathan Chancellor
2020-04-29 1:24 ` Minchan Kim
2020-04-29 1:34 ` Nathan Chancellor
2020-04-29 1:54 ` Stephen Rothwell [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-04-28 15:22 broonie
2022-04-28 7:29 Stephen Rothwell
2021-04-28 6:05 Stephen Rothwell
2017-04-28 7:11 Stephen Rothwell
2016-04-28 6:11 Stephen Rothwell
2015-04-28 3:10 Stephen Rothwell
2014-04-28 6:57 Stephen Rothwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200429115456.34d511a0@canb.auug.org.au \
--to=sfr@canb.auug.org.au \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-next@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=minchan@kernel.org \
--cc=natechancellor@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).