From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S971056AbdEZJfz (ORCPT ); Fri, 26 May 2017 05:35:55 -0400 Received: from smtprelay0229.hostedemail.com ([216.40.44.229]:44931 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1763656AbdEZJfN (ORCPT ); Fri, 26 May 2017 05:35:13 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:2890:3138:3139:3140:3141:3142:3351:3622:3865:3867:3868:3870:4042:4250:4321:5007:9389:10004:10400:10848:11026:11232:11658:11914:12043:12555:12740:12895:13069:13311:13357:13439:13894:14659:14721:21080:21434:21450:21627:30001:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: linen94_2d327ff7ba319 X-Filterd-Recvd-Size: 1695 Message-ID: <1495791309.29207.24.camel@perches.com> Subject: Re: [PATCH 2/2] kernel: mark all struct k_clock instances const From: Joe Perches To: Christoph Hellwig , Thomas Gleixner Cc: Dimitri Sivanich , Mike Travis , linux-kernel@vger.kernel.org Date: Fri, 26 May 2017 02:35:09 -0700 In-Reply-To: <20170526090311.3377-3-hch@lst.de> References: <20170526090311.3377-1-hch@lst.de> <20170526090311.3377-3-hch@lst.de> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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