Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3900424pxb; Mon, 4 Oct 2021 12:09:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxW/eV4UYQ3Kdphk+Qz9IfeuBq+J+QP4iPS9Fu/tNsMXi/ib0gJte09Q4f2hvfDeoCOOvwe X-Received: by 2002:a17:907:d09:: with SMTP id gn9mr19515627ejc.447.1633374598068; Mon, 04 Oct 2021 12:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633374598; cv=none; d=google.com; s=arc-20160816; b=Bjfx03bW4tPIyI8rXk/ODuvm2LI+O3u8W/JPa7MVDu87y6JspmfZcDQ+oKeJOqoemL LWGV+5o20gzfz6k/rpLJB7+9j8hl0KShGuO+h7qDb1M5/vzCCohoj/JR5aqn8eVQM/XP 4/hWwWbLLyqWeUHS9J7n1HeJMpGqTZKSsWNXPLRcCHQuYqzlZEmKK19HJqHm4rAIs4jR KUGG1CH9Qq78egPEqOrfzMJ8YFNgHYuYYbKZXN/IG20tSMybLP0UtVC8K335pq0Oc1j8 7pm5urMlMw5yGFbWqo1ipAq1lwnktIcJ1ZVo3lUds5ub272OEekJGUpECB8Lt8NhidH7 pyew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BFKM7U3UDEJ55Ej869376prtCofZCVdDub7v4Xo/Buo=; b=lXm4+CWYvJp8jARISspCU52a3nw22leog9iN1SLh3AJu/ZNds1PmMixlZZfNKD6p0B CEf9lhCkK/xpWDacHk8VYiAP9xsTt4q5a/RDwPpQwjVcll1stUC95vM5yxueBBpuBDmJ ySW529hNrbVtNtLg899GIbVJOfx73pLW/ovQHFM/hlcUJ5GhYlEQ3xsXC66fn+r6dggL xuEH2KFIH44MAbfdzEPe+UZ+WENQQ0uCqhbP6kEzmbwaNRxFIJYrgeIeYIjZDkuvAdjT 3LUIy7uzA9xzM9RwpOswhIL9erexS8W5q3KR/anXuDj7B9yUWbR+fX1utzoW5K50ogwN t/FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=jPaiEO68; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si22985214edd.233.2021.10.04.12.09.33; Mon, 04 Oct 2021 12:09:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=jPaiEO68; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238470AbhJDSZa (ORCPT + 99 others); Mon, 4 Oct 2021 14:25:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238336AbhJDSZZ (ORCPT ); Mon, 4 Oct 2021 14:25:25 -0400 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24534C061746 for ; Mon, 4 Oct 2021 11:23:36 -0700 (PDT) Received: by mail-yb1-xb30.google.com with SMTP id g6so22704460ybb.3 for ; Mon, 04 Oct 2021 11:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BFKM7U3UDEJ55Ej869376prtCofZCVdDub7v4Xo/Buo=; b=jPaiEO68fCD9c6m0PyHUFtUdWd2HM024YbBjs8TME+hIf+piF7+5VAIiq+zs8Vzl45 J4j4CYBHEt/FR6TmTuiy1T7z58//v7+afg0bY2a4sut/NvU3ophdU1Rlrw0e+7vdqWIQ Sz+ZA6lMkIBKN4xxiLRBDlw/FkWvgLMy6P1THW1kal1aqrq1bStbTzwQ5gacHB5rqjch pGTnW1djIrAQIcMyEi6AMSCn72+6D9QYFNxPp5NtltoAkWdb+muid/3/Q678/vvn59rC wk02LQwP5PBzi2WwLdmdHvaR2WE59PqJza8JQfjZt04WBFyLfLeF1wAZNuHe6iy1sVX0 vl5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BFKM7U3UDEJ55Ej869376prtCofZCVdDub7v4Xo/Buo=; b=tbd886NxO313bZ6ssF8mFbDkmjXEU16Z9a7Bn4QUvtw/rHh7Ohi98BSHZqWEZjO+AI t4RXHm81HdBJ+Xf1a1Z99p+vWhvXgCdd+2TgrLvUtILMkKsZVuKFnVj0q1Wo5WAf9Qvs HSNGPqL31MzRI4QDBojbCPwTCml+DUAKVi/SZ66zqEt6J4wvdFLw4R1nQCKG9Yfet/Hn +X7kutoWvzb8C0nGYyaSBjmb41MSWT14lcO/kRyaiPMYkazyo8IZKL2yquOy4reIqvvW 5w5Qh0ShWbGA42UhHuZshqHul7yRlWCq0OSwvcoDucbhwlOD+stVGb13JRywkz0tkB56 FKww== X-Gm-Message-State: AOAM533ayu3gEzpd4PCsqtndWQOMbo2SJeKCoMngmH311liP7WBWqEz0 n1yLnLTo+jHV03/24HTmunY65QC0DYMr3MSYvaNz/Q== X-Received: by 2002:a25:6557:: with SMTP id z84mr17297165ybb.243.1633371815123; Mon, 04 Oct 2021 11:23:35 -0700 (PDT) MIME-Version: 1.0 References: <20210914223114.435273-1-rananta@google.com> <20210914223114.435273-16-rananta@google.com> <61419b8f-4da9-955e-b8e3-1d401d91ab1a@huawei.com> In-Reply-To: <61419b8f-4da9-955e-b8e3-1d401d91ab1a@huawei.com> From: Raghavendra Rao Ananta Date: Mon, 4 Oct 2021 11:23:24 -0700 Message-ID: Subject: Re: [PATCH v7 15/15] KVM: arm64: selftests: arch_timer: Support vCPU migration To: Zenghui Yu Cc: Paolo Bonzini , Marc Zyngier , Andrew Jones , James Morse , Alexandru Elisei , Suzuki K Poulose , kvm@vger.kernel.org, Catalin Marinas , Peter Shier , linux-kernel@vger.kernel.org, Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 30, 2021 at 2:41 AM Zenghui Yu wrote: > > On 2021/9/15 6:31, Raghavendra Rao Ananta wrote: > > static void test_run(struct kvm_vm *vm) > > { > > int i, ret; > > + pthread_t pt_vcpu_migration; > > + > > + pthread_mutex_init(&vcpu_done_map_lock, NULL); > > + vcpu_done_map = bitmap_alloc(test_args.nr_vcpus); > > This one fails to build. > > aarch64/arch_timer.c: In function 'test_run': > aarch64/arch_timer.c:321:18: warning: implicit declaration of function > 'bitmap_alloc'; did you mean 'bitmap_zalloc'? > [-Wimplicit-function-declaration] > vcpu_done_map = bitmap_alloc(test_args.nr_vcpus); > ^~~~~~~~~~~~ > bitmap_zalloc > aarch64/arch_timer.c:321:16: warning: assignment makes pointer from > integer without a cast [-Wint-conversion] > vcpu_done_map = bitmap_alloc(test_args.nr_vcpus); > ^ bitmap_alloc() is defined as an inline function in tools/include/linux/bitmap.h (since 4.8), which is included as a part of this patch. Do you mind double-checking if you have it in the header file? Also, the function is referenced by other tests such as dirty_log_[perf_]]test.c. Do you see the same warnings when you compile them too? Regards, Raghavendra