Received: by 10.192.165.148 with SMTP id m20csp1783700imm; Thu, 26 Apr 2018 02:07:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx48/dU+XEJWicxe2u2i0xy45RGfNnY9LGr9uLWj6F3X+OGwBs5u4nuvL3xoy+anYQogQGkGQ X-Received: by 10.99.103.1 with SMTP id b1mr26688534pgc.346.1524733668710; Thu, 26 Apr 2018 02:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524733668; cv=none; d=google.com; s=arc-20160816; b=zNc2q7i+Y1XtEmeWBiTB6xXPo+7jiMWceJwdF6FlBMIy/8KUqbJKOlYNL4eDYkM0lb pTZ4FVL3E8pJY24AA9ZQF3eZyKIuln6WRHQcsriL/hrb2hkOlmSoUbafjR9aFm1aQK7W yb6x/VnO5Rh26raEEzfG8etRzQ+6qrPlKd8/btSrmCO5jxmVoLe4pgld4ao9Rho2AAg2 xUF3AqJlTtLuC+s0FCbjTKzesOVoFEIOgsFOE4KpHymGrOz9UmSA5KO6jTcSMeTzgCJ2 UD1cTSGFb9PG9SMgO6Pfi5MzZ+37TRqR5Q5UDzVRCKAcCcO4CZ+tzAviChIPTtbLS1Fg bTaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=NknA6IN8d13Y3o3YhXBWD6aerukd4skXIN7rE8IOQNQ=; b=PLwt0d4NKNC3Le0Mw3sVfzCmIW2wSZV2t663o/cVT4OMwh+FmoSWQKvtk08XlJYe1U t/U59b0Rp2afzu0Pk6/CRU269pv0FhFIoVKNRghx20cSIbBWNK4bYx7teMtqE6nHQ3FL 83sTHTs6Tz65scAKSya5VnTJYPjKSLs0fKTjozMdrS3EQqVLcLv6SqevcMxS/bA8PDNE xpodlfmMWoRq3OLVwF4cJb2NPYaWE2GBE3/e7A/ubIekcam2yWCBPbPv84HNaFiqktMm UbX/hH0Zo4oUAroTARHwEswjUaP7FErBHMDJvvrPY27c6Ruh4lXzpl++hC8auKdiaOQA EoIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=df+zBXZJ; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3-v6si17566350plb.17.2018.04.26.02.07.34; Thu, 26 Apr 2018 02:07:48 -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=@linaro.org header.s=google header.b=df+zBXZJ; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754662AbeDZJGP (ORCPT + 99 others); Thu, 26 Apr 2018 05:06:15 -0400 Received: from mail-it0-f46.google.com ([209.85.214.46]:39556 "EHLO mail-it0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754592AbeDZJGG (ORCPT ); Thu, 26 Apr 2018 05:06:06 -0400 Received: by mail-it0-f46.google.com with SMTP id c3-v6so8772382itj.4 for ; Thu, 26 Apr 2018 02:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NknA6IN8d13Y3o3YhXBWD6aerukd4skXIN7rE8IOQNQ=; b=df+zBXZJNqJxzUe2BDby8oihQ2t10xXS7zPtA0M4Qd9c7hjUfRGwZqk4+OzZDu+Fjn 4F//UZiAf9HmxwQglGuXhWaBR3G5XHCm4PbqOjaTxOwKTLfbS+NdQ4b5peqwtEWkhINa lzyp0dkJ8EjLx+O7f4Pt/uKem8+dw3ubgSRiI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NknA6IN8d13Y3o3YhXBWD6aerukd4skXIN7rE8IOQNQ=; b=nW0iSTTNlCvdEw3dIcnLFq+D/2g0gvt4r221+6IktqbC9nn4/wuewW7uhONOELpbNY ucA494ZM1G/VXBWXgrMqg6Z3ItUIs/LWv67eSDW5WTTuVTt2tBZvdzvtnEW507g2cXKD WbUgGV2KwE64g90kyyTvYoScMkZD3f7ijMtSXkf4xjzbIkdV4Yfe+CZ8KU3Or+zBw+m/ iBVqj/Bdk6sLFVzZqxlSHLq0p16BUZVQMvZvDj5NFHvzR8lonv/je3Kt9s0r7wI0Rec4 S1GtDuduk42csS+0MkmrumWlgIrXQPwojuLomV0Q+mShBnJNSIfrY9GFlmvDGy1s2DRk 25FQ== X-Gm-Message-State: ALQs6tCeOsLUQKpa1TR+9IXoE8DXE48ZgonfyVQRTAO3m2mZ0dhsipKC N4lvIq30V91Iq6e31mlZpzt28BOK77jAJMKQ/mXbQA== X-Received: by 2002:a24:ad1e:: with SMTP id c30-v6mr4528592itf.38.1524733565548; Thu, 26 Apr 2018 02:06:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:2793:0:0:0:0:0 with HTTP; Thu, 26 Apr 2018 02:06:05 -0700 (PDT) In-Reply-To: <20180405120012.7671-1-colin.king@canonical.com> References: <20180405120012.7671-1-colin.king@canonical.com> From: Linus Walleij Date: Thu, 26 Apr 2018 11:06:05 +0200 Message-ID: Subject: Re: [PATCH] gpio: 104-dio-48e: make array 'ports' static, shrinks object size To: Colin King Cc: William Breathitt Gray , "open list:GPIO SUBSYSTEM" , kernel-janitors@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 5, 2018 at 2:00 PM, Colin King wrote: > From: Colin Ian King > > Don't populate the const read-only array 'ports' on the stack but instead > make it static. Makes the object code smaller by over 100 buytes: > > Before: > text data bss dec hex filename > 10959 4952 832 16743 4167 drivers/gpio/gpio-104-dio-48e.o > > After: > text data bss dec hex filename > 10790 5008 832 16630 40f6 drivers/gpio/gpio-104-dio-48e.o > > (gcc version 7.2.0 x86_64) > > Signed-off-by: Colin Ian King Patch applied with William's ACK. Yours, Linus Walleij