Re: [PATCH 5/8] nitro_enclaves: Add NE_SET_ALLOC_NUMA_NODE
From: Arnd Bergmann
Date: Thu Jul 30 2026 - 12:06:41 EST
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