Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp456275pxk; Wed, 23 Sep 2020 07:29:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwukRixtX0qo3GOnw+PB6ldx7TcDidIdlNuGzGr4D3QXAsPt2tuQdR62+McQG+2PdoEcSAy X-Received: by 2002:a17:906:6409:: with SMTP id d9mr10275889ejm.344.1600871373649; Wed, 23 Sep 2020 07:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600871373; cv=none; d=google.com; s=arc-20160816; b=cQwYlejq6/fd3Eaz43vCB8WBRbApqTfj6K2AbwxU7FtujbDz/9eBjaz1o7YdWpJ8yN sgC8iEF7tsKsMMqsiHQixMY1xI7Ve4aMwa84bEYAa3jaAj5OymnAKSDseT8yWqlEt7// oah12cZg+BdzrrlwBz+aSNNtWdcgOb8ObxNwUrnykUIgkWIE8newjW620XbkLzFCveeH ROT+a/ZoVWLeAueMXv+DJNxCLKKqgeHQ5sX0HOrN+K28LVsIkOP8THiMyQovlKJv2ox8 10bg+sjhNODqaOT/GPiJmhDiU0fHBdBii49F/A30Gu7bUCqKITzFTTPaSTFI2sPP76n/ ItLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=aRUX8UmzWxrkBBJ/F1Zid2PhBP0t1OhKVp+H1yZQQx8=; b=Ukr+z0945Ev74NNNGr/QOkMF5Gg0BaMciDN8g9yk/BddDImwbfAezdLwXGo4x+3aHq OqFAAiY//V3ef0HW6No3wuY0Vlh1xjNDRqU5qBZf6UWIVBjWWOVpBlr4otxv0HMiN3n5 d4P9+IZ7wLE0p/S/gxw2CMlDfcg6ENHldLBfuKQz5309kawoDotNrC1z7N9qlN3465vv VrUuJsVt2oLHvzw4SNyrxHFrwr2RQB1knYNqPM0SZLbr2qljSEOCqOLiKc8AphP3Npce +RbyF8u9tsSQ/3tqIvrndA2UwoxmEmTAS7P4ZJt4h1YP145UW26E49BNsv9UzbvXSTeD ZGjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si10261458edy.522.2020.09.23.07.29.09; Wed, 23 Sep 2020 07:29:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726705AbgIWOZ7 (ORCPT + 99 others); Wed, 23 Sep 2020 10:25:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbgIWOZ6 (ORCPT ); Wed, 23 Sep 2020 10:25:58 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CC96C0613CE; Wed, 23 Sep 2020 07:25:58 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kL5iP-004aT7-76; Wed, 23 Sep 2020 14:25:49 +0000 Date: Wed, 23 Sep 2020 15:25:49 +0100 From: Al Viro To: Christoph Hellwig Cc: Andrew Morton , Jens Axboe , Arnd Bergmann , David Howells , David Laight , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH 5/9] fs: remove various compat readv/writev helpers Message-ID: <20200923142549.GK3421308@ZenIV.linux.org.uk> References: <20200923060547.16903-1-hch@lst.de> <20200923060547.16903-6-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200923060547.16903-6-hch@lst.de> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 23, 2020 at 08:05:43AM +0200, Christoph Hellwig wrote: > COMPAT_SYSCALL_DEFINE3(readv, compat_ulong_t, fd, > - const struct compat_iovec __user *,vec, > + const struct iovec __user *, vec, Um... Will it even compile? > #ifdef __ARCH_WANT_COMPAT_SYS_PREADV64 > COMPAT_SYSCALL_DEFINE4(preadv64, unsigned long, fd, > - const struct compat_iovec __user *,vec, > + const struct iovec __user *, vec, Ditto. Look into include/linux/compat.h and you'll see asmlinkage long compat_sys_preadv64(unsigned long fd, const struct compat_iovec __user *vec, unsigned long vlen, loff_t pos); How does that manage to avoid the compiler screaming bloody murder?