Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2480635ybb; Sun, 5 Apr 2020 08:34:05 -0700 (PDT) X-Google-Smtp-Source: APiQypIUhNZUG21LuMz6OYWuSHE7cfom2guGbWjyuLB+ghxHihmyqakUJJBNtlo6JbaufH7TpJBk X-Received: by 2002:aca:4e47:: with SMTP id c68mr10148841oib.16.1586100845264; Sun, 05 Apr 2020 08:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586100845; cv=none; d=google.com; s=arc-20160816; b=MvH1PUVLiCajKKeCidAyaFFbkKMpwUSTuskVZkVMBMyoofwR3vPRBpfhJTR3DUCXpR mupGO4BlMKz5ZXYO6bvGMR8VSOwN7EiKa3hq1PJE7Nz+c4QjDoFRDfnXrChDPN8d6nbR XMAoGBQvbhpmmzluhxudEDMUnmS8Ye967R3mE0KCDGpaOIcu3cOWHMVXc0zyb/sSKcs3 kUK5Irsri8hbRx0EwTccdeSnjI4xhGkaf+t9u4rcqdpsCwcBEmUOro4ZUGRqsQCU+kxq zP6CpMlw9eLd4qgQIRArQxUwo10yPYnCp0z/AdMmtuVCL3IutRpGdhvKVUPPItZj9fph EDew== 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; bh=0zXZh9SKJs0GVxdIQA5kdL6SFhB5muyZ4d931zJKjtg=; b=xHuBYPY31Wi68kl4bJKj7Xfrh+5SjUtZk38niQ/1XqgqgZZmBu6ZW7NevKUam4zvUl vB1dRJjuvPFYignAAh1FmFTJN3WtcinLkixuua7i/gi0Dz0+E/C7NuyemWNNTxXiue3Y cLoZmppxEyAuGEtnZyuJcb42vpHJMx0bFKVru5rOCBBQT3sLgtqGImFtzQQm/ddGCCfS Kq2236lhyV5wmen6jXGJVq87NXSNYM12DLRbCeJ8jWgt+3y80gmIklIkYumeQWgFDOAw 88iX4SCjuT6uOetgHiVskF9eWyUt2gkMjShdzIMZWPQS4o3W4NMNyB0rZ1seIi7LQRvH fgpg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v81si6371870oia.114.2020.04.05.08.33.52; Sun, 05 Apr 2020 08:34:05 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727051AbgDEP3z (ORCPT + 99 others); Sun, 5 Apr 2020 11:29:55 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:37769 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbgDEP3z (ORCPT ); Sun, 5 Apr 2020 11:29:55 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R501e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0Tufld8x_1586100583; Received: from localhost(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0Tufld8x_1586100583) by smtp.aliyun-inc.com(127.0.0.1); Sun, 05 Apr 2020 23:29:43 +0800 From: Tianjia Zhang To: pbonzini@redhat.com, shuah@kernel.org Cc: kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] KVM: selftests: Fix parameter order error in kvm_create_max_vcpus Date: Sun, 5 Apr 2020 23:29:42 +0800 Message-Id: <20200405152942.95052-1-tianjia.zhang@linux.alibaba.com> 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 The parameter order of test_vcpu_creation() call is reversed here, this patch is adjusted to the correct order. Signed-off-by: Tianjia Zhang --- tools/testing/selftests/kvm/kvm_create_max_vcpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/kvm_create_max_vcpus.c b/tools/testing/selftests/kvm/kvm_create_max_vcpus.c index 6f38c3dc0d56..a7f3120b4409 100644 --- a/tools/testing/selftests/kvm/kvm_create_max_vcpus.c +++ b/tools/testing/selftests/kvm/kvm_create_max_vcpus.c @@ -60,7 +60,7 @@ int main(int argc, char *argv[]) if (kvm_max_vcpu_id > kvm_max_vcpus) test_vcpu_creation( - kvm_max_vcpu_id - kvm_max_vcpus, kvm_max_vcpus); + kvm_max_vcpus, kvm_max_vcpu_id - kvm_max_vcpus); return 0; } -- 2.17.1