Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2403509lqb; Mon, 27 May 2024 20:31:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPsNuroLjDIelbQurV+HCChqQLUH/jHu/TniQaCwLEtARHyd0tN/VVmA2BotDiMEr+QXQ2KRdVSlojktOIZpejONhmRRxxr7VStCEvXw== X-Google-Smtp-Source: AGHT+IHIHbWZbfeLFLi7BFfbXKKj8majHICPCFC5nl3D4vgme+DTktKHh6h5ykX9IqXY2+KXnHLi X-Received: by 2002:a05:6214:4413:b0:6ad:835f:940c with SMTP id 6a1803df08f44-6ad835f9555mr33791886d6.50.1716867084858; Mon, 27 May 2024 20:31:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716867084; cv=pass; d=google.com; s=arc-20160816; b=JUfCrKzlDsfKfDho4dib0DmiHln+xhEiSmdF2pERnWoW+oadvLZpmfwddCNKa/+61T otZcUWxQ+pIkFyv802Wp1T6rC2zp0LRW/nP+AIXXHjBXte7/scsYcwNt7CtwOASTKziS nRLq4TUZwWrOqRd564bKR825j57kSxfObfd79/Wd79ym17/SmtrJ+FddcIOQxy8xoq14 k2gCde9BkwTyzFv2z+j9j9tOOocDg0z3+bWs+A3fSl5UPpy64VYrXVYTDCB7c/cOOPT4 qgeme7Oczxchz+mBX4uMZVwyoEDr/HLLC4w0wlNEk+cQX8QKKW8646t8QIFgxp3oJbHi lBUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=a/YGT24DW2Pi0REejXJMP4A653WFoC6Gwpyt/TYyVec=; fh=Nl63edq4Q+tyiFDYxQfr/vuMHvC8Dt6fE4AZmsxFvVo=; b=zrytFno0jlTesv89AWb7ON+AhLAO3z1G0i2ayQThGjBUDtRcsFbyUVyfLJq7lj85SP Ms9Zv4vYPnhpl7J9BH30VKcOhZoh26Cl9l6ZZcf+Q8g32hVgU3A2IYb1g4Hn4cF6IR5H fvV4FQeXn5ogVuKqZkxBvT8bYsrjGr4Gb7PnLfAgPFxp0+73ZsinHvQ4s7zSWu2bZhEf oHQuSSq6zVPgBvhvsIhELAVO9dkbqNdv/pNwLhc+1t17SWLvMqQ1Rc5b/81n50dJRKck NeRJjvzUvDWArC/BXAFc9HUZmoCKRsV0IZneSsx8xAjThdURWDsuU9rAsCp5wRvZ5Wwi GUDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=kzUt2c7Q; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-191682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18eda1fsi106050531cf.791.2024.05.27.20.31.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 20:31:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=kzUt2c7Q; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-191682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 94E911C2168E for ; Tue, 28 May 2024 03:31:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E3EB171A7; Tue, 28 May 2024 03:31:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="kzUt2c7Q" Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E91E182B3; Tue, 28 May 2024 03:31:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716867070; cv=none; b=NQDPCZzvRz2TqgbYExDqTFdszGZ5dXOHPizHDQ5fKKWAFoMbjDOygmeBselmFBqg9wq+0KHyNvL1qwljHDcloH/pIwbKGnBXVk036L3ZtJMo+i1pLBmNcs3S2pduRMPBkGGWy8IfNhQpWjKl6MXshX2JIynYLGI+QMLZDL0QcP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716867070; c=relaxed/simple; bh=cRuGbE2kT2DLy6FpG59pv2HQi8wldOlEGCVy5Bulv30=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=u0cNlwB2RUwGUgc/EnJgg2XvFbN+KByd/RTiFs09vKVd2fLJnQE6STbeXAzPIMRLkH2BPNFfe1L8iTfdEs/flJ6G8EVWJpD54Zkg+MbIQ26aNVREZ/05XQ4vfWTLIQwrLStIsPPLwh7yg8RremmtOGSMjzVatDhTTrMMzFJQXRY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au; spf=pass smtp.mailfrom=canb.auug.org.au; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b=kzUt2c7Q; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1716867065; bh=a/YGT24DW2Pi0REejXJMP4A653WFoC6Gwpyt/TYyVec=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kzUt2c7Qj7o7lvSXSIwwY4S1xawKlORmlzRUONWQ7YB9OrJYF2AIGRkvkwHLGuH6E YLDsU89ug632uky47hBeFX1HpyRecB+PFnGCUm15UPAYY5uRF2Xld0EFL0L9DDpmkP xofeg1bm/d4SrnU7MNFx0DntHor9Z6NghLRDlPHJksVl00mBLSWLdxXf2ao7xWQK9V nqREv9vQu6Wapa7/XDt5DFHgzK5dMr5VjE11oY5nit7rA2piRbxS+nqeF7ixHh1FRx O6W6SgcS4LndHqlzsFokFAdG5RXzY5rclDzqpx4SUZZKMnjdlPLZP+Q+TYNbAD32/k s5cGOnfjKCivw== 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4VpJ2J4J9Qz4wyw; Tue, 28 May 2024 13:31:04 +1000 (AEST) Date: Tue, 28 May 2024 13:31:04 +1000 From: Stephen Rothwell To: Christian Brauner Cc: Christian =?UTF-8?B?R8O2dHRzY2hl?= , Arnd Bergmann , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the vfs-brauner tree Message-ID: <20240528133104.304a1261@canb.auug.org.au> In-Reply-To: <20240528104905.58195cbe@canb.auug.org.au> References: <20240528104905.58195cbe@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/z9bmRDdU.XvdNV.f=5KL.w4"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/z9bmRDdU.XvdNV.f=5KL.w4 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Tue, 28 May 2024 10:49:05 +1000 Stephen Rothwell = wrote: >=20 > After merging the vfs-brauner tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: >=20 > fs/xattr.c: In function '__do_sys_setxattrat': > fs/xattr.c:709:61: warning: cast to pointer from integer of different siz= e [-Wint-to-pointer-cast] > 709 | return do_setxattrat(dfd, pathname, at_flags, name, (cons= t void __user *)args.value, > | ^ > fs/xattr.c: In function '__do_sys_getxattrat': > fs/xattr.c:855:61: warning: cast to pointer from integer of different siz= e [-Wint-to-pointer-cast] > 855 | return do_getxattrat(dfd, pathname, at_flags, name, (void= __user *)args.value, args.size); > | ^ >=20 > Introduced by commit >=20 > 89345b0ac5ac ("fs/xattr: add *at family syscalls") This became a build failure in the i386 defconfig build, so I applied the following fix patch. From: Stephen Rothwell Date: Tue, 28 May 2024 13:20:29 +1000 Subject: [PATCH] fix up for "fs/xattr: add *at family syscalls" Signed-off-by: Stephen Rothwell --- fs/xattr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/xattr.c b/fs/xattr.c index 8e712795ab80..d0d54ae2f9cb 100644 --- a/fs/xattr.c +++ b/fs/xattr.c @@ -706,7 +706,8 @@ SYSCALL_DEFINE6(setxattrat, int, dfd, const char __user= *, pathname, unsigned in if (error) return error; =20 - return do_setxattrat(dfd, pathname, at_flags, name, (const void __user *)= args.value, + return do_setxattrat(dfd, pathname, at_flags, name, + (const void __user *)(unsigned long)args.value, args.size, args.flags); } =20 @@ -852,7 +853,9 @@ SYSCALL_DEFINE6(getxattrat, int, dfd, const char __user= *, pathname, unsigned in if (args.flags !=3D 0) return -EINVAL; =20 - return do_getxattrat(dfd, pathname, at_flags, name, (void __user *)args.v= alue, args.size); + return do_getxattrat(dfd, pathname, at_flags, name, + (void __user *)(unsigned long)args.value, + args.size); } =20 SYSCALL_DEFINE4(getxattr, const char __user *, pathname, --=20 2.43.0 --=20 Cheers, Stephen Rothwell --Sig_/z9bmRDdU.XvdNV.f=5KL.w4 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmZVT/gACgkQAVBC80lX 0GzHQgf+LlYQsQdZOQQJU/c8l/j4ESdIUDOyPxiFRKaDKphZWlADuvAE+RZ45UtG Q499df8nTWl13lfZqZYyZ+hCB0E4OE4Ym+ErJT/3glvLphkerMJiQGZqNJneeNxN 6LEp1BGf1dBwIwEW4Ooy5AR9vgz6+aPd+S5Vj/2w8M+wRoaPmZbTv3+G2y268wng ZUs/vLdjXBhZAL6RWjBIMItaexw5MgHAUVAtIQNBM8h1ALyFb9Sv3Zb5uznlTpvG gcQy5rvuLy7GAQyBt9mfPUMns61q6xWIjVQZtaG2l+CxtXI7AJKxS2VAMgbdxHYI I+lSIshVg0LX0cd9/QG/3PeaZyDxOA== =+BTr -----END PGP SIGNATURE----- --Sig_/z9bmRDdU.XvdNV.f=5KL.w4--