Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752083AbdGRVFM (ORCPT ); Tue, 18 Jul 2017 17:05:12 -0400 Received: from mail-sn1nam01on0068.outbound.protection.outlook.com ([104.47.32.68]:63136 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751465AbdGRVFJ (ORCPT ); Tue, 18 Jul 2017 17:05:09 -0400 Authentication-Results: embeddedor.com; dkim=none (message not signed) header.d=none;embeddedor.com; dmarc=none action=none header.from=cavium.com; Date: Tue, 18 Jul 2017 14:05:01 -0700 From: Felix Manlunas To: "Gustavo A. R. Silva" Cc: Derek Chickles , Satanand Burla , Felix Manlunas , Raghu Vatsavayi , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] liquidio: lio_vf_main: remove unnecessary static in setup_io_queues() Message-ID: <20170718210501.GA1176@felix-thinkpad.cavium.com> References: <20170718205015.GA1420@embeddedgus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170718205015.GA1420@embeddedgus> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: MWHPR07CA0031.namprd07.prod.outlook.com (10.169.230.17) To MWHPR07MB3181.namprd07.prod.outlook.com (10.172.96.139) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cb0fff7d-899a-4790-e725-08d4ce20aa77 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:MWHPR07MB3181; X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3181;3:vvnwS/G1L1yysr7fQd5IA0VvUFXYAlNpXr/XdbLfIwHwTPQzI6ezaxj9Zo4+K60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21bjkP6yh8OlUSAHGk+UQR4O2xf6UAJMqJ/C5UI+vI0w9PlPWmkt5y7xZ/yVOlUdEudbopmjes7f+8x4maKH00JUdl62L4q4woErDpry3kkgO2ixR8+70LV56vC82T8+0z1a8tv5a5XBNBGfZHe0MGw0Swp5EjxqggBtymck4T9e4cuCKvZt3Y+yZ7/f4UQ3+Pvo4rKruBd7w2dMFeg6hnSkjaAVWycRFe6X+Mj4Y0NeathzLGiIxNtnFr7/kR0bHBhk0= X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3181;20:nYUmwyvVrrktsmTbEBbIYBIQ++JuT7Io9UFiX0xM6mpvL+lsg40NLe3d4icCGFiVHftPHGSRQgmCyk8KUzlbom6mQmW0AeQnYzA/kdFPGJdoCjs2pdC1R3cTWuE1CmirlY7/TJ0pKKvfjk3uiI1Y/06U9xzx85cUb69VC72JeV2WSJfxl26vokAglyJavaQwH5BG/0xBw39g8cR5pPHytTCvDLdfITbXnYAXr6L3tC5F2d6yhTuc7l+tnsnG/iT3wp5laMvI7LXZlz5OLoh0UJLlqsMRjwCpNtam0LnMCeYvzUXy/X1bGY8QRlkoVSSRGsfNftRF7Ok1cgUUoCZYjcmV7HSRZSLA/1zCtSKIU0MCvzJL+xtvPF+AVClCGvbn0zAsnhq4k/tSMaNelAoyQJ6TuyTF0HRup/fneU2Td28rNpKAQJ2sxdrKBpwxIzqlEJwso2IxJYwZiqAwB979RNVI7Xpq8hkuNMyUlgNanpmwSvM8eK5hzi74VFxJNJAp X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(2017060910075)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(20161123562025)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR07MB3181;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR07MB3181; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR07MB3181;4:RXrY8AMRbNpW3XnRkDydkoQEUeFYVlLxL10n9RxSl4?= =?us-ascii?Q?oqTNzwzslQBCM7BvouqdwuUkDgbtwEyK3qSDb0GjfbZonXhJf4dzfsRiG3tc?= =?us-ascii?Q?55Afx8bL676Qn2pRk0JOHt+Yuipoaw2PhfUNofJXZUpQ37KJghf6cDrv6mFW?= =?us-ascii?Q?WW2B2Xx/0YvP7q/t9n+88spJRQ15pIoXx9omDhIgKKW3EM77ggcHtL0kp6bq?= =?us-ascii?Q?xUYreiu5BZGPPUdo+0rBjImGpdgjjEbC7kQ2cAsFmJo6/zKTiMKTt4Rde3s7?= =?us-ascii?Q?DI9YMR5H6QWrmVbdyK+DZPiPLFJV5tTVQefzfhPkBRF7lfwWr8mmtAQTdSdD?= =?us-ascii?Q?EnTUVaVDjx4jgz76AXxBj/Cw0sX7HgbV4tO/s1pHKTjigLHaOOapfY9vpgQa?= =?us-ascii?Q?+3DLAr1xnOcHgrIFhkNOppM3FMe9DXxz9gx5XeP5+2U75e9d0XXxALDgVuy+?= =?us-ascii?Q?+3cDpraCDYdI+ZEdfc51muokkih0OAJoTFsxGVE9VIlEFMTinQYpGuqHWws1?= =?us-ascii?Q?3WPvATEYFoXKlBgj3uLV6NDyIxCbBVY8kwwp5La7Wemr2Ajnw5pe6ifUf+TU?= =?us-ascii?Q?0B3iAoLhlkaf+HS20GplVpNbwybDUQadMnwTsbYuG0PqnKsNiKmHf2pFwVje?= =?us-ascii?Q?qQUNedFTWhRRevctOTg987+hyEOZ7KM4JzRi28tdDYIuoTFt7//SqnnO0kce?= =?us-ascii?Q?v874hGgEHi8pNh7IJv+aNbe+m+tfANVDPigrXkKjBublKDqHc78WGcokcx2/?= =?us-ascii?Q?XIFJiBl6dxngRvPQnQEnpa4CYIOZdCNFxQLsY+Q/4x/9/u1wOxboz1WzfzuL?= =?us-ascii?Q?CriLHz8FPpo7XRfz6mxoeVNUXIqshQn48KubFL+mMrRg+z6TTKFJdSyZFg9S?= =?us-ascii?Q?hKvBj14YfEx+B83378uGAdEhLm+dIdgmL+aPlOxiI8GUmFtevjYUJqonbjX2?= =?us-ascii?Q?fMGqFf7Qp5muJHoqAeFnHkFGMNv/ZO4TLwwrbpbrtUKAm2no2zsFuXbW3ckA?= =?us-ascii?Q?u0Su7IdLmItGMMocHbZXlGmmSfZdaT9Jzc9CnJ4nze+EUXf2n80lBE6pJIvP?= =?us-ascii?Q?M989Ha9IhjMTzVLmBzj6agknZYWcB/huDRhyjevv5XLB2kQBAUqAc7zHt5K5?= =?us-ascii?Q?GoFzXBfzbxYr2hGklyTpagrYYYpAWP5tQiuDfr1KXlM9d7me6K1Q8PHdQpjm?= =?us-ascii?Q?Ii9V4AY5oCfsfczLyjasAWQwh4bOjLi6tqyzWUz5ro98D48sUHcrWBPw=3D?= =?us-ascii?Q?=3D?= X-Forefront-PRVS: 037291602B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(7370300001)(4630300001)(979002)(6009001)(6069001)(39450400003)(39840400002)(39400400002)(39410400002)(24454002)(6916009)(5660300001)(4001350100001)(189998001)(6666003)(25786009)(305945005)(7350300001)(229853002)(8676002)(2906002)(86362001)(7736002)(83506001)(6486002)(81166006)(50986999)(54356999)(66066001)(76176999)(33656002)(478600001)(50466002)(2950100002)(72206003)(4326008)(76506005)(47776003)(54906002)(42186005)(6496005)(110136004)(6246003)(6116002)(53936002)(38730400002)(3846002)(1076002)(23726003)(18370500001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR07MB3181;H:localhost;FPR:;SPF:None;MLV:ovrn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x0U?= =?us-ascii?Q?37K/TUZjO0wSBP8pMUVbCYTaVVOdBZsj+I2/cB477JjWILriAIxxKYEBXEY5?= =?us-ascii?Q?dIUAYbNu3vQzLJK4Mqpxsn3mRUqe6nUVAT4Ic4Ia4KvwhRmeMYCbpMtdJ2M3?= =?us-ascii?Q?RcKnwrUhOxHxApmtMgl+H5iOxTGdD8MRWgvBjPDuyLomh4DgD3eZZQOETcDG?= =?us-ascii?Q?W7qe5vd2KD9vKdLn+WuAURaVmol0FfJufAZrsWf1qMAHlBlN1T7nHeqtSZg8?= =?us-ascii?Q?SZbCl+g/W1sqagMVv/Bi+Mi16dodsD98Rkqwgg49VTpH2QI8v28j1g6JQ0BM?= =?us-ascii?Q?ai+meXdZ8g6SlakDVTk152mUH8qywC9PqpQQk235ul737KhPNbMm0sFyvdoN?= =?us-ascii?Q?2wy8nKK+LEB++xOcKp7mIWEr/q23dvZrFlgZI9+5TynNPnhl1CTNE/leZw0w?= =?us-ascii?Q?TwBAVmEBS4Vj9Pf1zTMEKh3p2TRAVyKvsKT/nYoe65zjtK99zxz3tFIlHggz?= =?us-ascii?Q?sDzZKIy/xL6axBFEdHxphg=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR07MB3181;6:IkKKzEfxagaMnjEsr6ULZVpSi2oy4vGjuluDHpf50G?= =?us-ascii?Q?FK7dxQmUBFke1pJcS2XwhY38lhdWMYyHL2p1P+sjx6epVAtSAV56OFfnuzqG?= =?us-ascii?Q?dFk4BH6IF/axVWrZf/5ZBJIUD27k31Ytfs1zZSS1BGj+1IZ8OF3FzyFJtOJB?= =?us-ascii?Q?AN6YFgCdI1ew91swIK6OgDVoj2P7zHsf1ZtvuzNslK5c05488I9BizVJKjUN?= =?us-ascii?Q?MuWmc52+G+reAsV7BIY/DsJg7rYnMy7td1+R6jkAHW5cqTSkp5dzeTdf8sQ1?= =?us-ascii?Q?ekZbrISEtBDwlez0UQeVcSssWsKn39X1xNO3PRQAo8yoOOIDS65Xyt/YiINM?= =?us-ascii?Q?jBDRF/EXL7xcCniEouJCQ6Vpfa98oIaPZ7pWghDcdFD6gJq735GQgxnGpObt?= =?us-ascii?Q?1FZCK9NR935npyd7BbZSBaXB4Esgj4EHRh08vqTfeA3zPzRfM92pfjgray+0?= =?us-ascii?Q?hzjviiAfc71XHD4RN1hAK5puyMI5PHZU5BtZ6IkNJz2kGpwY4J2BLg0HKtxq?= =?us-ascii?Q?2KSjbPa+5CGlaha+w5rzPTVdtXnYiNtkYxmFwk6+s0HTWN0MZNlmgGlT8vmg?= =?us-ascii?Q?3I0kw9faet45BDQ2nH/btAl7GS8dAtkX0fdQqUPHlbXHktCx5vg5m4j9pCb9?= =?us-ascii?Q?uLK6dp/qc+LlsWWmLBkfwz5lw+6JP26NYxmJShQZy6iQa2dzf2Jq04HqvU7h?= =?us-ascii?Q?ttma4roOhjCfJmkzICnqPE54OgviKXduIdROiFsDqLjTmhsJDjyvo28Po1Rv?= =?us-ascii?Q?7sQ6BlxMIMQRrR/nqlpK57u8hmGWF3nhNxxdHsvhuif5EWqDxInoITVaT+Ep?= =?us-ascii?Q?+3epLT5at9UbxmX1KX9utSGUSH1tuBfNI9w7cZ+uHleJ3k50PMnSwVv53DT+?= =?us-ascii?Q?2/oy2o+vzUMGd2M58Z9V4CnSH1qMPF2IoOStiRi3OMICwOff1xEl+tMjt2TI?= =?us-ascii?Q?nPpLKMpfthTLTrvp8fxBIvoar0nbxL5lWhfMrDmd7GYi/Q08/pGJ8vW71cus?= =?us-ascii?Q?c=3D?= X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3181;5:iwpqxgAboh8J/xozxnppOrIwnHVcE6AWlfo+LkQXc0fJDw+GMiOeLcqfPeseT6LGrAqoZUSWtvqqiRjpD5NnPcnHVXTOouaXekCayo+bbT/CcFBUURrvIskAWbE+hD3SnJ/WRKeKoIo489k1jCEYhoX1uvxbWFaQs2uwOJWc8SW8/MhiWiScNtLpTpJ7rEkj2n13Ks/f6uE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qXctKYtUAmG3n5RFmD3vZZaO2ciLjhQx7m6uQxlzX0HNYN51fjNIiV4k5cFUc3ub3fnxMVJAJuYRywMB5s8wut14rWRyRUtiXJKWdfXZnabMjb3Ds9RZM3mS6wNbJX6CIBucVOaKEcfHoeHgSXW1DCRF2HkPmt6HkA35dOSLm01kIXPIlQd/oOAU7G4/tUFJvVYken0onkpEaWaZhhdg/9K6zO1Q9T1+xOYavFN4EmPXtnE= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2017 21:05:05.8936 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3181 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2124 Lines: 73 On Tue, Jul 18, 2017 at 03:50:15PM -0500, Gustavo A. R. Silva wrote: > Remove unnecessary static on local variables cpu_id_modulus and cpu_id. > Such variables are initialized before being used, on every execution > path throughout the function. The static has no benefit and, removing > it reduces the object file size. > > This issue was detected using Coccinelle and the following semantic patch: > > @bad exists@ > position p; > identifier x; > type T; > @@ > > static T x@p; > ... > x = <+...x...+> > > @@ > identifier x; > expression e; > type T; > position p != bad.p; > @@ > > -static > T x@p; > ... when != x > when strict > ?x = e; > > In the following log you can see a significant difference in the object > file size. Also, there is a significant difference in the bss segment. > This log is the output of the size command, before and after the code > change: > > before: > text data bss dec hex filename > 55656 10680 576 66912 10560 drivers/net/ethernet/cavium/liquidio/lio_vf_main.o > > after: > text data bss dec hex filename > 55796 10536 448 66780 104dc drivers/net/ethernet/cavium/liquidio/lio_vf_main.o > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/cavium/liquidio/lio_vf_main.c b/drivers/net/ethernet/cavium/liquidio/lio_vf_main.c > index 9b24710..935ff29 100644 > --- a/drivers/net/ethernet/cavium/liquidio/lio_vf_main.c > +++ b/drivers/net/ethernet/cavium/liquidio/lio_vf_main.c > @@ -1663,10 +1663,10 @@ static int setup_io_queues(struct octeon_device *octeon_dev, int ifidx) > { > struct octeon_droq_ops droq_ops; > struct net_device *netdev; > - static int cpu_id_modulus; > + int cpu_id_modulus; > struct octeon_droq *droq; > struct napi_struct *napi; > - static int cpu_id; > + int cpu_id; > int num_tx_descs; > struct lio *lio; > int retval = 0; > -- > 2.5.0 > Thanks. Acked-by: Felix Manlunas