Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21013044ybl; Sun, 5 Jan 2020 17:31:38 -0800 (PST) X-Google-Smtp-Source: APXvYqzzlBNzp0UJqzyJbLuiQK80otsZTXy+o+fNYDDWZXUMdaKX2dNLayHoSVHaIh7y4ViAEnGd X-Received: by 2002:a9d:62d9:: with SMTP id z25mr63943805otk.249.1578274298212; Sun, 05 Jan 2020 17:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578274298; cv=none; d=google.com; s=arc-20160816; b=xZerbD1cnjBGZ6+G4JcW2fqBVEIyeJUcy/+MMQdrlbBGHaHmvj6OjZt21EM7lnvjt/ r13YbpWDD7kzBe7ZLsYU7Tic+Zrl9UlpN+hIuHvePSTxrrrx2y5MAlyTD+OirIr++8pY ZMM89021pkXxd0cTWJlvwqTReJ6DSLCgG1kviBBRf8iI0yhgwrjpDpdY9Su/Sb840jrc Ikz+Atq/q80GwFLMEpJ+p6r+J00cxGa7frMblh7hzAn8kLQEiLrQnGpzUx7Xazg0P4jp pfvz523g6tWXb8hSLaRJYRWzCBkh7QVhf+8VxVHqgajJtsJmXNWINAlav0KMQ6L0/r9V fITA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:subject:cc:to :from:date:dkim-signature; bh=9adfemTTjtXninBJYQvU5rENNlQaDKs2U+niheMPB1Y=; b=BrcKnWGRFvgiZTEm1RPio5bI9+eBe69xLzlEDU2oGQIBXs9t4p5p3TfBzAMTKsHotb XMez92a5eWqxccvWPPSHImXmpGHZbYtHu+48ZKr9uo5giH3wYHsjW0UB1Si+XkModpYp IPHoBcr+1WdpHAGMaKGti2DWm1AKTEauvNhZOl4Se2u5ftonRWVSwAZN+odK1toYoMzR wd8MoOtSNb5UN9W5O8eIJNrHL4SMw6xgkz/f3FSNd2n1eEHOnumqbmSICCyEagy0WrYh a/wsZ5NAnkRE1+bvb3OMNiLPzE80EMnvP2OJDHHUSv6hHgPKsqYGfaiPaG2G9u6X8SY6 uitQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=W1Pg0Ikb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12si29003093oiz.131.2020.01.05.17.31.22; Sun, 05 Jan 2020 17:31:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=W1Pg0Ikb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727244AbgAFBae (ORCPT + 99 others); Sun, 5 Jan 2020 20:30:34 -0500 Received: from ozlabs.org ([203.11.71.1]:50345 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726731AbgAFBae (ORCPT ); Sun, 5 Jan 2020 20:30:34 -0500 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 47rdHS6FrZz9sR1; Mon, 6 Jan 2020 12:30:28 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1578274230; bh=yMDpAd1QOKFjQar6fmYKLCg+bdrTlcJiiHW/xzSmJDU=; h=Date:From:To:Cc:Subject:From; b=W1Pg0Ikbf7pht31LX0B7lwOCDSnxE3PdmFg/ffmp/ul7eMnkqHv1QDkvUX0KdYIZ1 2kffyE0d8my7N2RmaISOtbdIW4CUpaF5ZRLfCtxbm6pbwLfBlOyp6JXKZWH21DTEjo S0JM43ksTPIf2hpuVqO6E+GVu55lcdzd6DQTnDzzNf7RGbbfZ3vnoxXalFdSGYpAGl HzOROSE+Qc24Gqn6j1ULuBHgSIO4hUSGA7TUFYObz7zysVTND5oPp8O3pWp3kXDIfy ZHgD3sB3PrsGM1e6fnh9DUiuiBamRybJan6LrcjuGtLCY2mGAoxKjH7GOXST5dDKx/ qChEIc/At24Yg== Date: Mon, 6 Jan 2020 12:30:27 +1100 From: Stephen Rothwell To: Jens Axboe , Al Viro Cc: Linux Next Mailing List , Linux Kernel Mailing List , Aleksa Sarai Subject: linux-next: build failure after merge of the block tree Message-ID: <20200106123027.1a162197@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Pqe+0R3zoI8vqIGsIjsOL5B"; 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_/Pqe+0R3zoI8vqIGsIjsOL5B Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, After merging the block tree, today's linux-next build (arm multi_v7_defconfig) failed like this: fs/open.c:977:12: error: conflicting types for 'build_open_flags' 977 | inline int build_open_flags(const struct open_how *how, | ^~~~~~~~~~~~~~~~ In file included from /home/sfr/next/next/fs/open.c:36: fs/internal.h:127:12: note: previous declaration of 'build_open_flags' was = here 127 | extern int build_open_flags(int flags, umode_t mode, struct open_fl= ags *op); | ^~~~~~~~~~~~~~~~ Caused by commits 4e9e15c9426e ("fs: make build_open_flags() available internally") 3bba3e571bc8 ("io_uring: add support for IORING_OP_OPENAT") interacting with commit 0a51692d49ec ("open: introduce openat2(2) syscall") from the vfs tree. I have applied the following fix up patch for today: From: Stephen Rothwell Date: Fri, 20 Dec 2019 11:50:51 +1100 Subject: [PATCH] io_uring: fix up for "open: introduce openat2(2) syscall" Signed-off-by: Stephen Rothwell --- fs/internal.h | 3 ++- fs/io_uring.c | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/internal.h b/fs/internal.h index 166134be439f..dabf747c14fd 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -124,7 +124,8 @@ extern struct file *do_filp_open(int dfd, struct filena= me *pathname, const struct open_flags *op); extern struct file *do_file_open_root(struct dentry *, struct vfsmount *, const char *, const struct open_flags *); -extern int build_open_flags(int flags, umode_t mode, struct open_flags *op= ); +extern struct open_how build_open_how(int flags, umode_t mode); +extern int build_open_flags(const struct open_how *how, struct open_flags = *op); =20 long do_sys_ftruncate(unsigned int fd, loff_t length, int small); long do_faccessat(int dfd, const char __user *filename, int mode); diff --git a/fs/io_uring.c b/fs/io_uring.c index c770c2c0eb52..60ebdea1d8c6 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2476,16 +2476,18 @@ static int io_openat(struct io_kiocb *req, struct i= o_kiocb **nxt, bool force_nonblock) { struct open_flags op; + struct open_how how; struct file *file; int ret; =20 - ret =3D build_open_flags(req->open.flags, req->open.mode, &op); + how =3D build_open_how(req->open.flags, req->open.mode); + ret =3D build_open_flags(&how, &op); if (ret) goto err; if (force_nonblock) op.lookup_flags |=3D LOOKUP_NONBLOCK; =20 - ret =3D get_unused_fd_flags(req->open.flags); + ret =3D get_unused_fd_flags(how.flags); if (ret < 0) goto err; =20 --=20 2.24.0 --=20 Cheers, Stephen Rothwell --Sig_/Pqe+0R3zoI8vqIGsIjsOL5B Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl4SjbMACgkQAVBC80lX 0Gzf4AgAh3FFiUW5b1cLfbDX6dNTw7MYybIsttqrSvB8zf98dtkz9pb4vMYwaGC+ w0RlNABraY/NnNz7QJIjhwx+vbSM0LUwpt1bWidnPSvfdOwduPVonaRrDsACzmTw ZbfcQTqh/yqJpRuPc6sxCiai6SIT7LB59iVPKwhqim9bunO25qBg68QC4iiHzLGW Ggc0i3PsuOvdgLIi2PmiEiRxUwuF49OOEMTtNHGgpkoDPz0TQwtN+E1YPCdwe+gv kUcfyF5Io0Br2WkRw9iAGy4YfTYYeL07PjspfCuv9lC1M6qEHJgsh7shgvYk0mVu 6yVN1dLdqP5karbSWA/GdEQdT5qoLg== =JwN7 -----END PGP SIGNATURE----- --Sig_/Pqe+0R3zoI8vqIGsIjsOL5B--