Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2486293ybg; Thu, 24 Oct 2019 10:23:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJXnLyqscgDvVS/yfEKF6J1DUhfgMAHlL2HKnfP8J8Rumid5boM4sIMBsjcHaWhRKilq1E X-Received: by 2002:a50:ab50:: with SMTP id t16mr31569327edc.171.1571937823499; Thu, 24 Oct 2019 10:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571937823; cv=none; d=google.com; s=arc-20160816; b=ZTshRfwBOnfCV+BvVSKb955rl/CZkAwGn9F31kl7wrT6KBUkGM6qejhPDH7K79dbjT sgc2P3hSYizqp6FA7u7QFCefXk87K4MJjs83D1Q7C80w3DBS0DMnSF7DidnOG2Lk9zM5 pF636p8L5PMJetqHQ+XpRiMoIM0Rp3WAwmoN2CaHedCZ6IIDNbYk0F25Tv0dXvM+mFNU Xm6Y422WhwwEzcOvrtE45qlflFP3Ah/x5kMrTBKWLm+PNl5Bz35z4l3AiEsViDEBET+x Lp5O+UL2e54AoKtt8G/PH+Qwhk5hs7TMt4IIQmrRsWJ39aOFbv8pohEQtmaw7dqQS+qH PK6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=QCmmk78XGAqXR5YcUW1UnrWrxTerrLzFC6CuvH5Om+c=; b=XOaoKVz7Rwe0dp+zLardt2mQph+B1UZtfY+J7bp9uKHUfxE1Un09yBR7AT8kIIRavW jFk+plLc2fBFeT3b1K+8712DWWaJlrPqGitn/oQTVitwwPK6ulc7u9uuyO2ooiiJg5pR Ux0Kqoc4hpYKvyCPiwObxtr4fcu8Ya/oqT7x4Wwlz/F1rhEQXrbZa0sWyjgWXkZ2wHAr iSsrc0KiT0e4z+fjAf2IwPs5nZwgWwfVnCShDpzxTQuzmlDRt591AyiJY5Uw20ip6Ycl 3VKGxv2se64CBxNQHDaq7PWx6SHTywx/CVVcRCnud/u3MIS2UZxgiu3mOhpjWsDhcoah QbUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si1253366ejb.54.2019.10.24.10.22.48; Thu, 24 Oct 2019 10:23:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392208AbfJWXqu (ORCPT + 99 others); Wed, 23 Oct 2019 19:46:50 -0400 Received: from smtprelay0132.hostedemail.com ([216.40.44.132]:53368 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389801AbfJWXqt (ORCPT ); Wed, 23 Oct 2019 19:46:49 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 8C573181D3417; Wed, 23 Oct 2019 23:46:48 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::,RULES_HIT:41:355:379:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1537:1566:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2693:2828:3138:3139:3140:3141:3142:3622:3866:3868:3870:4321:5007:6119:8603:10004:10400:11026:11232:11473:11658:11914:12297:12740:12760:12895:13069:13255:13311:13357:13439:14659:14721:21080:21433:21451:21627:30054:30070:30091,0,RBL:47.151.135.224:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: plot32_3b2e9464b9b05 X-Filterd-Recvd-Size: 1614 Received: from XPS-9350.home (unknown [47.151.135.224]) (Authenticated sender: joe@perches.com) by omf20.hostedemail.com (Postfix) with ESMTPA; Wed, 23 Oct 2019 23:46:46 +0000 (UTC) Message-ID: Subject: Re: [PATCH v4] string-choice: add yesno(), onoff(), enableddisabled(), plural() helpers From: Joe Perches To: Andrew Morton , Jani Nikula Cc: linux-kernel@vger.kernel.org, Joonas Lahtinen , Rodrigo Vivi , intel-gfx@lists.freedesktop.org, Vishal Kulkarni , netdev@vger.kernel.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, Julia Lawall , Rasmus Villemoes Date: Wed, 23 Oct 2019 16:46:45 -0700 In-Reply-To: <20191023155619.43e0013f0c8c673a5c508c1e@linux-foundation.org> References: <20191023131308.9420-1-jani.nikula@intel.com> <20191023155619.43e0013f0c8c673a5c508c1e@linux-foundation.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.32.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-10-23 at 15:56 -0700, Andrew Morton wrote: > And doing this will cause additional savings: calling a single-arg > out-of-line function generates less .text than calling yesno(). I get no change in size at all with any of extern static __always_inline with either of bool or int argument. gcc 8.3, defconfig with CONFIG_CHELSIO_T4