From patchwork Mon Oct 10 00:31:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Axtens X-Patchwork-Id: 9368763 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 383996048F for ; Mon, 10 Oct 2016 00:32:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 155642890A for ; Mon, 10 Oct 2016 00:32:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA8FB286C9; Mon, 10 Oct 2016 00:32:51 +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 7C57A286C9 for ; Mon, 10 Oct 2016 00:32:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750991AbcJJAcp (ORCPT ); Sun, 9 Oct 2016 20:32:45 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:34249 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750869AbcJJAco (ORCPT ); Sun, 9 Oct 2016 20:32:44 -0400 Received: by mail-pa0-f65.google.com with SMTP id r9so6034036paz.1 for ; Sun, 09 Oct 2016 17:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id; bh=NcNPUpfAm5kBGik72/EHl4FsDAswt7Qao4wUfqJDyOg=; b=W+/WVOrAxY+bQTh1Yj20dliV0leL57KkBwzjd/Dp+1Hd/MRVdEzGArLvrZSvlj7Yxh ZzdT2cY90DJHNqIYynNmvEiVmQ/v2WQ4Kz4yLlSBRKU9uOhETDUHUjO+08LPtuDmNgre 6BWcedhvyfCV9mwxny3qEmZIYRY2GuyJp7MHE= 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=NcNPUpfAm5kBGik72/EHl4FsDAswt7Qao4wUfqJDyOg=; b=RFxvnYbPL+w9OvXWFweNuMftkZZ8uKRLJQvSK1dgDoRdzABbPkg7UKnMFDzmkACGMR HGcIpKX9VF/0lCTbYKUqrC7JERZW3moo9pafoNwwvUktw+SWiW6YeQ7+oRyQVmDmuROb Q+6dfMNodSlpOekSAhIDJLwqHTxvoT2nhmFUrDMYkLgvCyzr9SSxG4dATxQeYAFuEpKM q34L5co9CleztskK3ZyrizT7yPDRTJAVmtcBA6UqwEeOuEgukxGlECQolkeP1gpQDqnK lsDmuWU8+y0UB0IXAuU6NKaDHn570K7hqdf5mRshtHXEmtNopJ7uWl8qHxDs8WWudOZi 109A== X-Gm-Message-State: AA6/9RnpInyQqvLx4U1Q9d6+Lg/DkEmnm6oXgoJvVp8IYZAo5frNm6sPpNwzcINQoQjUMw== X-Received: by 10.66.190.201 with SMTP id gs9mr50372909pac.42.1476059507731; Sun, 09 Oct 2016 17:31:47 -0700 (PDT) Received: from possimpible.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id zg12sm13306792pab.5.2016.10.09.17.31.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 09 Oct 2016 17:31:47 -0700 (PDT) From: Daniel Axtens To: linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, paulus@samba.org Cc: Daniel Axtens Subject: [PATCH 1/2] KVM: PPC: Fix sparse static warning. Date: Mon, 10 Oct 2016 11:31:19 +1100 Message-Id: <1476059480-18145-1-git-send-email-dja@axtens.net> X-Mailer: git-send-email 2.7.4 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Squash a couple of sparse warnings by making things static. Build tested. Signed-off-by: Daniel Axtens --- arch/powerpc/kvm/book3s_64_mmu_hv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c b/arch/powerpc/kvm/book3s_64_mmu_hv.c index 05f09ae82587..95abca69b168 100644 --- a/arch/powerpc/kvm/book3s_64_mmu_hv.c +++ b/arch/powerpc/kvm/book3s_64_mmu_hv.c @@ -255,7 +255,7 @@ static void kvmppc_mmu_book3s_64_hv_reset_msr(struct kvm_vcpu *vcpu) kvmppc_set_msr(vcpu, msr); } -long kvmppc_virtmode_do_h_enter(struct kvm *kvm, unsigned long flags, +static long kvmppc_virtmode_do_h_enter(struct kvm *kvm, unsigned long flags, long pte_index, unsigned long pteh, unsigned long ptel, unsigned long *pte_idx_ret) { @@ -1608,7 +1608,7 @@ static ssize_t debugfs_htab_read(struct file *file, char __user *buf, return ret; } -ssize_t debugfs_htab_write(struct file *file, const char __user *buf, +static ssize_t debugfs_htab_write(struct file *file, const char __user *buf, size_t len, loff_t *ppos) { return -EACCES;