[PATCH 1/9] libnvme: annotate nvme_path::ana_state with !accessors:none

Daniel Wagner dwagner at suse.de
Tue Mar 24 01:55:07 PDT 2026


On Sat, Mar 21, 2026 at 08:58:00PM +0530, Nilay Shroff wrote:
> +__public char *nvme_path_get_ana_state(nvme_path_t p)
> +{
> +	_cleanup_free_ char *ana_state = NULL;
> +
> +	ana_state = nvme_get_path_attr(p, "ana_state");
> +	if (ana_state) {
> +		if (!p->ana_state || strcmp(ana_state, p->ana_state)) {
> +			free(p->ana_state);
> +			p->ana_state = strdup(ana_state);
> +
> +	}

a couple of tabs indention here

> +	}
> +
> +	return p->ana_state;
> +}



More information about the Linux-nvme mailing list