From patchwork Thu Sep 8 08:56:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75733 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp732155qgf; Thu, 8 Sep 2016 01:57:17 -0700 (PDT) X-Received: by 10.98.36.76 with SMTP id r73mr26164564pfj.27.1473325037198; Thu, 08 Sep 2016 01:57:17 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j65si46177185pfj.96.2016.09.08.01.57.16; Thu, 08 Sep 2016 01:57:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940973AbcIHI5F (ORCPT + 27 others); Thu, 8 Sep 2016 04:57:05 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:35843 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S939924AbcIHI5C (ORCPT ); Thu, 8 Sep 2016 04:57:02 -0400 Received: by mail-pa0-f48.google.com with SMTP id id6so15441020pad.3 for ; Thu, 08 Sep 2016 01:57:02 -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=4hLFvHF3gCw/VVC12crY6Kp0NVRrbKuQmTMbTr6tNeU=; b=RvNAlWeJyJuUDDLJTFFSPHDQfNso9vZx7751tlQfyzeODB/JL79VC0f0iyWqSEYPQ3 9uKhNwnW8bEe57YOwvQ1/wiR5WusWz0q22bKFO/KNEQ8nEvvmkoos5uNmhEerStm3Jy7 LZveGIz+RFPN4NIUHpNEGANU+lljKirFzHgbg= 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=4hLFvHF3gCw/VVC12crY6Kp0NVRrbKuQmTMbTr6tNeU=; b=SYDPTJ6E6XHg9nNqX/oyQc+TQ8TPtT6pr1lVfFtv54ZP3FSBdEBLL7aC8KvQLQO9eO pAVcm6FKBaMDFNbCkKTUXjosnSHPzz1ET/eWqfqB7nrAgZRAB3Kb5rSNzA08HpSk62BZ EK9qaRzpfwMbEdzColhyYJrSWXa+uBhV2Nzqelqsz0Z2Z6M38qpfDjFzmNdGLKupVCS4 vkjrY7sMQL6HLZWkunZDHYbgpLvimvE12DMQl4MZe6127P/r42Fq+zJqt60P0D019FbW U0A62EC4S8XlWHzS4wikxZ4/IKSXLLuFqwOWlnpVa9ZLpH+zbBWLqwbqt7rfApFA+08I f3CA== X-Gm-Message-State: AE9vXwOJp3OUIEOICr+X7wYyHUYj2ibBbwqS5/F3TfulofF3NUn6vBWiLaEaIidipAJcHxJ3 X-Received: by 10.66.124.197 with SMTP id mk5mr15427368pab.4.1473325022140; Thu, 08 Sep 2016 01:57:02 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.33]) by smtp.gmail.com with ESMTPSA id 184sm54532547pfg.20.2016.09.08.01.56.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Sep 2016 01:57:01 -0700 (PDT) From: Baoyou Xie To: mst@redhat.com Cc: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] vhost: mark vhost_process_iotlb_msg() static Date: Thu, 8 Sep 2016 16:56:45 +0800 Message-Id: <1473325005-9423-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/vhost/vhost.c:937:5: warning: no previous prototype for 'vhost_process_iotlb_msg' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/vhost/vhost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index c6f2d89..bf045ac 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -934,8 +934,8 @@ static int umem_access_ok(u64 uaddr, u64 size, int access) return 0; } -int vhost_process_iotlb_msg(struct vhost_dev *dev, - struct vhost_iotlb_msg *msg) +static int vhost_process_iotlb_msg(struct vhost_dev *dev, + struct vhost_iotlb_msg *msg) { int ret = 0;