Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752705AbbDDRri (ORCPT ); Sat, 4 Apr 2015 13:47:38 -0400 Received: from smtprelay0134.hostedemail.com ([216.40.44.134]:53956 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752315AbbDDRrf (ORCPT ); Sat, 4 Apr 2015 13:47:35 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 64,4,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2332:2393:2559:2562:2828:2895:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3870:3871:3872:4321:5007:6261:9010:10004:10400:10848:11026:11232:11658:11914:12043:12296:12517:12519:12555:12740:13069:13311:13357:14394:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: owner67_5f01f2f178518 X-Filterd-Recvd-Size: 2069 Message-ID: <1428169651.2775.51.camel@perches.com> Subject: [PATCH] checkpatch: Add uart_ops to normally const structs From: Joe Perches To: Andrew Morton Cc: Andy Whitcroft , Maxime Coquelin , Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial Date: Sat, 04 Apr 2015 10:47:31 -0700 In-Reply-To: <1428083006.13180.35.camel@perches.com> References: <1428080481-18591-1-git-send-email-mcoquelin.stm32@gmail.com> <1428080481-18591-11-git-send-email-mcoquelin.stm32@gmail.com> <1428083006.13180.35.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1183 Lines: 38 Add another struct to the list of normally const struct types Signed-off-by: Joe Perches --- On Fri, 2015-04-03 at 10:43 -0700, Joe Perches wrote: > On Fri, 2015-04-03 at 19:01 +0200, Maxime Coquelin wrote: > > This drivers adds support to the STM32 USART controller, which is a > > standard serial driver. > trivia: > > diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c > [] > > +static struct uart_ops stm32_uart_ops = { > could be const > and it could be updated in a separate patch later too. scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 9a8b2bd..db3dcf5 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -5338,6 +5338,7 @@ sub process { stacktrace_ops| sysfs_ops| tty_operations| + uart_ops| usb_mon_operations| wd_ops}x; if ($line !~ /\bconst\b/ && -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/