Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1220969pxk; Fri, 4 Sep 2020 04:07:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTfn4ro6sKcs5RahmPe5aWfLXOHKj/vfxgi9tot+fdisCmdOfZHrr7X+G9PcfeXDr8Zv1V X-Received: by 2002:a05:6402:50f:: with SMTP id m15mr8265486edv.41.1599217644234; Fri, 04 Sep 2020 04:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599217644; cv=none; d=google.com; s=arc-20160816; b=pFnHuydnlcpZlFHqoav8SSN6e1xzrk/WcbDiV8ZAyP6kHMe5TxKEvC+hy0NBFw2G+n kwtTZxhmdYzXTEIgVSi/IL4FvHF2Av0hLL6n6qUz1BUfFFRZ9OGCAHUfrZps8ksZGbQO 9T68ezk2guNM2u8cFfQ9CR9EFfgbZsgG5D2T+BZCx+aH3UM6+3NlgbNk+NyONuzhBExH 1Hg0Lr/Zv2CrYJFGFVENOK9faviq0XONCSAqghwjBLLF3uHUqQoQlSgwipz3S3eNqFyZ kXdZ2apBnq0nJtWEUWAXPNui2KGF7vnFlKERp9QJL+cy4OXvyT0EdvuaQS8cvL+UlunM PoDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id; bh=iMxfUqXmSpBHUjY81HWwBx8n4FtEx2dT6VwaPwVqTJ0=; b=UgYcR2EuRWaZl0ypdY4UzRSJk4KwJut+7u6IrRBeM9nWiWnTO8LlRjtnqvgKYSqcrf O3IvC33XFGcfmjN79Ntk/sQVwrGdOpRvyQy07h/GsyOIJfuy1Kd/PzxRftP5YVWT3QjI kSr1oN/sY3RFacnVhXZIsnciZL2po2hYzS3AsffU/c3Nf40KoV7zgAums8vp5NzPLTkr pS7rotUzThB2taJhN2+DjD5uHJ/jUWJkhpehYweA3BZ4pxHDOBdzQ2oq6NOu0fv0vHHD iSTzCS+GrI3c4efDDCrkJZvWZQ3uA0kizbcyMihlBXuYIR1a+EfpPeEnY/pZnWyGcBMN zLFQ== 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 v3si3781748ejx.520.2020.09.04.04.07.01; Fri, 04 Sep 2020 04:07:24 -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 S1729872AbgIDLEA (ORCPT + 99 others); Fri, 4 Sep 2020 07:04:00 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:37024 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729977AbgIDLBo (ORCPT ); Fri, 4 Sep 2020 07:01:44 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4BjZVh3vs1z9twhK; Fri, 4 Sep 2020 13:01:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id ZNCm8itgyiEL; Fri, 4 Sep 2020 13:01:32 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4BjZVh363vzB09bP; Fri, 4 Sep 2020 13:01:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id BE43E8B81C; Fri, 4 Sep 2020 13:01:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id WmnyPshTE7Fn; Fri, 4 Sep 2020 13:01:33 +0200 (CEST) Received: from po17688vm.idsi0.si.c-s.fr (unknown [10.25.210.31]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 74BC18B81B; Fri, 4 Sep 2020 13:01:33 +0200 (CEST) Received: by po17688vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 030F8653FF; Fri, 4 Sep 2020 11:01:32 +0000 (UTC) Message-Id: In-Reply-To: <94ba5a5138f99522e1562dbcdb38d31aa790dc89.1599216721.git.christophe.leroy@csgroup.eu> References: <94ba5a5138f99522e1562dbcdb38d31aa790dc89.1599216721.git.christophe.leroy@csgroup.eu> From: Christophe Leroy Subject: [PATCH 3/3] powerpc/uaccess: Remove __put_user_asm() and __put_user_asm2() To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Fri, 4 Sep 2020 11:01:32 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __put_user_asm() and __put_user_asm2() are not used anymore. Remove them. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/uaccess.h | 41 ++++-------------------------- 1 file changed, 5 insertions(+), 36 deletions(-) diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h index 96d1c144f92b..26781b044932 100644 --- a/arch/powerpc/include/asm/uaccess.h +++ b/arch/powerpc/include/asm/uaccess.h @@ -151,42 +151,6 @@ static inline int __access_ok(unsigned long addr, unsigned long size, extern long __put_user_bad(void); -/* - * We don't tell gcc that we are accessing memory, but this is OK - * because we do not write to any memory gcc knows about, so there - * are no aliasing issues. - */ -#define __put_user_asm(x, addr, err, op) \ - __asm__ __volatile__( \ - "1: " op "%U2%X2 %1,%2 # put_user\n" \ - "2:\n" \ - ".section .fixup,\"ax\"\n" \ - "3: li %0,%3\n" \ - " b 2b\n" \ - ".previous\n" \ - EX_TABLE(1b, 3b) \ - : "=r" (err) \ - : "r" (x), "m<>" (*addr), "i" (-EFAULT), "0" (err)) - -#ifdef __powerpc64__ -#define __put_user_asm2(x, ptr, retval) \ - __put_user_asm(x, ptr, retval, "std") -#else /* __powerpc64__ */ -#define __put_user_asm2(x, addr, err) \ - __asm__ __volatile__( \ - "1: stw%X2 %1,%2\n" \ - "2: stw%X2 %L1,%L2\n" \ - "3:\n" \ - ".section .fixup,\"ax\"\n" \ - "4: li %0,%3\n" \ - " b 3b\n" \ - ".previous\n" \ - EX_TABLE(1b, 4b) \ - EX_TABLE(2b, 4b) \ - : "=r" (err) \ - : "r" (x), "m" (*addr), "i" (-EFAULT), "0" (err)) -#endif /* __powerpc64__ */ - #define __put_user_size_allowed(x, ptr, size, retval) \ do { \ __label__ __pu_failed; \ @@ -249,6 +213,11 @@ do { \ }) +/* + * We don't tell gcc that we are accessing memory, but this is OK + * because we do not write to any memory gcc knows about, so there + * are no aliasing issues. + */ #define __put_user_asm_goto(x, addr, label, op) \ asm volatile goto( \ "1: " op "%U1%X1 %0,%1 # put_user\n" \ -- 2.25.0