Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3808336pxy; Tue, 4 May 2021 10:20:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhfuu6VDiI5VUJxyn+ZEu62RGAhAh+vJhEtX5yxLnc/qLAECIMh+LN3aRNRiZjYezRIRoi X-Received: by 2002:a63:4a44:: with SMTP id j4mr23847163pgl.283.1620148827449; Tue, 04 May 2021 10:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620148827; cv=none; d=google.com; s=arc-20160816; b=R6u/VCU3tGEVGJNfSm25WL1NAjZV3GxTTBUNwyNtlLt3wfd1+PYqDMEVq4+glgme7A 7NfVraP6jgJL4YDqF/tjdRD+G0S0H6um+Uq97sj4GeWCl2BJDy8+urOqDoOVQ5jdbEBn +kTtuuXjjvx3bneTi9NiO0kbObaCK1MVoIJZAgybllgTMGjYpKPNRzI65LVD567/RVkK xf2kc9tDlPYvPl0hUnCwjxH4u1j8KtKVD/G26SxXFvRrSDq0IM2Zj9Cs6qoU5TfSpbAe ipC+rvWLyxZXABxUED3YxQ21TL+SvZ7KOKqqkyMnhzyiiog6rJnl37l9YnUf04U8z3O+ HlAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=+OqN//zVKbNhgzc2KrVH1sOgf2rTe/47HrC40gLkxdI=; b=JqsL8LFsp05EgBuosmB/cb4Z8+eMDtLB6XuhyTE3ADnFMNx0LVXW2RrlvffjR0QrZr EHRUYGYvBOgAtdeC+Cb1QOVQrvr9JSZbNW1fzW9Yk5bNiQXP2pLQznMibo9jguBOYh73 hrhPbmuvtX5PEfn8PHRACkaZ++vZ71L2j44OJEHNnu8OCS4SlEToemwTPfiuAAGncISZ 4k1OrHTUZZpgxb7LOYCEoyxksDMC0/bO+Ipc80P5rHpkzbPwAQq/hKWOnAEr+uXSkFgI 9i7qVEK595vDNlAT1pfVXKCXDLBs9VwkbuXsSuxD5dvSN78cfqDtlRdHfDm/dUYAMhYd 37ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jx24si4055071pjb.132.2021.05.04.10.20.14; Tue, 04 May 2021 10:20:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232359AbhEDRTS (ORCPT + 99 others); Tue, 4 May 2021 13:19:18 -0400 Received: from smtp06.smtpout.orange.fr ([80.12.242.128]:56740 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232218AbhEDRTD (ORCPT ); Tue, 4 May 2021 13:19:03 -0400 Received: from localhost.localdomain ([86.243.172.93]) by mwinf5d41 with ME id 0hJ62500B21Fzsu03hJ6ua; Tue, 04 May 2021 19:18:07 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 04 May 2021 19:18:07 +0200 X-ME-IP: 86.243.172.93 From: Christophe JAILLET To: thierry.reding@gmail.com, lorenzo.pieralisi@arm.com, robh@kernel.org, bhelgaas@google.com, jonathanh@nvidia.com Cc: linux-tegra@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 3/3] PCI: tegra: make const array err_msg static Date: Tue, 4 May 2021 19:18:04 +0200 Message-Id: <5f3f35296b944b94546cc7d1e9cc6186484620d8.1620148539.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.30.2 In-Reply-To: <55b11e9a7fa2987fbc0869d68ae59888954d65e2.1620148539.git.christophe.jaillet@wanadoo.fr> References: <55b11e9a7fa2987fbc0869d68ae59888954d65e2.1620148539.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Don't populate the array err_msg on the stack but instead make it static. Makes the object code smaller by 64 bytes. While at it, add a missing const, as reported by checkpatch. Compiled with gcc 11.0.1 Before: $ size drivers/pci/controller/pci-tegra.o text data bss dec hex filename 25623 2844 32 28499 6f53 drivers/pci/controller/pci-tegra.o After: $ size drivers/pci/controller/pci-tegra.o text data bss dec hex filename 25559 2844 32 28435 6f13 drivers/pci/controller/pci-tegra.o Signed-off-by: Christophe JAILLET --- drivers/pci/controller/pci-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c index fe8e21ce3e3d..b1250b15d290 100644 --- a/drivers/pci/controller/pci-tegra.c +++ b/drivers/pci/controller/pci-tegra.c @@ -764,7 +764,7 @@ static int tegra_pcie_map_irq(const struct pci_dev *pdev, u8 slot, u8 pin) static irqreturn_t tegra_pcie_isr(int irq, void *arg) { - const char *err_msg[] = { + static const char * const err_msg[] = { "Unknown", "AXI slave error", "AXI decode error", -- 2.30.2