Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1644071ybe; Fri, 6 Sep 2019 23:36:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXLDeGdrDxhakeUYa/5VUKipt48UbrWwlbZqSI9m2mD/eQ+UdSAWnvusO66OFjfYHNaYe+ X-Received: by 2002:a17:90a:9749:: with SMTP id i9mr5867406pjw.42.1567838165091; Fri, 06 Sep 2019 23:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567838165; cv=none; d=google.com; s=arc-20160816; b=n3Zn6lq2VrkPDVcL06FctCHwlHOKk3QDO0ct7aKNXkJULH2u5z/JlCoXuW6HFptB13 IjYa2oPNg+19EpUuBkD2bFAXpbb9Vb/PELhlfzM3B+wdh7eilvF0q/BJY1CG0mQD78X+ gnWe2v5ep0YHuf7Vz3yiqDzguOXALzX9A0J9azXHPJQ27yP5jcrRr6yztiu/vqdEE0HX ltfcDtxbrzkzEYLYiKn8kbZEG/j/jUbnMhTXNhjTqBCh4aHF9KJEyHDR5gNEz1D4xWP8 f8rGueZ57jehtgldyl7M3v5jbS8sgH1kjE4eXmySoX8ypLdNQ/lOZpMnkOSSEXVEvi3W EJug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=b7ByVtG/s70ZQK1T8lBizrzc5LWB1CnoCHgXU2nEb0M=; b=qjL7Vn+wHy/ZLHo0YZSSpasxRKT4FFrCWdklho1DyiNQuF5loa8VlUmDinJ3fqG2JF 9svZsCZRIwlp6Kt1AyPec+N9dD4N+q+pWrk+3nuI4L0463lH6WuDnyI+Luf4OlLaxH/8 gZYBIJruG2YGWRNWGaZHIY5VPvdmEI7agozi9PF1KLY/sg0J7katXpJYlGhK5Q3CKFeQ xLqX+tq7tk2V6YtYzaVv6m7HufRGNcHqXOT9DQeW3apf1/Nz+tqCxuNuRpj6VvpvKFXq Ll1hLmGK//ZuJB/aApoZfEROzJosr8NpKxayBkugGskfxLk1ivgDYN115m+BqO59qxVw RrtA== 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 4si6980400plf.54.2019.09.06.23.35.49; Fri, 06 Sep 2019 23:36:05 -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 S2394828AbfIFPb4 (ORCPT + 99 others); Fri, 6 Sep 2019 11:31:56 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:56480 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2392183AbfIFPb4 (ORCPT ); Fri, 6 Sep 2019 11:31:56 -0400 Received: from callcc.thunk.org (guestnat-104-133-0-96.corp.google.com [104.133.0.96] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x86FVlN0017116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 6 Sep 2019 11:31:48 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 7F13142049E; Fri, 6 Sep 2019 11:31:47 -0400 (EDT) Date: Fri, 6 Sep 2019 11:31:47 -0400 From: "Theodore Y. Ts'o" To: Colin King Cc: Gabriel Krisman Bertazi , linux-fsdevel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] unicode: make array 'token' static const, makes object smaller Message-ID: <20190906153147.GA2819@mit.edu> References: <20190906135807.23152-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190906135807.23152-1-colin.king@canonical.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 06, 2019 at 02:58:07PM +0100, Colin King wrote: > From: Colin Ian King > > Don't populate the array 'token' on the stack but instead make it > static const. Makes the object code smaller by 234 bytes. > > Before: > text data bss dec hex filename > 5371 272 0 5643 160b fs/unicode/utf8-core.o > > After: > text data bss dec hex filename > 5041 368 0 5409 1521 fs/unicode/utf8-core.o > > (gcc version 9.2.1, amd64) > > Signed-off-by: Colin Ian King Nice, thanks! Reviewed-by: Theodore Ts'o - Ted