From patchwork Thu Jan 1 17:56:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5557571 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5F5E6BF6C3 for ; Thu, 1 Jan 2015 17:55:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93A7B201C8 for ; Thu, 1 Jan 2015 17:55:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AC238201BC for ; Thu, 1 Jan 2015 17:55:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y6jwD-0001XH-S2; Thu, 01 Jan 2015 17:53:33 +0000 Received: from mail-we0-f177.google.com ([74.125.82.177]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y6jwA-0001RY-5n for linux-arm-kernel@lists.infradead.org; Thu, 01 Jan 2015 17:53:31 +0000 Received: by mail-we0-f177.google.com with SMTP id q59so3583239wes.8 for ; Thu, 01 Jan 2015 09:53:08 -0800 (PST) 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=/gGqzFTE7Z2ycDclQZVz/EhiBxgOWAEmSatBV0qEdX8=; b=funEt3eOehM6ZfT9lvjWCsVuj2VeobsFH7yzEH6x4jjdybC0fpsokV8mjIoNeCk2qK 29V9niexZtURfvzfUqIsDqrRqTxSDDrrz6CnpioVHHgveByVLDzjZcKIgYVxnAP1UKva 43CKrLmhcc4PXhx5ng6ZcNCp/oXd2H0mfE/L+N4fIES2/p9Ytto2l0zUfk3aoNF/uJEF FDN1LVmW7XWNESElqJ9suDuflgJt2fus1+1G7ZOqaaFtw4I3PuL3HW1RIUso0nCN917a yGoZ3myVqLB1YCLMrmthjZr6JeJ6HWMnr/dWS/6/tNSlssOQvX+ezbjqujND9c2soX45 CNFA== X-Gm-Message-State: ALoCoQkLG5dzZu7MCv0gSoTEX+HPGSUduMB0itTTIxBnFAbWfP5CY4lG8U33fQaFxX3mKXQ5CaEk X-Received: by 10.180.91.193 with SMTP id cg1mr126779166wib.26.1420134787919; Thu, 01 Jan 2015 09:53:07 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id n3sm51403768wiw.5.2015.01.01.09.53.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 09:53:07 -0800 (PST) From: Rickard Strandqvist To: Russell King , Jason Cooper Subject: [PATCH] arch: arm: mm: cache-feroceon-l2: Remove some unused functions Date: Thu, 1 Jan 2015 18:56:09 +0100 Message-Id: <1420134969-1892-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150101_095330_401074_44BF10E3 X-CRM114-Status: UNSURE ( 9.23 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Jason Gunthorpe , Andrew Lunn , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rickard Strandqvist X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Removes some functions that are not used anywhere: l2_inv_pa() l2_clean_pa() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist Acked-by: Andrew Lunn --- arch/arm/mm/cache-feroceon-l2.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/arch/arm/mm/cache-feroceon-l2.c b/arch/arm/mm/cache-feroceon-l2.c index e028a7f..c2eac97 100644 --- a/arch/arm/mm/cache-feroceon-l2.c +++ b/arch/arm/mm/cache-feroceon-l2.c @@ -65,11 +65,6 @@ static inline void l2_put_va(unsigned long vaddr) #endif } -static inline void l2_clean_pa(unsigned long addr) -{ - __asm__("mcr p15, 1, %0, c15, c9, 3" : : "r" (addr)); -} - static inline void l2_clean_pa_range(unsigned long start, unsigned long end) { unsigned long va_start, va_end, flags; @@ -96,11 +91,6 @@ static inline void l2_clean_inv_pa(unsigned long addr) __asm__("mcr p15, 1, %0, c15, c10, 3" : : "r" (addr)); } -static inline void l2_inv_pa(unsigned long addr) -{ - __asm__("mcr p15, 1, %0, c15, c11, 3" : : "r" (addr)); -} - static inline void l2_inv_pa_range(unsigned long start, unsigned long end) { unsigned long va_start, va_end, flags;