Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2608444imm; Tue, 4 Sep 2018 07:17:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbS90zeXpHVCIWkHJqFdd32/efOWzKBYPBIA5FmlIOaCQxmr3FVKHljCjgiPCfDgXXnPVEM X-Received: by 2002:a17:902:d881:: with SMTP id b1-v6mr33978449plz.191.1536070641416; Tue, 04 Sep 2018 07:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536070641; cv=none; d=google.com; s=arc-20160816; b=Gb48rMZoThk5CrrGoqPUJ8B/23266/QVrT8Cg8hVdNcPxH/UXSe9ht5xaPUNq/zZgl PpejQ5QEx9B9Y/usbe5w+XSIGMJ0qG7H6Ean8PJFowrC1ERuXMNkZBlqHY/VJ6PISW64 G8hQh2gE0zyfKXmOqoPyRcPO+qO4SPWOTE1RWHwZimyI10bVhqKxpyccOrw9dUbXZFcz XXdtQfy3BulM5Po6OU5JDec9Chsg54lcDgZTgJO9NT55KN6y1Emm3qtQL7WudFNxnQc1 QHEo7xe/5nK2lBvmXpEBgT/xFzcOQTiy+h9HLBaXESDULkFG+MKbsHKfI4PVfi4VlSgD 7OsQ== 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:arc-authentication-results; bh=94iv/sXA5JeGrapMjwNYgEbem2wQoX8/KLU9KkzPSN0=; b=u3Iq7g9bA8fQeav7sY2/4kknN+WAszhM1zwh/HhWE9HFTlBRFwzbhNiwGHjy1vYKhI w5zmU8dU/pCPb1PtAfuXNPap6yApb0SJbe3ti3GZfPeCSz62o3vVkJ9wCIbDaFEz0+dF JzxgzxqBJStOm+6ocQwwBKIbrh1EUMmR0XXQegIWf2b9TwzjOZr1J/BFLtZafxXyNCtl /IxCfIg2plC/lO8x9kNEc1MY9mutndtNliMXXa+N0D47tuAV0ZUnzgJGBgAJiebuFsw2 8o0i5XiJ9zms1mtRn9+S4/TTJ9Ft6LPe0uP9Nzl97cX42eoLCjzFIjuk2cxZ6dzs2Mtj 1w9g== 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 s125-v6si23397391pfb.335.2018.09.04.07.17.05; Tue, 04 Sep 2018 07:17: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; 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 S1727497AbeIDSlN (ORCPT + 99 others); Tue, 4 Sep 2018 14:41:13 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:35186 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726956AbeIDSlN (ORCPT ); Tue, 4 Sep 2018 14:41:13 -0400 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 1fxC7W-0004J9-35; Tue, 04 Sep 2018 14:15:54 +0000 From: Colin King To: Lee Jones , patches@opensource.cirrus.com Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mfd: arizona: make array mclk_name static, shrinks object size Date: Tue, 4 Sep 2018 15:15:53 +0100 Message-Id: <20180904141553.28000-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.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 mclk_name on the stack but instead make it static. Makes the object code smaller by 23 bytes: Before: text data bss dec hex filename 38050 11604 64 49718 c236 linux/drivers/mfd/arizona-core.o After: text data bss dec hex filename 38027 11604 64 49695 c21f linux/drivers/mfd/arizona-core.o (gcc version 8.2.0 x86_64) Signed-off-by: Colin Ian King --- drivers/mfd/arizona-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c index 5f1e37d23943..918d81a00b37 100644 --- a/drivers/mfd/arizona-core.c +++ b/drivers/mfd/arizona-core.c @@ -990,7 +990,7 @@ static const struct mfd_cell wm8998_devs[] = { int arizona_dev_init(struct arizona *arizona) { - const char * const mclk_name[] = { "mclk1", "mclk2" }; + static const char * const mclk_name[] = { "mclk1", "mclk2" }; struct device *dev = arizona->dev; const char *type_name = NULL; unsigned int reg, val; -- 2.17.1