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

Mark Brown broonie at kernel.org
Fri Aug 21 08:43:05 PDT 2026


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260821/eebf035c/attachment.sig>


More information about the linux-arm-kernel mailing list