Received: by 10.192.165.156 with SMTP id m28csp1506213imm; Wed, 18 Apr 2018 10:42:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/s5UnPrzszaFzR+cpEjf5AYYvSwC2yZTpxiZ4W8zy0pLzA8Jrz440qBFpqkOY2Qs1LVvp3 X-Received: by 2002:a17:902:780d:: with SMTP id p13-v6mr2927385pll.281.1524073341533; Wed, 18 Apr 2018 10:42:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524073341; cv=none; d=google.com; s=arc-20160816; b=0EEPrZSg9YghNiIK4/I2ZTs8lUT3iTmjtzcZ3xH1OhfMy6tsquKnNw3P36itjI0cIw kGY+OhLKxm3Grq0wHVWrNlh9+hSUTh+YcwehfZh+ebgQuushyCUJvgI5IbW+xcz/wrm7 S9nTZVKmQNbl3oRkpbSu/1P2TLTP2JHigJkZTuE60sN+rTltrLpu589RXdbdl3LoPruO +5rP2cJ4iTnNbTOzpqtz4A058gdaOjA4xgoDgJYvrlJzA2TvPXiyQpiMyDwknnTGodci hebL/sG/8HwX+kOjryBuKokJKKs07a08o+vXPtxaw76ldC403I1y6CH4F0zKxrv8E8Qf dvJA== 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:dkim-signature:arc-authentication-results; bh=2Vgw9F0pcqIR6wImg5OhxQG993XdGkkdcmT9Bl3w6Ik=; b=ffNECm4ly5pJMZM4rf/iTnjuF8e1a27UPQ5aZydnW6knoXch/SGk+gBLKaetyJ6IY0 +yCY9oriRfu1+rcCnhPhptUGBZjSAMpHvc/2RccxhiNVc3W4wGGeoSxv2ThEPDKDK7z5 DS9z+F3bZpeDfEjj8xn+9lx1AFi4OQV1Gj7624jlAGFwZ7NQ2JLJMV0EmQqbl7tqp0Rf hoRyPgRRFiGAhLi2eorEF4sC1cczmzE4roUO05GCD+LD6ZAhrWjZevnup7dVaFvZIlrx DwSaUNS+1XH+TOKE27tfMYqebIgm5JVyG1rbxY7Zlv6G/6VbpBhxUur54e/JYszwjQy1 8I9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RlGTM+WK; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o128si1589599pfg.5.2018.04.18.10.42.07; Wed, 18 Apr 2018 10:42:21 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RlGTM+WK; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752731AbeDRRky (ORCPT + 99 others); Wed, 18 Apr 2018 13:40:54 -0400 Received: from mail-yw0-f169.google.com ([209.85.161.169]:35180 "EHLO mail-yw0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752560AbeDRRkv (ORCPT ); Wed, 18 Apr 2018 13:40:51 -0400 Received: by mail-yw0-f169.google.com with SMTP id i144-v6so795786ywc.2; Wed, 18 Apr 2018 10:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2Vgw9F0pcqIR6wImg5OhxQG993XdGkkdcmT9Bl3w6Ik=; b=RlGTM+WKyO3pgE1BS5iyD0t99eSEHApz8nUMjfZgSvyxiVlsXSCXvGkR98e6FdMaeX MBemGPQ9bAiIHzca93XKYWw4KOlcvRWtF1SUqOEAcIWtK4CLFGJlyDavVdtajnspRJHS k+shrkGvSY3XKoDu6jyw72w94/y5QCzU7faf+zz9De3my8Juo9yuDrYEMGu9PmDWzYva 3JCSOtWy+2Y/zfVrEW25pNdEXsJFVZRbEULPlisNF+AHxGsGTFXoBQ6oB0JKyioie9dT 5HgmqoWxxFxUe7eWkLE4VD0klU78ZWQQJKv9fn63O1PCZyDW89VbaaB785bgE4K9kizK rXBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2Vgw9F0pcqIR6wImg5OhxQG993XdGkkdcmT9Bl3w6Ik=; b=ZAFMpJWJ8y4uFfg07TRhFDKeMDgkj66v/Mh4JWT5gFyjSIwZ3Cte45O5QFWbb0BL61 gzOskOHfN8kTV+uTHHdIqa4iStHX51NStQc8RNthPG9w7lJTWeqinlWsZzEby+Z0+3hk 2EV/UefV/l4tWRij7ISMin5bohypLPk61kqrXS31AFo6AT6NTEIrdzeeS8oIstaUtCHu VxtNcQpMJiSLVzLntyddHemK6pkm3xXBKPMwvoiRCTmZPRGfdGL2G1C6iZadgBEnTPvw olJdZc4HYHwJsuT1o35GJwxPZGJqlxRvd1xV9KdTf/KQIAPZLAGwK1doFHvBkFrksVAl AvRA== X-Gm-Message-State: ALQs6tA1eo3VFOPSjVAjF2JIaSnrr6TnQ17E9e8aqd60nB2JppM9q5Uh jr152VxIeYBZRTckLuB3oxQ= X-Received: by 2002:a81:6606:: with SMTP id a6-v6mr1699048ywc.260.1524073250566; Wed, 18 Apr 2018 10:40:50 -0700 (PDT) Received: from sophia ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id d184-v6sm640861ywb.83.2018.04.18.10.40.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Apr 2018 10:40:49 -0700 (PDT) Date: Wed, 18 Apr 2018 13:40:43 -0400 From: William Breathitt Gray To: Colin King Cc: Linus Walleij , linux-gpio@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] gpio: make several const arrays static, shrinks object size Message-ID: <20180418174043.GA15833@sophia> References: <20180418172634.14734-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180418172634.14734-1-colin.king@canonical.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 18, 2018 at 06:26:34PM +0100, Colin King wrote: >From: Colin Ian King > >Don't populate the const read-only arrays 'port' on the stack but >instead make them static. Makes the object code smaller: > >Before: > text data bss dec hex filename > 8542 4088 672 13302 33f6 drivers/gpio/gpio-gpio-mm.o > 10959 4952 832 16743 4167 drivers/gpio/gpio-104-dio-48e.o > 9022 5064 1408 15494 3c86 drivers/gpio/gpio-104-idi-48.o > >After: > text data bss dec hex filename > 8372 4144 672 13188 3384 drivers/gpio/gpio-gpio-mm.o > 10790 5008 832 16630 40f6 drivers/gpio/gpio-104-dio-48e.o > 8853 5152 1408 15413 3c35 linux/drivers/gpio/gpio-104-idi-48.o > >(gcc version 7.2.0 x86_64) > >Signed-off-by: Colin Ian King Acked-by: William Breathitt Gray