Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2828097lqz; Wed, 3 Apr 2024 09:38:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/0ZEA28YvDcU8vK76aHuTz19L+Yn2jEkdfnOuDogU9vriimnMuCwlbeyT1VRRWNxJYAzCkwkLCLqNcGSVCR/wJNVhXEU0tRP8Lg0ufg== X-Google-Smtp-Source: AGHT+IFyjn/wurvnOLmHi4xQMRzQp4Km7AVY1oKrKytFCZWQAo7uK0kG+deNpZdVhe4WaqITbMWg X-Received: by 2002:a05:6a21:1aa:b0:1a3:c4ea:f528 with SMTP id le42-20020a056a2101aa00b001a3c4eaf528mr234394pzb.43.1712162292564; Wed, 03 Apr 2024 09:38:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712162292; cv=pass; d=google.com; s=arc-20160816; b=zJsCXoTqH11RTtuvMDfHQqhv5RYhPtcDwUmXgOS5brq7D7YYEaP0foDmGb1knVpn95 PNjteL5K04944eADji5CEBGJ/71QWDKCRbs1E4RQIro4jJybn0v1umYIk6dYkzCadSop 2uEMnxd4v2iPaePL/jfylFAc59ILBt22ZFjvtbHdeg59x39ZMRk9gMfK+VzTnFwqbw5N x5roB7bEZjHbvPXkWezBxF4rpxC1Fbt8KYdw8/AleF/x504jW71Zff2XLrccEnJ83PcW 0nYMKM5rfx0A+qnSvuJjNaf2uLDnQ4B6vPmhn1CkikwlKM2dQA4ZP6EkE8mFc/cPjJmR yZ8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=q1vrkM4qy+eCxZFi+KNPrNFLVrCIYB9n/XwoXXqqv5s=; fh=JxQFxWYOxl1JQzrd+LpIha7zsvhU22Z1Nv82bvojbEg=; b=te6+qmiy3y4wLmOxiVHSXgJ6rqH3MOBczpyQ8Jh/eabtxtc+cZpZgsvNwf5NMkrNuo 2gjEsB0D9ROsaWwAd1BWQRg3Kqx8tqFiHeMQ4nR/Zi0uGzm2Pmn9XyXXgWB7l+b/Jok+ XbLbIwDjbGFr9dtzYT7ksLo/j4UU58+Du/WqgysQv0DunfIrEPGaLI+hhPwNwETWtVYz kJKMx+SBAc4AHryE3jLrBd0BuSrNYNrt2BHjDnLt2E+IMa56ZaWAoz/wOF5xmIeXuAFd Q//xXcTSFeMXX+ljRWmpENo6qRMqtEqqMqJZUbIo95q+hADF9ctsRZ79hCQkntd4KeQZ pB3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=X2dBHy20; arc=pass (i=1 spf=pass spfdomain=flex--rananta.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-130203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130203-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b7-20020a17090a8c8700b0029c5e4cfd51si15441129pjo.76.2024.04.03.09.38.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 09:38:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=X2dBHy20; arc=pass (i=1 spf=pass spfdomain=flex--rananta.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-130203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130203-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0018A28BAB8 for ; Wed, 3 Apr 2024 16:38:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DC7A1509B2; Wed, 3 Apr 2024 16:38:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="X2dBHy20" Received: from mail-io1-f74.google.com (mail-io1-f74.google.com [209.85.166.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48DA317C98 for ; Wed, 3 Apr 2024 16:38:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712162282; cv=none; b=AAcjbcD//nE09A6jhKFT3v0c0j1GXCApmjdyuEnnNGehUxSLxQJrNtUgKBU8ZjFZhXpCRom4AzGzLPtDN1KS8otv8M1TPvk87fy0TOoA22b4stVLCk3atv+GyabFZFrG49zhX2bLDB7fVmR5R5tlv7WDIKEnmuQKumkWxuk69Ow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712162282; c=relaxed/simple; bh=ytvGI9heir8jUTNz8fa21KCx3UR41dZ1BEei/fkS/tk=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=X0u0RSBfBg3gtJ5IcRgtH14j6VXTcWlbDMaJEg2GDUHx04Zn5JCrfSofE32+Jr1HvHH2S5QHKa6txbNcAIqPhLdDhZJ8B/dCtbvoVF7qSzb4rQQ58fbeDdb9gETfO8KL/RDM2mZ0NZf9WXAfT505FyFd4FnEKVGhbZzoU2yS2t4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--rananta.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=X2dBHy20; arc=none smtp.client-ip=209.85.166.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--rananta.bounces.google.com Received: by mail-io1-f74.google.com with SMTP id ca18e2360f4ac-7cbf0ebfda8so4844939f.0 for ; Wed, 03 Apr 2024 09:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712162280; x=1712767080; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=q1vrkM4qy+eCxZFi+KNPrNFLVrCIYB9n/XwoXXqqv5s=; b=X2dBHy20VCfrkvrQ6WM2WSZVss0oa5SFr3NpuNhg6lMs1wVBBc0U+qJfCXzpXvRdAz 3EnOr43T6+cwziuo9Ez1jx9GO1UkoLE0wGcys4K3+9tqoxUST6TcVyn2KUnfiOrv/UYs 1qFf77G3s5l0KgLHt82yoo+eMjTI4JDJO75HKUdMLfvY7Gay2+WC4nJM49FXoNDegy40 I+PkoFZOlZoy812OD+CWreLMYEYdh0fq2XtKFERUDxmWhsErqEWfF/POnUPGqdc+wjUl GHF/0htmJxmizb0DyMDSoPlj5vh2CYdmK5xHx+MXLuroELuq1gucI9ZSyLUH0CmIWp00 brCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712162280; x=1712767080; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=q1vrkM4qy+eCxZFi+KNPrNFLVrCIYB9n/XwoXXqqv5s=; b=gY4Ud2h5bux1mCjJapXsVGogktdbGPFSchtwk+CxGN4eRjiUto7eR2WwgBiNsR/Czb FFh+g1LE1znLar6EGq8oa7lrdPqIEBHmYrn0tLtK2jm6C5zFY6UoQr2F6KdrtRO9SgkG hUCehETIE7zM3IXnqxi6JtpaStq+g3a1p2wcufPsctQFg8N2fyJDFSBWUewIamzkJAxA XkY5oQQ6mHXk8QlRBC0USK8v1JsYyQJmZwFUk0+H0/3EUoUFHYTFVNwQH6XO8FiHBQYF MdyAFzt5LFw7O/OGO/oIojSSrh7Lffju8JwqnGv2xzXPMMp1+YU5+9rauPu9xYoOSKoZ kR1g== X-Forwarded-Encrypted: i=1; AJvYcCXXyfKC6TfAZA1SqFmCeebeqvGHoHNq7FsfHLw4x6ygaOKUogmOb6ITdBZ4jJnogIXwYZ2vnX8mjrkTu/dwtuVu6IfJJeD5G3spI0Oo X-Gm-Message-State: AOJu0YzOQW6eFmFnXBOLNegB8MDUixER+iIi1qmIHJoYctNlAjDzWCmh BmHgboYZvukEcbDN9dDyX00jYktbpDmsVsO97wxCXeR06bhpz+F2ILj3GM7Rjs4ogQf+jqxNDaZ +3QXKHg== X-Received: from rananta-linux.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:20a1]) (user=rananta job=sendgmr) by 2002:a05:6638:3488:b0:47c:1788:e23 with SMTP id t8-20020a056638348800b0047c17880e23mr953740jal.4.1712162280573; Wed, 03 Apr 2024 09:38:00 -0700 (PDT) Date: Wed, 3 Apr 2024 16:37:52 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.478.gd926399ef9-goog Message-ID: <20240403163753.1717560-1-rananta@google.com> Subject: [PATCH] KVM: selftests: Fix build error due to assert in dirty_log_test From: Raghavendra Rao Ananta To: Sean Christopherson , Sasha Levin Cc: Paolo Bonzini , Shuah Khan , Peter Xu , kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Raghavendra Rao Ananta Content-Type: text/plain; charset="UTF-8" The commit e5ed6c922537 ("KVM: selftests: Fix a semaphore imbalance in the dirty ring logging test") backported the fix from v6.8 to stable v6.1. However, since the patch uses 'TEST_ASSERT_EQ()', which doesn't exist on v6.1, the following build error is seen: dirty_log_test.c:775:2: error: call to undeclared function 'TEST_ASSERT_EQ'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] TEST_ASSERT_EQ(sem_val, 0); ^ 1 error generated. Replace the macro with its equivalent, 'ASSERT_EQ()' to fix the issue. Fixes: e5ed6c922537 ("KVM: selftests: Fix a semaphore imbalance in the dirty ring logging test") Cc: Signed-off-by: Raghavendra Rao Ananta Change-Id: I52c2c28d962e482bb4f40f285229a2465ed59d7e --- tools/testing/selftests/kvm/dirty_log_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/kvm/dirty_log_test.c b/tools/testing/selftests/kvm/dirty_log_test.c index ec40a33c29fd..711b9e4d86aa 100644 --- a/tools/testing/selftests/kvm/dirty_log_test.c +++ b/tools/testing/selftests/kvm/dirty_log_test.c @@ -772,9 +772,9 @@ static void run_test(enum vm_guest_mode mode, void *arg) * verification of all iterations. */ sem_getvalue(&sem_vcpu_stop, &sem_val); - TEST_ASSERT_EQ(sem_val, 0); + ASSERT_EQ(sem_val, 0); sem_getvalue(&sem_vcpu_cont, &sem_val); - TEST_ASSERT_EQ(sem_val, 0); + ASSERT_EQ(sem_val, 0); pthread_create(&vcpu_thread, NULL, vcpu_worker, vcpu); base-commit: e5cd595e23c1a075359a337c0e5c3a4f2dc28dd1 -- 2.44.0.478.gd926399ef9-goog