Subject: Re: [RFC PATCH v2 2/3] dpll: add netlink events

From: Stephen Hemminger <[email-masked]>
Date: Wed, 3 Aug 2022 08:21:51 -0700

On Sun, 26 Jun 2022 22:24:43 +0300
Vadim Fedorenko <[email-masked]> wrote:

> +
> +static cb_t event_cb[] = {
> +	[DPLL_EVENT_DEVICE_CREATE]	= dpll_event_device_create,
> +	[DPLL_EVENT_DEVICE_DELETE]	= dpll_event_device_delete,
> +	[DPLL_EVENT_STATUS_LOCKED]	= dpll_event_status,
> +	[DPLL_EVENT_STATUS_UNLOCKED]	= dpll_event_status,
> +	[DPLL_EVENT_SOURCE_CHANGE]	= dpll_event_source_change,
> +	[DPLL_EVENT_OUTPUT_CHANGE]	= dpll_event_output_change,
> +};

Function tables in kernel should always be const for added security