From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3794C47254 for ; Tue, 5 May 2020 08:01:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 976F3206B9 for ; Tue, 5 May 2020 08:01:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728006AbgEEIBn (ORCPT ); Tue, 5 May 2020 04:01:43 -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-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