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: 9291603 X-Patchwork-Delegate: agross@codeaurora.org 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 82D45607FF for ; Sat, 20 Aug 2016 06:07:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6543F2933E for ; Sat, 20 Aug 2016 06:07:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5781F28BA3; Sat, 20 Aug 2016 06:07:15 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE18728BA3 for ; Sat, 20 Aug 2016 06:07:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751385AbcHTGHN (ORCPT ); Sat, 20 Aug 2016 02:07:13 -0400 Received: from mail-oi0-f45.google.com ([209.85.218.45]:33274 "EHLO mail-oi0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751325AbcHTGHM (ORCPT ); Sat, 20 Aug 2016 02:07:12 -0400 Received: by mail-oi0-f45.google.com with SMTP id c15so90665516oig.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=JqjCmKjAjPFGlmsBwy77VsYbfnD4DsmRy1fKfqeSAgcjB+30Su0F8J0rjNMFHwFlsQ JWdQJxy/nfL8EQxkWRlkEe8uXyCuNcIny+W5AAGgOJqMk06xJO64KqsBmEN0ot5+CmNC 9mRM9La/qrn/n/KruL0Es4eVld5z9GRF2Jurv/psIDiqhyjYvr3x1TvMV86Lfha1H/Ko yuGWKg93J1veAPa1DeglzA2ljJAvCQiF2fuU6Oz5YxD8bwfHC/tDI6xlUSIzI/+ddVD7 10boWptI4ro0tcVlurknu+0GsI1GrUEDXOFmeBASfDPuT4JGwhQtsQVDbMDWB6Hd7rdK MA4A== X-Gm-Message-State: AEkoouuvLbkycTHlL5N+HJal7iiS4NRYzuvsYKes+oKPvMZKSBRFjQrJ5k9KmSKPc3TQfgTM 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stephen Boyd , patches@linaro.org, Andy Gross 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 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.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