Message ID | 20230815004813.555115-3-vgupta@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp1979359vqi; Sat, 19 Aug 2023 04:59:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8J4pZCvzovYfRnytBK2m2H8qDZx3DF2OgpIzWe00UR5X3zbY1iGAi1WDzIkE9bxK8UlWX X-Received: by 2002:a05:6a00:1744:b0:68a:38bc:47dd with SMTP id j4-20020a056a00174400b0068a38bc47ddmr371894pfc.4.1692446373093; Sat, 19 Aug 2023 04:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692446373; cv=none; d=google.com; s=arc-20160816; b=Uxjqk8sLsHahy5RFq5TJdZClvs1ybpSiEH8D6Y7m/2Q+XmFs6e6Xcy83bqAlDTCoA0 DNXO+35O+XY20bgknc/VGWHky6XIAY1Mfn6ToWg/66tmzF8FRtxKF7QYtFWGZzT1GcRe RNXaXsr0dyaJtsv+oO4Yf0jEqf6RN+Q0cLTp4hsYDTTQyLyGRu8BgubiK6s9D3VIs2lU rH/zVgQ/w7VaXNOvtUZHsxqyu817fnfBHt/KGGWc2GR+gRamtfKeANIjE5F1lYmHK6bG 2qrwLVnwH8Yf9ThAPL+dDJ0SQIF17krGh9No1RBREZXdbLqFGaavvre3zYmLYV7wVAHU hIfw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=le62ng7bkTn2fUVI4gv2j5rcSL/069GIWObmn24m5Wo=; fh=pU3/8cu9yvGtRhZz+04fy928CRCHy2kGYoR0fnliYkk=; b=MDmf6RpzGKveovgse8odt4QZhyoxZCWCSIx8l9VPosF/4i53BvHfF6pEWMCwgXKZFq DHeb2iFPTo7IQOjSH9ggs+WpVaJf/jfuEuWrNfnsEUaitWeliXOYiuVrULDFO3CSDS2C n8VH7o8cn885eHnkdTCRQIsNdnYPjyAl/lU7xlxh4YHpDWTAq0oh6/N6XfFf78u0gtcw m2UiVkFn3bKZ0n+4vffDJZ3Fzmhyqv3df124fTqz1O4GWaKCCWW/hS+8aXg+FgyTy1R9 3YU9kC0sDXT8LOHrPbYS/e8vM6ad4wzjWMy5d+6iYRpZSaC6SsSkJC9ynYCN/CoXYxSp uJfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sYn9I40S; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q123-20020a632a81000000b005644829012fsi3194343pgq.701.2023.08.19.04.59.19; Sat, 19 Aug 2023 04:59:33 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sYn9I40S; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233735AbjHOAse (ORCPT <rfc822;shaohuahua6@gmail.com> + 99 others); Mon, 14 Aug 2023 20:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233502AbjHOAsU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 14 Aug 2023 20:48:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 373621723 for <linux-kernel@vger.kernel.org>; Mon, 14 Aug 2023 17:48:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C946D640F6 for <linux-kernel@vger.kernel.org>; Tue, 15 Aug 2023 00:48:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6F3CC433CB; Tue, 15 Aug 2023 00:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692060499; bh=YH1Bc28nzEk45ZXRwo0o5JTtxWlnUgrQ7Atrmj3ROek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sYn9I40SFgdPcfvO+C1hyvCYNpDILybAVYz26koAmqj/kKoLVs8PazZpg2vzGnFyG D+QnTkdkKTqjl9/c7LFQqsMCSe31rR9RqvluNm04G7sFNwExJ2BEX9D1xdgFxQj3q7 g9ZiBKNtZCtVvRQcUrlUSbYqCGuO0eWBy24njidcrnEZNKQPsKSol0n+efHEJaJ3xL VYDMzZZCeJo6RBOUl2KkCZDpA0Aq5h/r6XDbJpWyJ/ugdrSD8DphbH+xRlcT0+N76q 6yZq5j9IYGgWwnnvotQuESl5w9b97H8QiQ9Rk07XnY9l9Kc64Twm3/nI9PyNnfzSgr pD+WPdvs/ATOw== From: Vineet Gupta <vgupta@kernel.org> To: linux-snps-arc@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Shahab Vahedi <Shahab.Vahedi@synopsys.com>, Alexey Brodkin <abrodkin@synopsys.com>, Vineet Gupta <vgupta@kernel.org> Subject: [PATCH 02/20] ARC: uaccess: use optimized generic __strnlen_user/__strncpy_from_user Date: Mon, 14 Aug 2023 17:47:55 -0700 Message-Id: <20230815004813.555115-3-vgupta@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230815004813.555115-1-vgupta@kernel.org> References: <20230815004813.555115-1-vgupta@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774658648194463848 X-GMAIL-MSGID: 1774658648194463848 |
Series |
ARC updates
|
|
Commit Message
Vineet Gupta
Aug. 15, 2023, 12:47 a.m. UTC
The existing ARC variants have 2 issues
- Use ZOL which may not be present in forthcoming architecture
- Byte loop based vs. generic version which is word loop based
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
---
arch/arc/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 96cf8720bb93..47b4acc7d0c9 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -26,6 +26,8 @@ config ARC select GENERIC_PENDING_IRQ if SMP select GENERIC_SCHED_CLOCK select GENERIC_SMP_IDLE_THREAD + select GENERIC_STRNCPY_FROM_USER if MMU + select GENERIC_STRNLEN_USER if MMU select HAVE_ARCH_KGDB select HAVE_ARCH_TRACEHOOK select HAVE_ARCH_TRANSPARENT_HUGEPAGE if ARC_MMU_V4