From patchwork Sun Dec 7 22:29:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 418520 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 [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D26601400E9 for ; Mon, 8 Dec 2014 09:27:16 +1100 (AEDT) Received: from ozlabs.org (ozlabs.org [103.22.144.67]) by lists.ozlabs.org (Postfix) with ESMTP id 9171D1A0D36 for ; Mon, 8 Dec 2014 09:27:16 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id A66B21A001B for ; Mon, 8 Dec 2014 09:26:38 +1100 (AEDT) Received: by mail-wi0-f174.google.com with SMTP id h11so3171033wiw.7 for ; Sun, 07 Dec 2014 14:26:35 -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=lrIU+ZnOCcQp5SKmerD0LGy/kDl/4OvPM/i2pnGxik4=; b=cuKINMIy023VAPpkyN54sFJ2jRnSdfJ509fEBkD4i9IJQjV2cRyBkZUhUo7hNK1+Hs qRUyr/V5altRCakyannDTZbqs5puLixJ0SyaargRlWDxRLcy/UOUWJY3hxhaNACf8jg5 302GwW+/dJjeIr6TizEr8LZR1FJ4QSnRSG39IJUrFwOEemlVgglfu4w93mkuN2b39+q2 XbNwBAU5TZOr4CnVw79wE7Puq16ZQiMQiyGZoAKBbsdes9N96OZBHX9BAU+C/o17gyDj zZS6tmX8UCwnyjvjhaGwh48YEJV3Qq0ZIxch4bXJQiGNg1EioayaHJv2F62lrrcH3NzF V+zg== X-Gm-Message-State: ALoCoQkyTTjISDIx1in/v26M85iqVqi8w0JnPaK88b8bGNnFCCuHw/3Rpx33f9qjyLzsbiziEoQw X-Received: by 10.194.122.34 with SMTP id lp2mr39592662wjb.91.1417991195402; Sun, 07 Dec 2014 14:26:35 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id be4sm7413250wib.16.2014.12.07.14.26.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Dec 2014 14:26:34 -0800 (PST) From: Rickard Strandqvist To: Alexander Graf , Gleb Natapov Subject: [PATCH] arch: powerpc: kvm: book3s_paired_singles.c: Remove unused function Date: Sun, 7 Dec 2014 23:29:14 +0100 Message-Id: <1417991354-19932-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 inst_set_field() 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_paired_singles.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/powerpc/kvm/book3s_paired_singles.c b/arch/powerpc/kvm/book3s_paired_singles.c index bfb8035..bd6ab16 100644 --- a/arch/powerpc/kvm/book3s_paired_singles.c +++ b/arch/powerpc/kvm/book3s_paired_singles.c @@ -352,14 +352,6 @@ static inline u32 inst_get_field(u32 inst, int msb, int lsb) return kvmppc_get_field(inst, msb + 32, lsb + 32); } -/* - * Replaces inst bits with ordering according to spec. - */ -static inline u32 inst_set_field(u32 inst, int msb, int lsb, int value) -{ - return kvmppc_set_field(inst, msb + 32, lsb + 32, value); -} - bool kvmppc_inst_is_paired_single(struct kvm_vcpu *vcpu, u32 inst) { if (!(vcpu->arch.hflags & BOOK3S_HFLAG_PAIRED_SINGLE))