From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3268CC83006 for ; Wed, 29 Apr 2020 01:55:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0C7F02076A for ; Wed, 29 Apr 2020 01:55:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="cyFtsWgf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726524AbgD2BzB (ORCPT ); Tue, 28 Apr 2020 21:55:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbgD2BzA (ORCPT ); Tue, 28 Apr 2020 21:55:00 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68A81C03C1AC; Tue, 28 Apr 2020 18:55:00 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49BhR60mNPz9sRf; Wed, 29 Apr 2020 11:54:58 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1588125298; bh=/c+EfpOSJR2UL33JintQJhQ1ZBprSxo+oKXBpMbirJk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cyFtsWgfaeHb4k1+NRFsD/tWgJl2MM/lfKgBQJAoJEfye1qctuFMhDRGA+ngkpMLn R6OsAOG0DUtljvVy2bUU2VaeGJuPf7ncwqkZcsyEmCwp330pzKJBj75CG/oXSC0Z+J KodEoiTlqFyxNU9Nq2ECaAuTvn2Ab+K8iPY3nAfiMcUknJ50WarlWfWMDyYM4lNavr ldXdM9DiQkbckTY4fWu0Nol8e4gCy7zFfGRpL22s2aKeGIMCjPEfT7Cwa3Rqgpenfc 041UMp+y60lK3+yzvtFyHjB/1yg6bplUVzE4+DneiDKOskMbjmNe//0Lli4h41AqLm BVgaEEtkzLcIg== Date: Wed, 29 Apr 2020 11:54:56 +1000 From: Stephen Rothwell To: Nathan Chancellor Cc: Minchan Kim , Linux Next Mailing List , Linux Kernel Mailing List , Andrew Morton , linux-mm@kvack.org, linux-s390@vger.kernel.org Subject: Re: linux-next: Tree for Apr 28 Message-ID: <20200429115456.34d511a0@canb.auug.org.au> In-Reply-To: <20200429013435.GA1133928@ubuntu-s3-xlarge-x86> References: <20200428181006.06b4e3bc@canb.auug.org.au> <20200428190459.GA2299615@ubuntu-s3-xlarge-x86> <20200429012421.GA132200@google.com> <20200429013435.GA1133928@ubuntu-s3-xlarge-x86> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/gasmWOgPFOuCsqK9DhGzRnS"; protocol="application/pgp-signature"; micalg=pgp-sha256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/gasmWOgPFOuCsqK9DhGzRnS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Tue, 28 Apr 2020 18:34:35 -0700 Nathan Chancellor wrote: > > On Tue, Apr 28, 2020 at 06:24:21PM -0700, Minchan Kim wrote: > >=20 > > On Tue, Apr 28, 2020 at 12:04:59PM -0700, Nathan Chancellor wrote:=20 > > >=20 > > > 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. > > >=20 > > > Cheers, > > > Nathan > > >=20 > > > $ make -j$(nproc) -s ARCH=3Ds390 CROSS_COMPILE=3Ds390x-linux- defconf= ig all > > > ... > > > mm/madvise.c: In function '__se_compat_sys_process_madvise': > > > ./include/linux/compiler.h:394:38: error: call to '__compiletime_asse= rt_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__) > > > | ^ > >=20 > > Could you try this patch? I think it should fix it. > >=20 > > From 3f993353c310a027f138d822a79ce49770fe6e50 Mon Sep 17 00:00:00 2001 > > From: Minchan Kim > > Date: Tue, 28 Apr 2020 18:20:24 -0700 > > Subject: [PATCH] mm: fix s390 compat build error > >=20 > > Nathan reported build error with sys_compat_process_madvise. > > This patch should fix it. > >=20 > > Reported-by: Nathan Chancellor > > Signed-off-by: Minchan Kim =20 >=20 > Tested-by: Nathan Chancellor # build >=20 > > --- > > include/linux/compat.h | 5 +++-- > > mm/madvise.c | 9 ++++++--- > > 2 files changed, 9 insertions(+), 5 deletions(-) > >=20 > > 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 lo= ng fd, > > unsigned long vlen, loff_t pos, rwf_t flags); > > #endif > > =20 > > -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); > > =20 > > /* > > * 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, > > } > > =20 > > #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) > > =20 > > { > > ssize_t ret; I have applied that fix to linux-next for today. --=20 Cheers, Stephen Rothwell --Sig_/gasmWOgPFOuCsqK9DhGzRnS Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl6o3nAACgkQAVBC80lX 0Gz+Igf9Hb8ZlJssg//EROPEfO1qasV0kDfSSXtR6c6fjxlGQTZhCNIsUkVWFAmM k48ouvgZPo0b1BNiaKD8O32/d87JpVVhrPOyIFDk0qLu6Om2FSK3oDS2yLyeWJvb jmTdDpcy2pgG3tgata6jXc8U7/xTIyNCkb+Y+5vRzCLbsd5wywMXTiy6yOWbAW+k O1llVGbkle6+vLbQU9vP966BLIRh01GXX2yE/vtS2r4+Dyjbqt3zJP4NwinkRQgM 5KBTdFwEYLG2z/W41PdWDfPR6StT0dofRnRmZpc/DJyAlx1NuhnDBf4xww1bhrLj d7YXTUbNMJQ63WW6rKrcs2DMjN01Ww== =KlNm -----END PGP SIGNATURE----- --Sig_/gasmWOgPFOuCsqK9DhGzRnS--