Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1061681pxb; Thu, 17 Feb 2022 23:04:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgHVevJnfZZ/tYSZ32892oSvp75e8tysXlWcUzwF44P5yFCmlH6cvBxrQECDO3yfZToC2M X-Received: by 2002:a05:6402:3512:b0:404:c2c8:5327 with SMTP id b18-20020a056402351200b00404c2c85327mr6572649edd.107.1645167840877; Thu, 17 Feb 2022 23:04:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645167840; cv=none; d=google.com; s=arc-20160816; b=DnNScDIAfUHxHq5RidbCWuRumzyQNKsQUCrwfDxwg9fQeDyukqYRovLHXZYl6vTEZm KKqXokfgx3IAp8H6IjrR+8mOK8srxvGdWgQaUg2XtVb0wU6p3KGwcV+2TKL/ne+bLi8U az28UsaKz79NlvPtHyNMVMDt7XZutbPmHxRaRpUUAIcvyonaQIrVBdxQSSiJtOAZuB3k K2SH2Fe/4TS3GaNPtlQwUJu9zo3/W6EqrTkSrlKAMX8DC8Y71k8fg/8jn6YaKi8Sdl/E Hb+MMufcrN117QO6/N6N+mQo5HOQ5effXkvTZlT5/hBB0YqPeAF2Wr7N26H86K0HBmLm zmMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ZkOQqxUcG3A5F8FOYN2v3hJdSzDMMNzLUCAK/In0ibE=; b=I69kgpTtV9MLnvCck48lnrgCknDy7MS1PW5jGzaV2kbs/81UsV+oat4LRnp+QzQroz LJbHNJF8QSksXYRK62Yrs+LEipdozjpJY09ZrecUvBSE4IZuZuEvYtv70yF4QIfMLLUp G38YMiMbMImE6OGZuVPQt3Y7DNhE/EXgEDts9f1sxfz2d1mVXkKsSUbAcu6ccNVWLPht McZj6FzGueKwN+qa0o2ZEKWj7zPHE19O+acNcME4ctrffO5JJbL5N588BXsXdbtkygZw LXVM0zSHDZOfru/Rs7cfJkD5VFhXSxnHVdMM2bM3WlDUx7U4kz4vAmwI1r8BNJfaJwGD gWGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x18si6307673edd.179.2022.02.17.23.03.36; Thu, 17 Feb 2022 23:04:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231575AbiBRGfN (ORCPT + 99 others); Fri, 18 Feb 2022 01:35:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231211AbiBRGfL (ORCPT ); Fri, 18 Feb 2022 01:35:11 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E68D5369D8; Thu, 17 Feb 2022 22:34:55 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 4666768BFE; Fri, 18 Feb 2022 07:34:50 +0100 (CET) Date: Fri, 18 Feb 2022 07:34:50 +0100 From: Christoph Hellwig To: Arnd Bergmann Cc: Linus Torvalds , Christoph Hellwig , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, arnd@arndb.de, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, linux@armlinux.org.uk, will@kernel.org, guoren@kernel.org, bcain@codeaurora.org, geert@linux-m68k.org, monstr@monstr.eu, tsbogend@alpha.franken.de, nickhu@andestech.com, green.hu@gmail.com, dinguyen@kernel.org, shorne@gmail.com, deller@gmx.de, mpe@ellerman.id.au, peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, hca@linux.ibm.com, dalias@libc.org, davem@davemloft.net, richard@nod.at, x86@kernel.org, jcmvbkbc@gmail.com, ebiederm@xmission.com, akpm@linux-foundation.org, ardb@kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, linux-xtensa@linux-xtensa.org Subject: Re: [PATCH v2 13/18] uaccess: generalize access_ok() Message-ID: <20220218063450.GI22576@lst.de> References: <20220216131332.1489939-1-arnd@kernel.org> <20220216131332.1489939-14-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220216131332.1489939-14-arnd@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +#include Instead of the asm-generic games, shouldn't we just define access_ok in if not already defined by the architecture?