From nobody Thu Dec 18 18:57:13 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31AAFC04FE0 for ; Tue, 15 Aug 2023 00:48:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233732AbjHOAsd (ORCPT ); Mon, 14 Aug 2023 20:48:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233501AbjHOAsU (ORCPT ); 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 C105D1715 for ; Mon, 14 Aug 2023 17:48:19 -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 5F8E364006 for ; Tue, 15 Aug 2023 00:48:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C703C433C9; 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=1692060498; bh=pgFliqh5FCiPwev8SHNbWyt1mtItXDmKgFcmPAR7eAI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ArMfxvd8GgUdg9gKY7FVVUcLWCSiKmKUDUbi+UAGlo4ygnK0IxpvcOECu7gxym9b+ 6XhETF2Rtb8o+c8/Q2S8XTUUNI15wG2klfjCtsR1Mmkm1Xi+DQ2gNYcN2N/T31Xtm1 AgsBEAX8lxJjcmzsVneffl3TGWlOQNimVicJzFsZGRBr/DF9TI8fVZiMjUGwjVwa9C nxeQ4P+tA0myGZBOwFI4D0Huaykq4WTzQ+sx7hA1RiUtasRRDseNyqZJsmIWvBbyc+ LPQ0fazBO9uHvG6/n+RxG+QZwGI8wcx520FlACcltd/KNaplqsj0yMkyMCKzbKksVk KhCJY1XMVb6KA== From: Vineet Gupta To: linux-snps-arc@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Shahab Vahedi , Alexey Brodkin , Vineet Gupta Subject: [PATCH 01/20] ARC: uaccess: remove arc specific out-of-line handles for -Os Date: Mon, 14 Aug 2023 17:47:54 -0700 Message-Id: <20230815004813.555115-2-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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Everything is now out-of-line in lib/usercopy.c Signed-off-by: Vineet Gupta --- arch/arc/include/asm/uaccess.h | 11 ++--------- arch/arc/mm/extable.c | 11 ----------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/arch/arc/include/asm/uaccess.h b/arch/arc/include/asm/uaccess.h index 99712471c96a..d2da159bb80a 100644 --- a/arch/arc/include/asm/uaccess.h +++ b/arch/arc/include/asm/uaccess.h @@ -584,7 +584,7 @@ raw_copy_to_user(void __user *to, const void *from, uns= igned long n) return res; } =20 -static inline unsigned long __arc_clear_user(void __user *to, unsigned lon= g n) +static inline unsigned long __clear_user(void __user *to, unsigned long n) { long res =3D n; unsigned char *d_char =3D to; @@ -626,17 +626,10 @@ static inline unsigned long __arc_clear_user(void __u= ser *to, unsigned long n) return res; } =20 -#ifndef CONFIG_CC_OPTIMIZE_FOR_SIZE - #define INLINE_COPY_TO_USER #define INLINE_COPY_FROM_USER =20 -#define __clear_user(d, n) __arc_clear_user(d, n) -#else -extern unsigned long arc_clear_user_noinline(void __user *to, - unsigned long n); -#define __clear_user(d, n) arc_clear_user_noinline(d, n) -#endif +#define __clear_user __clear_user =20 #include =20 diff --git a/arch/arc/mm/extable.c b/arch/arc/mm/extable.c index 4e14c4244ea2..88fa3a4d4906 100644 --- a/arch/arc/mm/extable.c +++ b/arch/arc/mm/extable.c @@ -22,14 +22,3 @@ int fixup_exception(struct pt_regs *regs) =20 return 0; } - -#ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE - -unsigned long arc_clear_user_noinline(void __user *to, - unsigned long n) -{ - return __arc_clear_user(to, n); -} -EXPORT_SYMBOL(arc_clear_user_noinline); - -#endif --=20 2.34.1