Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752312AbdGFK5Z (ORCPT ); Thu, 6 Jul 2017 06:57:25 -0400 Received: from smtprelay0061.hostedemail.com ([216.40.44.61]:35557 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751833AbdGFK5X (ORCPT ); Thu, 6 Jul 2017 06:57:23 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:4321:4384:5007:6119:7903:10004:10400:10848:11026:11232:11658:11914:12043:12296:12438:12679:12740:12760:12895:13069:13311:13357:13439:13548:14096:14097:14181:14659:14721:21080:21365:21611:21627:30009:30012:30036:30054:30090: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: seed16_5d4973f62e147 X-Filterd-Recvd-Size: 2340 Message-ID: <1499338639.19466.25.camel@perches.com> Subject: Re: [PATCH 12/18] drivers: s390: Move static and inline before return type From: Joe Perches To: Heiko Carstens , Klaus-Dieter Wacker Cc: Andrew Morton , Julian Wiedmann , Ursula Braun , Martin Schwidefsky , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 06 Jul 2017 03:57:19 -0700 In-Reply-To: <20170706102940.GG3217@osiris> References: <3f980cd89084ae09716353aba3171e4b3815e690.1499284835.git.joe@perches.com> <20170706102940.GG3217@osiris> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 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: 1225 Lines: 34 On Thu, 2017-07-06 at 12:29 +0200, Heiko Carstens wrote: > On Wed, Jul 05, 2017 at 01:02:21PM -0700, Joe Perches wrote: > > Make the code like the rest of the kernel. [] > > diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.cqq [] > > @@ -2408,7 +2408,7 @@ static int qeth_l3_do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) > > return rc; > > } > > > > -int inline qeth_l3_get_cast_type(struct qeth_card *card, struct sk_buff *skb) > > +inline int qeth_l3_get_cast_type(struct qeth_card *card, struct sk_buff *skb) > > { > > Actually the function could be made static, and "inline" should be removed, > considering the large function body. I agree to a certain extent. It's only used once and it looks like Klaus-Dieter Wacker just missed adding static to this function. $ git log --stat -p -1 ce73e10ee0cb6 commit ce73e10ee0cb6cde1c5075a2803da0f0eb5b2324 Author: Klaus-Dieter Wacker But it also looks like inline is too often used in several drivers/s390/net/*.c files, where most of those static inline functions are only used once. $ git grep -w inline drivers/s390/net/*.c | wc -l 42 Maybe inline removals should be a separate pass for all those.