Re: [PATCH 2/2] kernel: mark all struct k_clock instances const

From: Thomas Gleixner
Date: Fri May 26 2017 - 06:33:17 EST


On Fri, 26 May 2017, Joe Perches wrote:

> On Fri, 2017-05-26 at 12:03 +0300, Christoph Hellwig wrote:
> > And initialize the array statically at compile time. Originally
> > based on changes in the Grsecurity patch set, but redone for mainline
> > to be slightly cleaner, and take the SGI mmtimer removal into account,
> > which allows for a completely static initialization.
>
> Maybe add k_clock to scripts/const_structs.checkpatch

Care to send a proper patch with changelog?

> ---
> $ git diff --stat -p scripts/const_structs.checkpatch
>  scripts/const_structs.checkpatch | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/scripts/const_structs.checkpatch b/scripts/const_structs.checkpatch
> index ac5f1267151d..b2a2316964a8 100644
> --- a/scripts/const_structs.checkpatch
> +++ b/scripts/const_structs.checkpatch
> @@ -25,6 +25,7 @@ irq_domain_ops
>  item_operations
>  iwl_cfg
>  iwl_ops
> +k_clock
>  kgdb_arch
>  kgdb_io
>  kset_uevent_ops
>