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: 74353 Delivered-To: patches@linaro.org Received: by 10.140.29.52 with SMTP id a49csp631299qga; Fri, 19 Aug 2016 23:07:12 -0700 (PDT) X-Received: by 10.157.29.102 with SMTP id m93mr7373273otm.27.1471673232159; Fri, 19 Aug 2016 23:07:12 -0700 (PDT) Return-Path: Received: from mail-oi0-x22d.google.com (mail-oi0-x22d.google.com. [2607:f8b0:4003:c06::22d]) by mx.google.com with ESMTPS id q13si5782874otb.118.2016.08.19.23.07.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Aug 2016 23:07:12 -0700 (PDT) Received-SPF: pass (google.com: domain of andy.gross@linaro.org designates 2607:f8b0:4003:c06::22d as permitted sender) client-ip=2607:f8b0:4003:c06::22d; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of andy.gross@linaro.org designates 2607:f8b0:4003:c06::22d as permitted sender) smtp.mailfrom=andy.gross@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-oi0-x22d.google.com with SMTP id 4so90690910oih.2 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=e1+l+X05NUxvilaSeas8dQzFat7J+iBNlBR5ZXLNUaKldbzDAO5QowTtVKGoxHYkl2 9AYL0qWB11p1mUBgrSR433dXQR5r0w/ev/AquD1Mcp61qXNivRounhmlwIirAl7/MOV0 wIpzE0l29qkxCbi+2PGOc7GBc7QpdIxXROsfAsHUMrhiJRfoCJKj2BzBLSp7nu+B5h2q jgydyUNKCUmMcTkcjKjk/Z3TmQf+rsevuD+WpZ9kCu6WuviZi/VN5Bxd3ceoXRkSC5J6 ZdfHuPf7zyQ0SEFpK8gZJnlsqMCb9ctaAT73tZdbEMgF3vGzWoF04U5UIjZ5gQtfQN7F Gxsw== X-Gm-Message-State: AEkoouuQZmalzrVVQteGRRfdL2iW76xfpFnJvIanJx8/7IrxPXUyeMxojneQfOQLLsQ6vh0oD1s= X-Received: by 10.202.214.141 with SMTP id n135mr6781004oig.152.1471673231886; Fri, 19 Aug 2016 23:07:11 -0700 (PDT) Return-Path: 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 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(-) -- 1.9.1 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