Re: [PATCH v2 3/5] selftests/arm64: Treat KSM merge_across_nodes as optional

Mark Brown <[email protected]>
Newsgroups org.kernel.vger.linux-kselftest,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Fri, Aug 21, 2026 at 03:15:51PM +0100, Muhammad Usama Anjum wrote:

> +static bool merge_across_nodes_available(void)
> +{
> +	const char *path = PATH_KSM "merge_across_nodes";
> +
> +	if (!access(path, R_OK | W_OK))
> +		return true;
> +	if (errno == ENOENT)
> +		return false;
> +
> +	ksft_exit_fail_msg("Unable to read and write %s: %s\n", path,
> +			   strerror(errno));
> +}

If prerequistites for the test aren't available I'd expect this to be a
skip rather than a fail.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmqIcgkACgkQJNaLcl1U
h9ALkQf/ZCJ29Aa9p/LhguuXln2b5yf1sALxuc/dqCZcWcS4tCu232TPnpB48Skg
YTl77e9f+duMFOuKabuwuopz7r7EI4tcIGFR1vkw0+Y3A3h6JpHwdCgo0EB3lww7
d/ag9bMjCpyzHy/pSzytYu7Zv21g5co/CMtWDZhkgQpBoAZ5EZJdLRGdGiaRqzXs
xlyymUIK2FFSRo+XJ/4AlRPwSmHAXGY+WCm0S+MvI7w9rXZYQAR3MHxOVwS1lTup
P6Dl1wZK7BOrCPaweXvWQ7n1Ts465xLcbkn/y8rmzFNsSCaNA8yRW6Ktx/iU8Qtk
gqSziD1ZuEwvUmR6D4aBIBRR/GJBqQ==
=PW0u
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.