From patchwork Tue Feb 20 16:24:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 128924 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4816513ljc; Tue, 20 Feb 2018 08:26:44 -0800 (PST) X-Google-Smtp-Source: AH8x226wkCLPnRDsb/S0LJ6+tVpWrrYTWV616cUPTd+AUXHRhqGPScgDHW6Hcg36qmFi3fGS5L0i X-Received: by 2002:a17:902:6a89:: with SMTP id n9-v6mr168174plk.212.1519144004755; Tue, 20 Feb 2018 08:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519144004; cv=none; d=google.com; s=arc-20160816; b=hQRTiXUvDGtmvGNYLU9WIXCib/qnI1GNgoIyJF3nmsBtJ1omB12oeggXpuiHj47CFI l60KWSiM4swZyWl9ivAl8DHOe4tGRcDv4lpl5m7x8FjTNTGiOOXZzeh2H8tRvNHXTosD XhrU2hzSATzhY1Kg9C7QaNSl7R62CErvPqeLhx3TJkBZ1T8iNVLKdRkdRTVq/WeTLn5D zKsMuCZHurQoPnzy20W4LGpqfFRLnN1//vBcajQFsJcJDVRzd8jdbT+kfAqroQT5tUsK 33zDX4cvAXCqC04htS0+8jNDRnjQPeYM/O3x4n6llrR1XdalIy5tewRe1AMuFHBwKOPG j2yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=kVvltVNyHXZJ2qftkb/psNNYmLXqeAfJH+hhHBiJTqc=; b=JscUw5rVwKO0kyEiV2Ebw5IkVSsjXDRJDqG7oP8tlLgYqcYvCUc7T5EqYiiZ2py6uy iI6tW5hkRmyuHTb/fmFsM50M8Ks3I3epeU9B62aUSu0epyYenqxm5PeJfCqAs7y9IiAV /xzmNJKIkSQvVimfMwMllEjv6IWOWWy9KVhVOS9cJIFzFhVzMoSyAlWlMqCRkjX8NKJR O0Kr+xMhurERnsuyu6gNRPcyrA6P8jV95mkHxS+M57iCHfvZklI8LTc9kMP7Gp4PtAc0 Ap/rXqsixjJh6GVy8H/PV5oqntyjBIt8O1ILcPafi0TAcw7U7ZSNAnNgR5CZ2oqxxE01 Ssaw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a33-v6si4213785plc.237.2018.02.20.08.26.44; Tue, 20 Feb 2018 08:26:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753079AbeBTQ0l (ORCPT + 28 others); Tue, 20 Feb 2018 11:26:41 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:53929 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753030AbeBTQ0j (ORCPT ); Tue, 20 Feb 2018 11:26:39 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0LjrPF-1eDBEX1s77-00boUQ; Tue, 20 Feb 2018 17:26:08 +0100 From: Arnd Bergmann To: arm@kernel.org, Sekhar Nori , Kevin Hilman Cc: Arnd Bergmann , Neil Armstrong , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] ARM: davinci: mark spi_board_info arrays as const Date: Tue, 20 Feb 2018 17:24:52 +0100 Message-Id: <20180220162519.1498223-3-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180220162519.1498223-1-arnd@arndb.de> References: <20180220162519.1498223-1-arnd@arndb.de> X-Provags-ID: V03:K0:CEL2rBjhj9qEenvQisE9yXiW+GPYa2hHI2gzFVuC91Oy2cC+aMC Bh1saIFYJBE9eq67YaJWdbZC5r8dWmr4GMeaIVQe8DFSUIBleRzpZWm6BOr6dNbR9jhDdbX gJP1c1Oe3DjeUQEATzLnJZAyAX0hNrW0SiOxGEQ6AZ2AW12OYzNbOFX/jLOh9v+8EkN+tLq ptyoViB8yjRRd4usFczzg== X-UI-Out-Filterresults: notjunk:1; V01:K0:pgcakMaqZBo=:YCz4R+Xa9GS0IddLGToet+ ccyU5qiqGJb6y36ajSs+FX8NRxo2AZlblF6ejmMLS1D1sHO31DxhkgCSmoAoi+j/v3xdvkp8j HNSfGVeNgWq9ekf74UVpcwik5pnncfMCi/QWer72A5hVNtMOVP43qviv/JuNSvWn0ti6qNMNZ hybZ7tVD7jGaMC4FSU+zUXGuURKb66nezTtJdV84GO8dlkLh8K4p/PvAVgvU+zLfmUTwUGAD3 +K9iu1dHYMYQGPENw2FM1lgclX81+q2zyHeOsV/hSipW20OiCtWBDxVknEpNRz8S8aWROVqmT x4wTdqtMjQqLT8QkhP2oMQj64TZIAFQBKx+2RsqUhx5L1FA9zEWb0bA8ObwFFtXe+0jg8JixB RNzmuGtC2XLtAapryvwaxOaBxDWnE6KD/rF/rjVKBZdoBQzwZmIE/H0/6nAwvERvvZLCrl00Q lF4B6u4g2KBjnWPbtvft8AJielaZ1kjtaS4pBB8X1esDIAWhQyyn38SIbXkJycb9eDu9j5NZN q2CI6ExiE4uxggtqYPQTIOzpsnPXSDtPnrR3cZd5taUUGR5Xp7okZxiJcybQ/yUVUmH6h08cw irmlGO8zM6aAjefgGmMs0o7JssdhElh4S28u38IyC2A+TbYjGBlhGrk16UkIlUBR5ezO6yyLv CM0t4rbFhI3ZEqc20IERwkaqcakLL7Sbnaa+XukDEhHbcKL2UsNnQo8/54QmoQ37mmpIvAzXt Jufhr8iLwKS5kqm8se36B01bqChO31XStO2YcA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Building with LTO revealed that three spi_board_info arrays are marked __initconst, but not const: arch/arm/mach-davinci/board-dm365-evm.c: In function 'dm365_evm_init': arch/arm/mach-davinci/board-dm365-evm.c:729:30: error: 'dm365_evm_spi_info' causes a section type conflict with 'dm646x_edma_device' static struct spi_board_info dm365_evm_spi_info[] __initconst = { ^ arch/arm/mach-davinci/dm646x.c:603:42: note: 'dm646x_edma_device' was declared here static const struct platform_device_info dm646x_edma_device __initconst = { This marks them const as well, as was originally intended. Signed-off-by: Arnd Bergmann --- arch/arm/mach-davinci/board-dm355-evm.c | 2 +- arch/arm/mach-davinci/board-dm355-leopard.c | 2 +- arch/arm/mach-davinci/board-dm365-evm.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 2.9.0 Acked-by: Sekhar Nori diff --git a/arch/arm/mach-davinci/board-dm355-evm.c b/arch/arm/mach-davinci/board-dm355-evm.c index e457f299cd44..d6b11907380c 100644 --- a/arch/arm/mach-davinci/board-dm355-evm.c +++ b/arch/arm/mach-davinci/board-dm355-evm.c @@ -368,7 +368,7 @@ static struct spi_eeprom at25640a = { .flags = EE_ADDR2, }; -static struct spi_board_info dm355_evm_spi_info[] __initconst = { +static const struct spi_board_info dm355_evm_spi_info[] __initconst = { { .modalias = "at25", .platform_data = &at25640a, diff --git a/arch/arm/mach-davinci/board-dm355-leopard.c b/arch/arm/mach-davinci/board-dm355-leopard.c index be997243447b..fad9a5611a5d 100644 --- a/arch/arm/mach-davinci/board-dm355-leopard.c +++ b/arch/arm/mach-davinci/board-dm355-leopard.c @@ -217,7 +217,7 @@ static struct spi_eeprom at25640a = { .flags = EE_ADDR2, }; -static struct spi_board_info dm355_leopard_spi_info[] __initconst = { +static const struct spi_board_info dm355_leopard_spi_info[] __initconst = { { .modalias = "at25", .platform_data = &at25640a, diff --git a/arch/arm/mach-davinci/board-dm365-evm.c b/arch/arm/mach-davinci/board-dm365-evm.c index e75741fb2c1d..e3780986d2a3 100644 --- a/arch/arm/mach-davinci/board-dm365-evm.c +++ b/arch/arm/mach-davinci/board-dm365-evm.c @@ -726,7 +726,7 @@ static struct spi_eeprom at25640 = { .flags = EE_ADDR2, }; -static struct spi_board_info dm365_evm_spi_info[] __initconst = { +static const struct spi_board_info dm365_evm_spi_info[] __initconst = { { .modalias = "at25", .platform_data = &at25640,