[PATCH 1/2] raw/cnxk_gpio: support multi-process mode

Stephen Hemminger stephen at networkplumber.org
Wed Oct 4 00:28:42 CEST 2023


On Tue, 3 Oct 2023 22:46:02 +0200
Tomasz Duszynski <tduszynski at marvell.com> wrote:

> +
> +struct cnxk_gpio_params {
> +	char allowlist[CNXK_GPIO_BUFSZ];
> +	int num;
> +};

Should be using unsigned for number of params since can't be negative.
You could also use a flex array to avoid any buf size issues.


More information about the dev mailing list