Re: [PATCH 2/2] kernel: mark all struct k_clock instances const
From: Joe Perches
Date: Fri May 26 2017 - 05:36:00 EST
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
---
$ 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