Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2069481rwb; Sun, 14 Aug 2022 20:35:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR5msMm3ZQXP8SmXUEpEVFKqc4XqwxbmH939Ey3AdDjUI1UFpydYcbLH0V30xzyKLJzvvrzc X-Received: by 2002:a17:902:bd89:b0:172:5de0:c34e with SMTP id q9-20020a170902bd8900b001725de0c34emr8374264pls.90.1660534545167; Sun, 14 Aug 2022 20:35:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660534545; cv=none; d=google.com; s=arc-20160816; b=LvIrwTzGnP9C5iLGJm07lnMToPcTcFHfzVkAlHtkP9s0Gb9DCX4HAqlLohQuLtBagU hakdWdiJsjOg2v4y8+o2IAQFDZj2kEUUxh22RnbFCNoEUqw87TICpIftYdbTTUdmEdOv GZiA+/5QtSgdUvUkHet3VRxGS4w0x/218PkZTZBjkV1N8DM1O/uLRkNtzHnoVnFYkM+4 +EJaYxsLRX+drg8RNljOKmD7MjqMFfawY689rNsoGY/+NGVQou/+vn9cKd66iCk9b3+i zr35YMwGQIzjU0edt889M9J5uikGdV2wHS4+f3NmqdRZJK7soRRbgSiGYX1lBEFmgr5N cH2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=YjU4PclCsmevkL4JRGOFgvB1VtTP/dhl0OHJdiEf0E8=; b=IGD/bcCBTxuSD4UWfG+85yZJSKDdpPekbQZPu65I1nyVwsmpCSJ/TXwYdhnoDZsnEt mmaqcJYxnLckefxqg/H3kwhEY11MVbmeHZG3/pVlzNXT7+coexR5lTwuSIKiP11Hwp42 dg9oPcGUvGWcRBZow0CFocjhpXyZ0GAvNlpUlz2pc7Gf4TONxPFv4UVKP5AxtEkFgP0c OwBO37nDNqu99mUYrGQBtzW1HSGvvQEFQVzkrAEZQQ4ys4814lIo7g679RfRdYCXh7ZQ lC53XSKO/3nRPPvCYOUVuW5XSQ5qlKIL/Pe/BdLeqagHc30kyopMPzOL0QfjT6gVnhmL 1PVQ== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a170902b48a00b0016da21c9176si8863089plr.469.2022.08.14.20.35.33; Sun, 14 Aug 2022 20:35:45 -0700 (PDT) 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230007AbiHODU5 (ORCPT + 99 others); Sun, 14 Aug 2022 23:20:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbiHODUz (ORCPT ); Sun, 14 Aug 2022 23:20:55 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9A0FA1A4 for ; Sun, 14 Aug 2022 20:20:53 -0700 (PDT) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4M5fbd6rq0zkWKC; Mon, 15 Aug 2022 11:17:33 +0800 (CST) Received: from kwepemm600017.china.huawei.com (7.193.23.234) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 15 Aug 2022 11:20:51 +0800 Received: from localhost.localdomain (10.175.112.125) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 15 Aug 2022 11:20:50 +0800 From: Tong Tiangen To: Paul Walmsley , Palmer Dabbelt , Palmer Dabbelt , Albert Ou , CC: , , "Tong Tiangen" , , Guohanjun Subject: [PATCH -next v2 0/2]riscv: some refactorings realted to uaccess and extable Date: Mon, 15 Aug 2022 03:20:23 +0000 Message-ID: <20220815032025.2685516-1-tongtiangen@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600017.china.huawei.com (7.193.23.234) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 This patchset do some refactorings related to riscv's uaccess and extable, mainly for the usage of __get/put_user_nocheck() which not distinguish user access and kernel access. v1 -> v2: According to Conor's suggestion, split into two logically independent patches. Tong Tiangen (2): riscv: uaccess: rename __get/put_user_nocheck to __get/put_mem_nocheck riscv: extable: add new extable type EX_TYPE_KACCESS_ERR_ZERO support arch/riscv/include/asm/asm-extable.h | 12 ++ arch/riscv/include/asm/uaccess.h | 162 +++++++++++++-------------- arch/riscv/mm/extable.c | 1 + 3 files changed, 94 insertions(+), 81 deletions(-) -- 2.25.1