From patchwork Fri Feb 22 08:10:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 158996 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1444413jaa; Fri, 22 Feb 2019 00:10:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IZPth6NKdTv64YWUmmy3oRXvJ8NKvRun71cKPJzgaQFqvXBX9XlJI9RzdwEl4GxPkkfvg0L X-Received: by 2002:a17:902:1486:: with SMTP id k6mr3018832pla.49.1550823026977; Fri, 22 Feb 2019 00:10:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550823026; cv=none; d=google.com; s=arc-20160816; b=QgGpRD7v6ZZIa/lJIcBQF4T3XZEOzFT7O4+pH92Oklj+SHs+8dlBjP/j0pxfttjk/t DxZUKzLwmTcl5lsiHYbOAb3ung48XvXGs5G3/DGFGQx9rh7aoyVkxCbuZy3WLuoi22sR RNGfUNiImMRBHqDpJry/MgtlAfPatulADE0YK5Ds8CwWJ0v6OBoST4+rprJq7tMbRzI+ zSQdbXdBpWrBdjU3vByyor0rUp3gnBpIdNSHONOamOwHfe7i7nTXvU7SxUavkp+BYw2l QLfeGELDZrvFrt3dEhoIaalGIUOAar7zHELbdCosCU/66za0AItiNOeYVFYngwBC0lvH Aryg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=0454jgmqadKslS6AXiSTPhnxq89hNMaMPVBArz7LJTA=; b=uOyg6i6g7CLRgF+P39l+JfDA3Sm7yp2eC70bWYSgQkcUAINnIqvmwMZDZ0SUk/TOg3 OyJZszae317WNSjJynmT6B/6DsmNAcc8U9IfQurwFyswv+cW6J9vqsl9qrgnvRfIutqw q7xfRrytkMmOI1pDYesZb+U3dUsv8SmDqdlWu8YxhRt4EssiyeIH1Pkhftm1PzeqqmvK 1NZyn5Efg8wD1JuBfpF4mjybJYnrW/kaYLQkalQSABVkCdgkjM1hP6jfDoSX2Q+u/Ozr W5Tt9k6Pa8slrcHyEsuCY8gEyEMvxDkrOL2FS3UDQGR/ivoOm0PKCyenv1JgwqAJWrmz s9Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=spQDfxPw; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14si787166pls.204.2019.02.22.00.10.26; Fri, 22 Feb 2019 00:10:26 -0800 (PST) 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 header.s=google header.b=spQDfxPw; 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 sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726524AbfBVIKZ (ORCPT + 32 others); Fri, 22 Feb 2019 03:10:25 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44773 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725855AbfBVIKY (ORCPT ); Fri, 22 Feb 2019 03:10:24 -0500 Received: by mail-pg1-f194.google.com with SMTP id j3so756418pgm.11 for ; Fri, 22 Feb 2019 00:10:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=0454jgmqadKslS6AXiSTPhnxq89hNMaMPVBArz7LJTA=; b=spQDfxPwxJ5BmPJmXZs7ysS4KIf5umW36JKTQlSRLxtVsrp7xtULyvKqCkeTBI/rsN sY6SCMGvCLCHVYebTEVvopungAuSDEZgCQCTVHHt3Ez3Czi3LpJKMPBYJL15TKO8MF4M ogoyg9OhuX0MEzfcMwuqwTWbKyjBYJ+p4sKu+kYLIbVZqfA/3OgzMcQvqcRgUV/bMWi1 HdGwNfDU7zbPFIK4JoZh3NwOD+ROtMLhq7UWv/S0iN02fJAgnsUJbtjrchfHNqx74F28 Vzj5BDehXe8WANOnDN0JAt8F4y30BTINSBofdTAvUlRa03GXVd/nkfybM2ui4EH4Z5J8 HBdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0454jgmqadKslS6AXiSTPhnxq89hNMaMPVBArz7LJTA=; b=JydeVMsbN/85rd4P3Y/Ql/y5W0qVAE/qqIg/5o16PmtruDSIyb5FTjqLP/zt7UdhSc kNnDRCxWq0v3Ewc8FXTJPlSChV82yD8aOJkVuzRvtsu7x7tdf28+1NtnqzgY4f0xwtiD 5AVhFtAlRzx81rmSNHZF+8wZYplXAmX0IDdhk4LWj7II2CQc4al/RvxdzvCLQeE58dI0 PUf6r7oMiOEhXO8Cd7JIpwQzf0dB3nqtapvx1EngM+Got7PWGcFMooAjeHwTpc/vSK/2 hUSGysAys0dgz1p/MD6gwalFgYHNpNsn+q7XT0qpmVd4z65FV1E9WaWB3nqgbD+5Q/rb nWBQ== X-Gm-Message-State: AHQUAuZaKLUbYvcj7JS/A7QJwKo32Wxhtrzw/4fhuZttjnmRn6Q78J8G JTmOTcUEPc3v3zNZvhK5D63DZw== X-Received: by 2002:a63:1204:: with SMTP id h4mr2782827pgl.51.1550823024091; Fri, 22 Feb 2019 00:10:24 -0800 (PST) Received: from localhost.localdomain (li1195-158.members.linode.com. [45.79.96.158]) by smtp.gmail.com with ESMTPSA id b80sm1341927pfc.20.2019.02.22.00.10.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Feb 2019 00:10:23 -0800 (PST) From: Leo Yan To: Paolo Bonzini , =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH] KVM: Minor cleanups for kvm_main.c Date: Fri, 22 Feb 2019 16:10:09 +0800 Message-Id: <20190222081009.540-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch contains two minor cleanups: firstly it puts exported symbol for kvm_io_bus_write() by following the function definition; secondly it removes a redundant blank line. Signed-off-by: Leo Yan --- virt/kvm/kvm_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.17.1 diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 2679e476b6c3..735e42896dda 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -3496,6 +3496,7 @@ int kvm_io_bus_write(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, r = __kvm_io_bus_write(vcpu, bus, &range, val); return r < 0 ? r : 0; } +EXPORT_SYMBOL_GPL(kvm_io_bus_write); /* kvm_io_bus_write_cookie - called under kvm->slots_lock */ int kvm_io_bus_write_cookie(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, @@ -3546,7 +3547,6 @@ static int __kvm_io_bus_read(struct kvm_vcpu *vcpu, struct kvm_io_bus *bus, return -EOPNOTSUPP; } -EXPORT_SYMBOL_GPL(kvm_io_bus_write); /* kvm_io_bus_read - called under kvm->slots_lock */ int kvm_io_bus_read(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, @@ -3568,7 +3568,6 @@ int kvm_io_bus_read(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, return r < 0 ? r : 0; } - /* Caller must hold slots_lock. */ int kvm_io_bus_register_dev(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr, int len, struct kvm_io_device *dev)