Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5118121imm; Tue, 16 Oct 2018 05:34:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV62oz94EhwpxpdqcIR5ZA+4HSZCxzlDrJSyOltvNX41LfvpHDHboCn+GVWvuWCCy/N4W+GzM X-Received: by 2002:a17:902:70c3:: with SMTP id l3-v6mr22111181plt.125.1539693271453; Tue, 16 Oct 2018 05:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539693271; cv=none; d=google.com; s=arc-20160816; b=QzI6jmmX1a/oK8dLpL5kGccqh5Skxa/DDyBL4iXcsIYpC0gxe7p65GcrqS+yKHnkq5 oDkpYL7aRSI3h2SadtQ9ukl0+SC5Xfzeb0AV/wUdif9ymvjPDeEnIZHyhyupIQhfMS7o WwppfsNmVRwsv3WnCEJfwfr7tTcWRuj5BfwXq8DFHpj5h1RkYEF+Ebc8WUan2/8k8ckt zNT/xEYUO6dwnF2nNrlW+agBoGWS13mVs8dqbk6S7kofOl4NIYluscmyjXrSRjwoo6pK WV1rjr43ux+DnhN7SU0431RNWoaasf/ZLx1u9GJHjjelnRSSECkh6qptYFALXjSwIi17 WtIg== 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:message-id; bh=57vPNVZH5An6Bp9CbH8rbCMNbqtlG5vwc4DHyNHyrow=; b=NxL+mwU/nMLgrNlUhh/LABh2pW5gPtonr3/EfmIPqwmhvpaD20i/isRx2jNDxqhbzH NV04KTTus+SNuhGR6d6XtXxaLfhgaEEaWG5EelcK4K4ThYIf1c7si0UkbNVOR/LOemeg DXrUPOt5XTTsKJkhs0D83f0Vhi22XAQMsxv2M2dbqzotyvrWnJwIFvAsMtDTtrFLaknB 3U86xmCdtrVl1hno403I7f6ANbG8yVnjwaVMUl72GmuxvGRfyQ/FvC04n32xIgqB5nc9 FMkrdjMigjqnrK3tTEbz8uEsifcdVQhDzFPOuX65y23H85KoROUF1+EwZtz5jVtkZW0V 14hg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12-v6si13334328pfl.255.2018.10.16.05.34.15; Tue, 16 Oct 2018 05:34:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727075AbeJPUX5 (ORCPT + 99 others); Tue, 16 Oct 2018 16:23:57 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:35755 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726595AbeJPUX5 (ORCPT ); Tue, 16 Oct 2018 16:23:57 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 42ZF8p0D7tz9ttBk; Tue, 16 Oct 2018 14:33:30 +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 jS9JomnjwdYd; Tue, 16 Oct 2018 14:33:29 +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 42ZF8n6nBTz9ttBd; Tue, 16 Oct 2018 14:33:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id B91188B7D0; Tue, 16 Oct 2018 14:33:40 +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 FXcBBr3Rhg2o; Tue, 16 Oct 2018 14:33:40 +0200 (CEST) Received: from pc13168vm.idsi0.si.c-s.fr (unknown [192.168.232.3]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6E1588B7CF; Tue, 16 Oct 2018 14:33:40 +0200 (CEST) Received: by pc13168vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 306DB6F4CB; Tue, 16 Oct 2018 12:33:40 +0000 (UTC) Message-Id: <199ae2a28f14f944ee9ae2770a3f1dd030e762bc.1539693039.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH] powerpc/io: remove old GCC version implementation To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Tue, 16 Oct 2018 12:33:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GCC 4.6 is the minimum supported now. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/io.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h index 0a034519957d..3ef40b703c4a 100644 --- a/arch/powerpc/include/asm/io.h +++ b/arch/powerpc/include/asm/io.h @@ -111,25 +111,6 @@ extern bool isa_io_special; #define IO_SET_SYNC_FLAG() #endif -/* gcc 4.0 and older doesn't have 'Z' constraint */ -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ == 0) -#define DEF_MMIO_IN_X(name, size, insn) \ -static inline u##size name(const volatile u##size __iomem *addr) \ -{ \ - u##size ret; \ - __asm__ __volatile__("sync;"#insn" %0,0,%1;twi 0,%0,0;isync" \ - : "=r" (ret) : "r" (addr), "m" (*addr) : "memory"); \ - return ret; \ -} - -#define DEF_MMIO_OUT_X(name, size, insn) \ -static inline void name(volatile u##size __iomem *addr, u##size val) \ -{ \ - __asm__ __volatile__("sync;"#insn" %1,0,%2" \ - : "=m" (*addr) : "r" (val), "r" (addr) : "memory"); \ - IO_SET_SYNC_FLAG(); \ -} -#else /* newer gcc */ #define DEF_MMIO_IN_X(name, size, insn) \ static inline u##size name(const volatile u##size __iomem *addr) \ { \ @@ -146,7 +127,6 @@ static inline void name(volatile u##size __iomem *addr, u##size val) \ : "=Z" (*addr) : "r" (val) : "memory"); \ IO_SET_SYNC_FLAG(); \ } -#endif #define DEF_MMIO_IN_D(name, size, insn) \ static inline u##size name(const volatile u##size __iomem *addr) \ -- 2.13.3