Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3070493imu; Thu, 29 Nov 2018 15:04:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/WwE/bqv5TDXJ6zU/tdYAr5HN6RWH8KkoWG4Ns6ZXJ2+1INJw0CqOPOX1CZqyhfB0iue5ZJ X-Received: by 2002:a62:14d1:: with SMTP id 200mr3328612pfu.103.1543532689705; Thu, 29 Nov 2018 15:04:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543532689; cv=none; d=google.com; s=arc-20160816; b=Y0oaZ4faE5WI5MtYVYOvEiDUvGg/D2WOkm2yxirBMgUkFY6LfpP2u+4tqWbYcKjw/T uU7Oyv7G2Dv3wXnE7tGwv2liZzaGBw88OGvuRVZkaeqbBl8GX63i9Z9zUFv+wHZ7+BLT LbI7M8u3km0dXFSL1/gqyQQ5AMUyyH8QmPWmOC1sKyJF55g3NUzqADDX41s34x7lEnnZ TfKMNTzrC0h9QSis2Knz+h1Um9YPWL6AWFP6bmAx2aWsmpWILj5R/NEpgafEYNplbyOn VAOzvj6rEQ4o2KKTSB3ZCug1OX2su5+rUXGmKrh9bTUvJZKKmO712fJssQ+PbZqE49m1 yr1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=pTF4pxMKkRk4dvY0CEE1dqMq3x35NEQZQg865mHEgNY=; b=rwTs9MWcHZx1kV9eSGRKAS1remvy0I571hlWNlNBjPiEwVLWjusQnc2ILqBAkh1Wwv uYv0/WoQrFT8t7si4loMhqdcKEWflRUj+0BQMGCOfI0N+urXF7k807mOb4hLB9iF5lfG iO5k5nSVW+Lhd+QTIfnXLSwMeglCdReHY3sB1xJcZC/EXjHQ1T3Z52y2fVpgTkQP9MRO VseJlqMQiQQVRm+Wy78CzYQ+dJiYO+d53G0oenFUyuZH/kej91mRJx3MWHD2IGKY+UU2 IcgbAHjx7G9Ho3NSWOg2gQSGDdQiNoINHN4o/YII+Ezs8uAwsUPvlgMt4S3VvUmT0wVE Vjsw== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si3772532pli.50.2018.11.29.15.04.35; Thu, 29 Nov 2018 15:04:49 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727126AbeK3KKw (ORCPT + 99 others); Fri, 30 Nov 2018 05:10:52 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:54152 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726403AbeK3KKv (ORCPT ); Fri, 30 Nov 2018 05:10:51 -0500 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1gSVLT-00063d-33; Thu, 29 Nov 2018 23:03:43 +0000 From: Colin King To: Sebastian Reichel , linux-pm@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] power: supply: cpcap-battery: make array cpcap_battery_irqs static, shrinks object size Date: Thu, 29 Nov 2018 23:03:42 +0000 Message-Id: <20181129230342.4300-1-colin.king@canonical.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Don't populate the array cpcap_battery_irqs on the stack but instead make it static. Makes the object code smaller by 99 bytes: Before: text data bss dec hex filename 13673 2448 0 16121 3ef9 cpcap-battery.o After: text data bss dec hex filename 13510 2512 0 16022 3e96 cpcap-battery.o (gcc version 8.2.0 x86_64) Signed-off-by: Colin Ian King --- drivers/power/supply/cpcap-battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_device *pdev, static int cpcap_battery_init_interrupts(struct platform_device *pdev, struct cpcap_battery_ddata *ddata) { - const char * const cpcap_battery_irqs[] = { + static const char * const cpcap_battery_irqs[] = { "eol", "lowbph", "lowbpl", "chrgcurr1", "battdetb" }; -- 2.19.1