Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp429810ybj; Tue, 5 May 2020 01:03:36 -0700 (PDT) X-Google-Smtp-Source: APiQypIAlTusUYO5EhXIkSUA1Sm4jBEHcqB23KOLlbIPkUsy7bN4bMc+WjnPIpVKFrku/PYZKZ4Z X-Received: by 2002:a50:9d83:: with SMTP id w3mr1492203ede.23.1588665816467; Tue, 05 May 2020 01:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588665816; cv=none; d=google.com; s=arc-20160816; b=0gioe3LXwkilQSBZajPGS4YUMO8EEgdd+pOHhmsFuIf9yQe1QZ6MZ9rYN7Gd8vltNp OPRwpLlDLh47E0XT+op3jPJVzSJzbNPWT2KCu2+qGTDKQyPJlbr9lv6xJUy9dzuxCYgy 7Qg5M6C9Yt2CYSyGl9TFiIAuRoxroV4vO7mHaiukUCXJiAX5MiH3x3dcsJK1GHdQzE8d Hd0p0pMwqdHr9jcOcOazWX9abiCX1O1kxdSOOrRIZjbpSG224rfiSuzuQnHR/SyWpxEY uQNEg4SzoLGstM3aNyUQe0eXCmCTjZhEkSVf/ufCwZOCeCEodqcOrg7SORK6izEOdYN3 W7xA== 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=mvZ9JSMVZ2weAyQcnqRHSF9dVTIk0lMhRHoEwGe5TiE=; b=C24WtpScxenBaQTDXJ5H7miGsbIPbgUR/32vPwTnT3pnkn+sDEdg6mar/0MZGfPcHg vkxy2BHL+xwnZsxtmkJqFFVA22CyvD0PJIKcUdQQ3KeUQCeXpyZNMMy5PiC+XOiwl2Kc eiwa+DNxVqCocRDbPgHQgdHaAzN0XG03a+hC/tiZz2BTvOdaOraOqcwFKSQl0HJ2Okae jRiCHPB3EBrdch0n/YJ5a2KYz4/HVTVFK8BpqiqVtZ2MZEAqxOGOp5RiNEleV5+hJ6h+ NdMiSVy3hT2lUMgLoHdWPTE9vN5KpKehjuzPBi1WPqlYuNXmQ9j7udlbb/kjzxgh9VAw yJkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si837539edr.273.2020.05.05.01.03.13; Tue, 05 May 2020 01:03:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726575AbgEEIBm (ORCPT + 99 others); Tue, 5 May 2020 04:01:42 -0400 Received: from smtprelay0165.hostedemail.com ([216.40.44.165]:42462 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725833AbgEEIBm (ORCPT ); Tue, 5 May 2020 04:01:42 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 85AD5182D31F3; Tue, 5 May 2020 08:01:41 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2110:2393:2553:2559:2562:2828:2914:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3872:4321:5007:7903:8603:10004:10400:10848:11232:11658:11914:12296:12297:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21627:30012:30054:30060:30070: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: roll80_65f027eb9442c X-Filterd-Recvd-Size: 1926 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf13.hostedemail.com (Postfix) with ESMTPA; Tue, 5 May 2020 08:01:40 +0000 (UTC) Message-ID: Subject: Re: [trivial PATCH] efi/libstub: Reduce efi_printk object size From: Joe Perches To: Ard Biesheuvel Cc: Arvind Sankar , Linux Kernel Mailing List , linux-efi , X86 ML Date: Tue, 05 May 2020 01:01:39 -0700 In-Reply-To: References: <091e3fc3bdbc5f480af7d3b3ac096d174a4480d0.1588273612.git.joe@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.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 Tue, 2020-05-05 at 09:50 +0200, Ard Biesheuvel wrote: > On Mon, 4 May 2020 at 20:29, Joe Perches wrote: > > Use a few more common kernel styles. > > > > Trivially reduce efi_printk object size by using a dereference to > > a temporary instead of multiple dereferences of the same object. > > > > Use efi_printk(const char *str) and static or static const for its > > internal variables. > > > > Use the more common form of while instead of a for loop. > > > > Change efi_char16_printk argument to const. > > > > Signed-off-by: Joe Perches > > Thanks Joe. No worries, it's not worth applying if it's not good code. Just ignore it. cheers, Joe