Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5965708ybe; Tue, 10 Sep 2019 11:26:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRhdWXhV3hpxZQ5tPqJ4oUij6AptZZKewMSYlTOrnkQW5T0K8a/mcXKF06nxyidmRxOVd3 X-Received: by 2002:a17:906:fae1:: with SMTP id lu33mr26168587ejb.131.1568140013612; Tue, 10 Sep 2019 11:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568140013; cv=none; d=google.com; s=arc-20160816; b=F9lhNeD8/jeuHF67t0NH3v+V4vH9yNp0uF5MDLmBrP0yCjEu+Ma8X8vJVzZY5ke+m5 A3MkwUtmUB9X3GFSJ1tOdX/ealkkEuytj89hsQRYQOzxq0PV96/rNpSEWyUm1awwSLEe fwhOlypVHClq0fhZa2AnQHsuHWQgc2ro4i/6THsGggE47FrmweLB5luWqV2EIA0I6pzK nh/4S1+FOE/fFvnF95VAsXHt+2mkFfduJ7bAEYFS2/w2BW25FEUJg4JzCtSjCNhKomBV nupWHGJ+2jEUOs06XKGGBtG21vJ5JBxQDfpGqXHJXRUjcpB0lP71kAbZG9LqtYlATjCb gXgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:subject:cc:to:from; bh=uif+6mULGA3miN9hfk0IWT1NnX+iPxqKmlq3zNvvPkk=; b=wRkUDQ29/p6WkEa+iPF7VZrcTsP+XmY4RJP/1E1aGdcJruRgmwlrJBRqs7/WjAaZGr cv7nhHSNy4BPTzI1fjgM40nzXyqzOmpkLuVpFV9uHCL6YnH7p10OTVIa/BMmLoheReg1 Vy9O796MiY43Z3wChI+e0hocWzeSLgVfB8XwlXC0oO/0wzetg2lsi9ofp032jwilgLRJ siZ0f+Ia77LinxkzOA5tnXXBSTBaZZrPJODC00moukBHCm/hDeot0GQ1NeGgZ6xMiEK4 X9bb1jCEAEAYGLBwcUv3jvrYI2nvKwwpcE3p4/brrm2Z9/bWRMgVPSqUXxuHD9oMmxIm +zcg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 22si9794160ejx.65.2019.09.10.11.26.29; Tue, 10 Sep 2019 11:26:53 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731476AbfIIOV7 (ORCPT + 99 others); Mon, 9 Sep 2019 10:21:59 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:58516 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726188AbfIIOV7 (ORCPT ); Mon, 9 Sep 2019 10:21:59 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 4606B28BB4D From: Gabriel Krisman Bertazi To: Colin King Cc: 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 Organization: Collabora References: <20190906135807.23152-1-colin.king@canonical.com> Date: Mon, 09 Sep 2019 10:21:53 -0400 In-Reply-To: <20190906135807.23152-1-colin.king@canonical.com> (Colin King's message of "Fri, 6 Sep 2019 14:58:07 +0100") Message-ID: <855zm1h7ni.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Colin King writes: > 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 Thanks, I will get this queued up. -- Gabriel Krisman Bertazi