From patchwork Sat Aug 20 06:07:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Gross X-Patchwork-Id: 9291607 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 220C9607FF for ; Sat, 20 Aug 2016 06:09:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05A8129312 for ; Sat, 20 Aug 2016 06:09:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECDEC29342; Sat, 20 Aug 2016 06:09:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 89F6729312 for ; Sat, 20 Aug 2016 06:09:24 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bazRT-0000TU-Iz; Sat, 20 Aug 2016 06:07:39 +0000 Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bazRN-0000SX-5K for linux-arm-kernel@lists.infradead.org; Sat, 20 Aug 2016 06:07:34 +0000 Received: by mail-oi0-x232.google.com with SMTP id c15so90665515oig.0 for ; Fri, 19 Aug 2016 23:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=FXYIzZDhRCGNkwpJX1/A10UFyNMQ4tOESe89WyFbCdQ=; b=kcduF8CuojDCu55pm7453VQ2f/LPWewP79a4JPu0Us2uJAKne4w3Oik807ukBGbS+i Gf+EyhX5IWSuiXKNiQw7a11IIvxARWXdeyjbp7vi4rUlDvyz56JEimisa88hV15c5lyJ fw3PWOTbmNcIcGopVV/7WGsNkU7d+/61qca2E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FXYIzZDhRCGNkwpJX1/A10UFyNMQ4tOESe89WyFbCdQ=; b=RrkbjfF8PODSVAk+6QB1jIrNY7cSR3x3I1M/NSog5/nxUUwRCkaWFB4+kMSp8nJJ2p OtlYkfNk4l7ZqTGAl6fV2vv0Ts/+oW3NliZZg+ixLNMAP1EGcyVRvEEi4J6demsfby0H Dgw1GgOreOemaRJOJlfedmS21JProiriwRtHdx1vEMepzOadaTCUydmghwrlEzsvB/1x k6nw9lRmTGif8SLFimyC5DGHynlOmXdNsBzvlcRDDcsmNrxIyJdPwJ/PwLweDvv04JO9 WFxRE+YePe8hjHLALduZ6eXgBQ0nqfVbHKyXIXRO2cLRiK7ffUZ4n1cSJP4AuDq0UW1O 0ypw== X-Gm-Message-State: AEkooutMuXdaoH7jQnyfMDG+ghRvgHLS1oAOjf4Ey5ORvodlBzl3a6RiCO4qzYD8l1ufomSk X-Received: by 10.202.214.141 with SMTP id n135mr6781004oig.152.1471673231886; Fri, 19 Aug 2016 23:07:11 -0700 (PDT) Received: from localhost ([2602:306:3406:6500:b409:62b0:b7f7:75f0]) by smtp.gmail.com with ESMTPSA id s132sm5881067oif.3.2016.08.19.23.07.11 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 19 Aug 2016 23:07:11 -0700 (PDT) From: Andy Gross To: Russell King Subject: [PATCH] ARM: cacheflush: Remove unused secure_flush_area API Date: Sat, 20 Aug 2016 01:07:01 -0500 Message-Id: <1471673221-19181-1-git-send-email-andy.gross@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160819_230733_300311_1AA4FD81 X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: patches@linaro.org, linux-arm-msm@vger.kernel.org, Stephen Boyd , linux-kernel@vger.kernel.org, Andy Gross , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch removes the unused secure_flush_area function. The only consumer of this function has moved to using the streaming DMA APIs. Signed-off-by: Andy Gross --- arch/arm/include/asm/cacheflush.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h index 9156fc3..bdd283b 100644 --- a/arch/arm/include/asm/cacheflush.h +++ b/arch/arm/include/asm/cacheflush.h @@ -501,21 +501,4 @@ static inline void set_kernel_text_ro(void) { } void flush_uprobe_xol_access(struct page *page, unsigned long uaddr, void *kaddr, unsigned long len); -/** - * secure_flush_area - ensure coherency across the secure boundary - * @addr: virtual address - * @size: size of region - * - * Ensure that the specified area of memory is coherent across the secure - * boundary from the non-secure side. This is used when calling secure - * firmware where the secure firmware does not ensure coherency. - */ -static inline void secure_flush_area(const void *addr, size_t size) -{ - phys_addr_t phys = __pa(addr); - - __cpuc_flush_dcache_area((void *)addr, size); - outer_flush_range(phys, phys + size); -} - #endif