Re: [PATCH 5/8] nitro_enclaves: Add NE_SET_ALLOC_NUMA_NODE

"Arnd Bergmann" <[email protected]>
Newsgroups org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Thu, Jul 30, 2026, at 14:53, Alexander Graf wrote:
> +		if (ne_enclave->state != NE_STATE_INIT) {
> +			dev_err_ratelimited(ne_misc_dev.this_device,
> +					    "Enclave is not in init state\n");
> +
> +			mutex_unlock(&ne_enclave->enclave_info_mutex);
> +
> +			return -NE_ERR_NOT_IN_INIT_STATE;
> +		}

This does not look like a normal error code, what is going on here?

> +struct ne_alloc_numa_node {
> +	__s32	numa_node;
> +	__u32	flags;
> +};

I don't see the point of 'flags' here if that has to be zero.
Can you just drop that?

      Arnd
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.