Received: by 10.192.165.148 with SMTP id m20csp2082374imm; Thu, 26 Apr 2018 06:04:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx49i204Q/oS4+U8ZluLkTs6e8wOP+n0NSU0qO4CwZ293mdl1pFWWykZccwWCu/ByV2g79AFu X-Received: by 2002:a17:902:20eb:: with SMTP id v40-v6mr33740634plg.277.1524747891719; Thu, 26 Apr 2018 06:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524747891; cv=none; d=google.com; s=arc-20160816; b=spstfmFzn6tWYQWkY6/6/c6AGJrjEiklsvQfCRdn1J52rPSltL5XQ8PEcGrbgF7hf7 iOlH6htsAq58vvstm6BLrgaBPwMCQ8Hj9MtdqC5Ot2sjqS2m/dmG5KokyOmyUH3oYnWN Gt31rBa5FtepVXxnJiYx8CKR/I+dE1LtSj1OOSOolJrwQlFjk7AVbjVXSg0XkyM9PAv8 mxUl/OOpqjrM0nFVpICGx7b6zVLKNioHKxXL1nQnwcN9P2d1jzlpE80yv2RmVfNl76/q sJtDmz1hhhMJCB59Qyk0FQRwKP5euwHgqwYIoalifBLPFPc4v801DdRA3sKf94HWtYfY rTsA== 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=VKaRvE5QDC3Vk3frBBny6TKs9jmk1FPmPzss4u2b24U=; b=NVYzdR+qk+OQme7azYmjxtBcwY4mKx5KKmzmiFa3R4H522rhjArljwNBJbeumwKpYH l5MPKhHMhLLSj35G5L2WmyAZJJWSnogr0EitRrT9XVuNloSIwkf1qaWR3dfXdav1/90V MDCOF6RdPlIHAjMSeWuYvcJ9Z0aV50LvUyJcTE1lzMfr78pC0Z9rGQLA+wBeRoNgUkK5 s4Pbld70WiOC+RPbd2cy2TH4ozey5t4P8B+2ABEj/tc478nCKpe0AHjj7NKkW6dTdVH1 GYgoNsgBYC5IcegoKW/NF7/zvIm3+aXz5NfwDu2i7SYdCbhckujUqJ+qQ1SKyYwxmuYb BCWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GEByRPDi; 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 y63si9695558pgb.311.2018.04.26.06.04.24; Thu, 26 Apr 2018 06:04:51 -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=GEByRPDi; 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 S1756304AbeDZNCx (ORCPT + 99 others); Thu, 26 Apr 2018 09:02:53 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:42521 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755074AbeDZNCv (ORCPT ); Thu, 26 Apr 2018 09:02:51 -0400 Received: by mail-yw0-f194.google.com with SMTP id h6-v6so4109686ywj.9; Thu, 26 Apr 2018 06:02:50 -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=VKaRvE5QDC3Vk3frBBny6TKs9jmk1FPmPzss4u2b24U=; b=GEByRPDiguq+ts9QQ7y+cHG2IWMoOKoicW7Gw0eNfBzS6J02nMuBMz11dVYwmT83Vw Vky7o8Kj2nWp8XFR+/wFmjaQCuKr970vibiN0wJBJhxrNWoDCYjCy6Cgp1phuXg71fHQ 9p9iAqyP3QZ0QXQOz4NmNhAoxgfTmFzX1YNAjaWXhbT/T1OFc72rEcysV3vNeGr9Pj/2 SgGHhtXirT/K5F7pd1VWfW4Cvv517lQWgdpz3jLL4wUNvDPwETSZuaQi4/WRdnkXAtKc rB+/aUijHspBESHTNYcX4skQfvDVuv06tpSQtqO/OL1AoUIkA0DgIufHfhawNLtap7mW 6cHA== 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=VKaRvE5QDC3Vk3frBBny6TKs9jmk1FPmPzss4u2b24U=; b=Cn2+/JVICNyvA9wd0SDEVOinBpKYu2D+68aYHg08WyXaReeRFCXK5C6Gw5cPRlBN8f BPdCmT81Wzgb36GboUsPm7Q+7gLx7LQaKDVnnQh6O7OT7prUyyTY9+uTtlHBWQxMlU3w Wz48GEEZqByc8GHRWOm/5mJnZldL7a8r3C8w6FYV8T3p+PEdG2SMaVKBGKMbuv7yoOta 2Rld0vFpR/S0YZbFVTCNFRghCy9wl5mQ76hBjLLajCd27Kriwry7dwefkaAnfDGcp4AF ppSbwSL2vEUyFPNsW6M2na1OjIb5Gak2iNM1EYZvwjD69Wk9Ie2zO4RUgcR/mpn5qzrE rLgQ== X-Gm-Message-State: ALQs6tBzTKgQu+vuffNabvOgKQ88oQomEbQDlHtITJAxZ1ll5g5feKj/ Ekh7Sh3gxgBM90XgHaxAkijy6w== X-Received: by 2002:a81:3210:: with SMTP id y16-v6mr16840679ywy.253.1524747769381; Thu, 26 Apr 2018 06:02:49 -0700 (PDT) Received: from sophia ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id h1-v6sm8439514ywj.86.2018.04.26.06.02.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 06:02:48 -0700 (PDT) Date: Thu, 26 Apr 2018 09:02:42 -0400 From: William Breathitt Gray To: Linus Walleij Cc: Colin King , "open list:GPIO SUBSYSTEM" , kernel-janitors@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] gpio: 104-dio-48e: make array 'ports' static, shrinks object size Message-ID: <20180426130242.GA10587@sophia> References: <20180405120012.7671-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 Thu, Apr 26, 2018 at 11:06:05AM +0200, Linus Walleij wrote: >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 Hi Linus, A more recent version of this patch including similar changes to gpio-gpio-mm.c and gpio-104-idi-48.c is located here: https://lkml.org/lkml/2018/4/18/613 William Breathitt Gray