From patchwork Sun Dec 7 17:20:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 418477 X-Patchwork-Delegate: michael@ellerman.id.au Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3339F140139 for ; Mon, 8 Dec 2014 04:18:53 +1100 (AEDT) Received: from ozlabs.org (ozlabs.org [103.22.144.67]) by lists.ozlabs.org (Postfix) with ESMTP id 7A48C1A0928 for ; Mon, 8 Dec 2014 04:18:52 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 6D80A1A08C2 for ; Mon, 8 Dec 2014 04:18:10 +1100 (AEDT) Received: by mail-wg0-f50.google.com with SMTP id k14so4570655wgh.9 for ; Sun, 07 Dec 2014 09:18:07 -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=ULztJVQCZEJx9xW24hs/hT6obc5XYBg3kqj992DfamU=; b=mjQ47PU/S63QsoTY7bgotR38EFzlvpe8GYLdhVTLu0fja0i0aXibeD9zY40zJyc04p 8j/ES5zN58papSLjdrmCevVLF/bkcuA/IvFDiz/PaRokGxnJPdtwLvZ5mXj3/kGj79X9 vuWbQPaWpg6DPR5127jUaVKnnWPrdqoJYLkqWsrgMqldd5h4VVxGw2yVgPKMT86VBSEz hVPaEQEYCg5s/iObWzG4Rck+O9+K+lpe/zWeXbamqxMH/OdZ8HqaSL60N9ywVLskDy61 7jhlKgqwd1giTvAhSMk9qKVZGv8fyrONwQqK4ZqDds7Xyo7n4fLgIkiKOA7UC6FLqYZf kWoQ== X-Gm-Message-State: ALoCoQmFpWZ+StDRZ12YbjtvK4RXOXbeUsia5sHJvJvx0YhaUCj9nZ3uNHMG5jz4k8W74P+jD5Ue X-Received: by 10.194.178.231 with SMTP id db7mr38563904wjc.112.1417972686710; Sun, 07 Dec 2014 09:18:06 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id jr4sm13129598wjc.20.2014.12.07.09.18.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Dec 2014 09:18:06 -0800 (PST) From: Rickard Strandqvist To: Alexander Graf , Gleb Natapov Subject: [PATCH] arch: powerpc: kvm: book3s_32_mmu.c: Remove unused function Date: Sun, 7 Dec 2014 18:20:46 +0100 Message-Id: <1417972846-12776-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Cc: kvm@vger.kernel.org, Rickard Strandqvist , linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org, Paul Mackerras , Paolo Bonzini , linuxppc-dev@lists.ozlabs.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Remove the function sr_nx() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- arch/powerpc/kvm/book3s_32_mmu.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/powerpc/kvm/book3s_32_mmu.c b/arch/powerpc/kvm/book3s_32_mmu.c index cd0b073..a2eb6d3 100644 --- a/arch/powerpc/kvm/book3s_32_mmu.c +++ b/arch/powerpc/kvm/book3s_32_mmu.c @@ -78,11 +78,6 @@ static inline bool sr_kp(u32 sr_raw) return (sr_raw & 0x20000000) ? true: false; } -static inline bool sr_nx(u32 sr_raw) -{ - return (sr_raw & 0x10000000) ? true: false; -} - static int kvmppc_mmu_book3s_32_xlate_bat(struct kvm_vcpu *vcpu, gva_t eaddr, struct kvmppc_pte *pte, bool data, bool iswrite);