Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp34164lqc; Thu, 29 Feb 2024 09:33:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUJQBjdhgwq9+CMjC3DnKvkUW4WYV4XoxQ6IvVf4ckeitF24RTQL1DGLK6hWHtICXpf33a1dxTANp0ISjBCDkpNL6opkp5Ix/zG4gSFoQ== X-Google-Smtp-Source: AGHT+IE1bw845zubRm+MpdRNp+ICEig+m1DzV57DA7WwrEdL0jOUj7uVZYpHoGP6lRjR0r6M01FB X-Received: by 2002:a17:90b:116:b0:299:544c:4933 with SMTP id p22-20020a17090b011600b00299544c4933mr3051751pjz.14.1709228001823; Thu, 29 Feb 2024 09:33:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709228001; cv=pass; d=google.com; s=arc-20160816; b=Whg2fROnBwo5N524e0DcC1+1IrbEWzxikCOg40WD+BlNpmO7GkbO0ipTjF3TLzF8Fz 6b8Wk2Az7FmpgW+x50fE05IdrWJqX+eYOGCcDB/vpf7PoIzKHtyxs9zkYA71YaEyRtAB gP9MyGAs8v1wTUWV1BxlufpYKhllWyhb25uS9xbaInzGHaOe8RcM0b97pnS7vVWVWYzA ZTphtalJHA32rYyHtMObEGDdHYMP9ret0Lf3uyAa87+LnLFt2rBw72T/TSlpeAVuQvMm 2bfBry00nUw95YlajVZNGZDwPOLy/s4tPsMMZRVZyaip82e8qU64OK0W8kue0ghikP6j xU6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Te7vpsXVfxdwoFmnLIYHER1jf7gNvchbgmirQsPlYD0=; fh=MR/wbEn34JHmT+rtzWNq5RVU/RKi8DhjSvb3ywiuLkE=; b=YQbjn1i666QRIAgRn8lt69h2vN/JQqDGIimU7FS804aDk8P9oh/OCdt/s0mBOdPvPK doC/UkYJSDx62raGDdpxCB5jN2EgXjcahpqvbJ13DcblwSldtAeSTsY5ul8VomRFVP6a ol0p2T9WIFgGx3fSY61urJDhajQJFHv5hIiyzGoVJ0DP7dit8KnKqo0FiT2JEf4iqvO2 4pTZyDx0U0MD/O0s//fMIbPvd8USdgm8G585aRViwZRUOF/5+4oQKs36GEPl+yTNM7+f i2WhdM4mivI0FybleHIBPaAbWdmDp6YasZkw8SAw4q2dGAgwtWHsVfkb0bHnlFou8RA4 LPwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=tSl8YApK; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-87135-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87135-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p12-20020a17090a680c00b00290b369b456si3801790pjj.155.2024.02.29.09.33.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 09:33:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87135-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=tSl8YApK; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-87135-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87135-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2E340B28EB5 for ; Thu, 29 Feb 2024 17:04:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D41D241C77; Thu, 29 Feb 2024 17:04:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="tSl8YApK" Received: from smtp-190e.mail.infomaniak.ch (smtp-190e.mail.infomaniak.ch [185.125.25.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5017940878 for ; Thu, 29 Feb 2024 17:04:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.25.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709226275; cv=none; b=FWYukKv85RKz8BjqPb6+aYVBDb2nXIE7E09EaLptTvp3m0mYoY9uTKNUB5X0TSzBbPyj83ovfn4UtkS7smIP05GmJKTf2O7dTTiP1p1mtqFmyjJKLLOGTdv50nOzJMMjLzTrKME/T1OfM4sz41XuMhrriG4IZZ9ppSni9E6aTXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709226275; c=relaxed/simple; bh=njKd78Dlxcb8LNFqK0Y6SC5BCIGDfZPNfNKkSCugFkg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bO9MByj2LDPZJTsZODMxNkcdWveXlPpfV/vrHkZuDGhH4onsrHsS1Ao86UBoY4qYOPVUbAlgrCFLIaX+JmHipe5vA5umhkiLpQFFaM4TXQPXpW6XiCSwfK6DX1gP4GzcYOxCDJtlu/cTBqa8v21DtKLh0J9nUQhdlAUpqskLi/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b=tSl8YApK; arc=none smtp.client-ip=185.125.25.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Received: from smtp-3-0001.mail.infomaniak.ch (unknown [10.4.36.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4TlyHy3694zMrkv9; Thu, 29 Feb 2024 18:04:30 +0100 (CET) Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4TlyHx3kNwzMppVF; Thu, 29 Feb 2024 18:04:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1709226270; bh=njKd78Dlxcb8LNFqK0Y6SC5BCIGDfZPNfNKkSCugFkg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tSl8YApK6lTMIm1P9is6nUyb70iS56zUvtW6vvPpqkeaUL8jxgCoM51JKQUjF9ssj cY8uUxa/dhGRdbk00nKuP/PM9L467aNrqqbYwMVsbB96Q4+RBvLJokVbpLp5r41i8A FSsOtrx+hLcfiz7OU/wAdcXDQcIhO/+DrngS1G5A= From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: Brendan Higgins , David Gow , Kees Cook , Rae Moar , Shuah Khan Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Alan Maguire , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , Ingo Molnar , James Morris , Luis Chamberlain , "Madhavan T . Venkataraman" , Marco Pagani , Paolo Bonzini , Sean Christopherson , Stephen Boyd , Thara Gopinath , Thomas Gleixner , Vitaly Kuznetsov , Wanpeng Li , Zahra Tarkhani , kvm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-um@lists.infradead.org, x86@kernel.org Subject: [PATCH v1 6/8] kunit: Fix KUNIT_SUCCESS() calls in iov_iter tests Date: Thu, 29 Feb 2024 18:04:07 +0100 Message-ID: <20240229170409.365386-7-mic@digikod.net> In-Reply-To: <20240229170409.365386-1-mic@digikod.net> References: <20240229170409.365386-1-mic@digikod.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha Fix KUNIT_SUCCESS() calls to pass a test argument. This is a no-op for now because this macro does nothing, but it will be required for the next commit. Cc: Brendan Higgins Cc: David Gow Cc: Rae Moar Cc: Shuah Khan Signed-off-by: Mickaël Salaün --- lib/kunit_iov_iter.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/kunit_iov_iter.c b/lib/kunit_iov_iter.c index a77991a9bffb..b586aa19e45d 100644 --- a/lib/kunit_iov_iter.c +++ b/lib/kunit_iov_iter.c @@ -137,7 +137,7 @@ static void iov_kunit_copy_to_kvec(struct kunit *test) return; } - KUNIT_SUCCEED(); + KUNIT_SUCCEED(test); } /* @@ -192,7 +192,7 @@ static void iov_kunit_copy_from_kvec(struct kunit *test) return; } - KUNIT_SUCCEED(); + KUNIT_SUCCEED(test); } struct bvec_test_range { @@ -299,7 +299,7 @@ static void iov_kunit_copy_to_bvec(struct kunit *test) return; } - KUNIT_SUCCEED(); + KUNIT_SUCCEED(test); } /* @@ -356,7 +356,7 @@ static void iov_kunit_copy_from_bvec(struct kunit *test) return; } - KUNIT_SUCCEED(); + KUNIT_SUCCEED(test); } static void iov_kunit_destroy_xarray(void *data) @@ -449,7 +449,7 @@ static void iov_kunit_copy_to_xarray(struct kunit *test) return; } - KUNIT_SUCCEED(); + KUNIT_SUCCEED(test); } /* @@ -512,7 +512,7 @@ static void iov_kunit_copy_from_xarray(struct kunit *test) return; } - KUNIT_SUCCEED(); + KUNIT_SUCCEED(test); } /* @@ -592,7 +592,7 @@ static void iov_kunit_extract_pages_kvec(struct kunit *test) stop: KUNIT_EXPECT_EQ(test, size, 0); KUNIT_EXPECT_EQ(test, iter.count, 0); - KUNIT_SUCCEED(); + KUNIT_SUCCEED(test); } /* @@ -670,7 +670,7 @@ static void iov_kunit_extract_pages_bvec(struct kunit *test) stop: KUNIT_EXPECT_EQ(test, size, 0); KUNIT_EXPECT_EQ(test, iter.count, 0); - KUNIT_SUCCEED(); + KUNIT_SUCCEED(test); } /* @@ -749,7 +749,7 @@ static void iov_kunit_extract_pages_xarray(struct kunit *test) } stop: - KUNIT_SUCCEED(); + KUNIT_SUCCEED(test); } static struct kunit_case iov_kunit_cases[] = { -- 2.44.0