Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp655581pxb; Thu, 19 Aug 2021 08:11:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwI/nusvH+W8vYzk2irkNCrEbntXjMT5/XckFy1GkMi7IyqWTr1dCRZA1CqjGkQ2dayncxa X-Received: by 2002:a5d:8484:: with SMTP id t4mr11551892iom.126.1629385894654; Thu, 19 Aug 2021 08:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629385894; cv=none; d=google.com; s=arc-20160816; b=uFQrzYaXkW9JGPa4J319kyFU/EihCCuG9xFk7NWp0awc5cX5nyZySiYLcZPyLCtDYc b799uc8qhPlbEGJTBbzSsWLkp+7VvLsLmpK205V6UtsBwZiuy2asO8QQtkKDQHV8+4gs q3G8rFxGWosCbFiw7MQSv7V4ZRfrge40aexS7SBi3Xoebl64iTfVaUxmhEe/o3Kud57z 5tAWstjrH7h68AT6erFQhI9qwJtWr7zfpW+d9HHpO2o1ZxAA3PW/K7hUKtqwq6MVF7FG BfwID70omqeaEyHCCmXANBy2+41z8+KX3HsURy5BaK1QItXjlAEF7IOnwpP/hJ3AJcad SFjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=GZYgceKRSp8CQCGBi6ztjkch5SfourhqnAsucWWA/xE=; b=Pz5yXXI/A8wN7CZa4EbKPTb52iPwo6Hw0YFMCeY6g+Z76uAPEwICalsRaGOvFGaOLj E0Rd9yOqb7MLYNywaOCAofvaCoDzfng0yz9arnriahfV0qtnGqTf1Av4Ppjngbs2XJDN XQwVtTK0kV6AJDsg5Okacde0NGHmNYNqtpUTTcnbmBoSIHSuEX51Y15DJVB5JJcPZTdQ 0lAvDHtKNq5bElJ+HL7dyRnXjnJKBuW22y2wyjcYA5iM+pzkq9QMEoqfim6wqkNMyjIw /827+AGjExWwmi8Mu82SebDVa3p47sdnjfJ5lfnfrlD33ohonRRp0rC5H8p8efsPN9KO qw9Q== 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 x9si3149935jaf.48.2021.08.19.08.11.23; Thu, 19 Aug 2021 08:11:34 -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 S239474AbhHSPLG (ORCPT + 99 others); Thu, 19 Aug 2021 11:11:06 -0400 Received: from smtprelay0182.hostedemail.com ([216.40.44.182]:39118 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238460AbhHSPLG (ORCPT ); Thu, 19 Aug 2021 11:11:06 -0400 Received: from omf19.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id AE46D26DD3; Thu, 19 Aug 2021 15:10:26 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf19.hostedemail.com (Postfix) with ESMTPA id B4AEE20D772; Thu, 19 Aug 2021 15:10:24 +0000 (UTC) Message-ID: <930fbf0e3b17a78c64a32d26fcf9aed46c5d6d88.camel@perches.com> Subject: Re: [PATCH] drm/bridge/tc358767: make the array ext_div static const, makes object smaller From: Joe Perches To: Colin Ian King , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 19 Aug 2021 08:10:23 -0700 In-Reply-To: References: <20210819133839.10745-1-colin.king@canonical.com> <0a2ea4e54d7bfd61b45cc070eee6b62e8da82190.camel@perches.com> <913b96bc-f5c4-1a26-c5f7-70a9d0ab3f53@canonical.com> <3da667b1b415b19325c034dcb389a201fa46cfd3.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.0-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.99 X-Stat-Signature: dwmfzc5xuegxfms4xm4a7wiw1xyirjk8 X-Rspamd-Server: rspamout02 X-Rspamd-Queue-Id: B4AEE20D772 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/I4h/4/Jwrq9yDdzp3ajPSpHN+nWw4Yzk= X-HE-Tag: 1629385824-254300 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-08-19 at 15:51 +0100, Colin Ian King wrote: > it still makes sense for these kind of > janitorial changes as it makes sense to constify arrays when they are > read-only and making them static is sensible for const data. I'm not disagreeing. Marking unmodifiable arrays as const is generally useful for readers. Decent compilers though can _mostly_ determine whether or not an array is used as const and whether the array can be placed in a readonly section and is not required to be in a writable one. But the object sizes deltas you show with an allmodconfig are misleading. At a minimum I think you should show the output sizes as allmodconfig.