Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9741985imu; Wed, 5 Dec 2018 09:29:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wmv/NU2310g4GmHNJ1GIRfr0ynQz0xiPDVLkofWS6VimYqEUEwxbWnvzwfAbB6vVXTL8Un X-Received: by 2002:a62:4181:: with SMTP id g1mr25109698pfd.45.1544030982618; Wed, 05 Dec 2018 09:29:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544030982; cv=none; d=google.com; s=arc-20160816; b=F5i0y35IdXs8Xq1bIXpjgi1Av0493MpRUHKYnywEMkvoV2JfNpOGZujRwycFzxuLWB w3u6HDaUQsXq2H3pddDj6DAsBx2kOe2wVKKOqQlkTF5Pb8+UFhhh6ikExNGcMRANHBJv I5MSVy4gTE/AZvAmyvDNoK8zI3qmNq2/+vHUQW/f77Pm1+hdpRfK9ZgZyQs24ohn+83/ +f2o8Jmd3OaMfHKxPwHV+bCEuUMZi+cdLzweZYCK34SFv9hhU1G43cYHy+ygjmNr1I56 /YqqCLrVXYt9rSkXzaxqi3FadSq4Jw/2A/HjafPqHbRMkPZuv/c9oFCRI7v+kiP6P67w 7hjA== 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; bh=G56DzDJI3x9m/pb/b5zsuY7DfrCP3VLYjbHcapsryQI=; b=RvGDCqXRFs8KfjnIJC+hYYGRQ3SzlB6VLfa3GTWObXtIT1+Lt0eF7AwgOfPAC0+pUh 5GqA939vBs0juFsisF2ceFW+gQPZzSpM1PQ8aYWMjLj1YprILl0UkeQ7rtB88gIZSpTc 8BNrX7Q7yFJeMPlPLmr2qrDRSySbcF8NCtzbka84hTHKrzQEL2QEyjLbPoYtg/NugdFB 2Rc+v+6PBYGtDC8ZDg/xqM+x/uJT5CVJfyeuXj1C2QcGqXXbY7CWfnSyLupenAcu7fhq LhPB5PdwoTak2TM5efM9tCRCto+lvYJOJ/F26/oC2nUs1cM/+l65oxzLDG17mUSLm3zc MKVQ== 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 13si20461280pld.398.2018.12.05.09.29.25; Wed, 05 Dec 2018 09:29:42 -0800 (PST) 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 S1728263AbeLER2q (ORCPT + 99 others); Wed, 5 Dec 2018 12:28:46 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:50444 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727242AbeLER2p (ORCPT ); Wed, 5 Dec 2018 12:28:45 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 084D427E6A9 Received: by earth.universe (Postfix, from userid 1000) id 16ECF3C08D6; Wed, 5 Dec 2018 18:28:41 +0100 (CET) Date: Wed, 5 Dec 2018 18:28:41 +0100 From: Sebastian Reichel To: Colin King Cc: linux-pm@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] power: supply: cpcap-battery: make array cpcap_battery_irqs static, shrinks object size Message-ID: <20181205172841.2ivcisxk2h7kul7e@earth.universe> References: <20181129230342.4300-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="phpln7qmp3skcy3j" Content-Disposition: inline In-Reply-To: <20181129230342.4300-1-colin.king@canonical.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --phpln7qmp3skcy3j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Nov 29, 2018 at 11:03:42PM +0000, Colin King wrote: > From: Colin Ian King >=20 > Don't populate the array cpcap_battery_irqs on the stack but instead > make it static. Makes the object code smaller by 99 bytes: >=20 > Before: > text data bss dec hex filename > 13673 2448 0 16121 3ef9 cpcap-battery.o >=20 > After: > text data bss dec hex filename > 13510 2512 0 16022 3e96 cpcap-battery.o >=20 > (gcc version 8.2.0 x86_64) >=20 > Signed-off-by: Colin Ian King > --- Thanks, queued. -- Sebastian > drivers/power/supply/cpcap-battery.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/power/supply/cpcap-battery.c b/drivers/power/supply/= cpcap-battery.c > index 98ba07869c3b..204e22e3e9b4 100644 > --- a/drivers/power/supply/cpcap-battery.c > +++ b/drivers/power/supply/cpcap-battery.c > @@ -620,7 +620,7 @@ static int cpcap_battery_init_irq(struct platform_dev= ice *pdev, > static int cpcap_battery_init_interrupts(struct platform_device *pdev, > struct cpcap_battery_ddata *ddata) > { > - const char * const cpcap_battery_irqs[] =3D { > + static const char * const cpcap_battery_irqs[] =3D { > "eol", "lowbph", "lowbpl", > "chrgcurr1", "battdetb" > }; > --=20 > 2.19.1 >=20 --phpln7qmp3skcy3j Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlwICsUACgkQ2O7X88g7 +ppspQ//W2sTS7H/gv4ulEdipPoxlBt+xPHgvJ61Z4jRsVB1pm36U/sIJ8wSDBjN uWMjHTB8cjB39Saa9aDkX1nBWSVX3Gjrw6dh9LlfAa03PCWTOr1kNgSo8jRluVsQ JFKsRjQrCdtN0Gzked4dQOa0oqHfRksV2VspaeQQfYa6gQ2ONLJOTNNY3NL/0LSK IgqWah5fc0MUZGjvfto+PWmSXQfKN5gHHSugHuu1Xq1eGNwG1RMMb4AWnbFyH+K7 v9eGQATiav8be0RJ9k1WG5EUZ9zmkSqjl17KxEFUJl/tETSkCWSQsaLFyKoV/r9F JCWsQT9go+D4ftiRqys+Vk0j7BNRF+o8cwY8Io6XmSlSC6JgkDc/53bS9OPsMRiR BhjJJJP6sezgumKo1D7hwPrrrCoOENvGXBoeh2S1C7c2ZBRURN/nOF4j3m2ceDAz 5B6gdtmW7S2v6oxNwUuo1IzaH31T4nUKJGolzkhQA8PLmD/6X5gwiDP0xUxQJVtn WFmyEky2e4yu74fKzvQbkeCrzXXyedNkGHAIqrsRQNyihPXmnPj0/KpwglJujJCC F5UUvB4EoMaUZYROwBgBo8lnsRhcG002z0uWHwqlbAV8yfSJ1EjcgfSQHM6+4U0C l0ES2zLgQUMvYnAIGxB9HVUzcIUgczyd3nk8YarRAe2+ffwdYiY= =JDfb -----END PGP SIGNATURE----- --phpln7qmp3skcy3j--