From patchwork Thu Jul 27 10:12:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 108814 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1855505qge; Thu, 27 Jul 2017 03:14:00 -0700 (PDT) X-Received: by 10.99.189.10 with SMTP id a10mr284497pgf.271.1501150440454; Thu, 27 Jul 2017 03:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501150440; cv=none; d=google.com; s=arc-20160816; b=JKktDA4OAvP0HNK0Y6Dak9XMosiIyPemUG0jwcWXxzCJW2UatO5JOiy6hEsgvZDjiF Q6q/siZXo4gQFJ+rxhouGLZ20nNtx4b1yUvh1b0kT6pBZSgB7ckbDPf1Uq0i+NGzon89 TM5iO02c1l1+P83T+bmJr4i0bgHsnZzRxZg7rnUqm9vhqc+oNQaJinEVTRqgghiIl3BS GnjNxLVYCckqLFaMY8m5uSnc4UE4EVUdBv4uaU6P+oME+Ejkhfx4Qa2QDgvPp2GTjrdE Q5qnpaxiI1N+IxHPtr9ABOe4F9PFHlMSUpFxy14xqvLiqgIPnsnAhrQYWEY38f7WgbkI PiiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=8QQ2nbcBT1lGC8fDvnCU7kMhRvF0HTXJo8810Xqf/LA=; b=M4nYA4C/cs8M88hGG0af8i7VUKu16BnOVkLFQQ6pXHi2wgqB5I03eqh22qI99ZE9iI giierK4hzADY3TKTVbwEOLn0eap3lhYt/1ya/lp5hc0WVfGHFNsg2yuhth1QUPHVGDGo FNdzqaBqgGQtlIZVOx5SFu4mVpmhxxJTMKvm0wrdz9IgY+5JsjRzTcIEj4pjBr4EnG/4 UqVFoTdQea4QHdBkrsUKYkPCYKmmzbw3rukLnDAF2VRIDl8nqvrEnXzuVY+KKNTHfIyq tVd1E+OGOkRKdDWCc+uWi7EiwVid10OZR9aQZ4NZT2fWMyCXR9K0VFVKmnXVsRhXIkYu dAIA== 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 w14si8230104pfl.677.2017.07.27.03.14.00; Thu, 27 Jul 2017 03:14:00 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751445AbdG0KN5 (ORCPT + 26 others); Thu, 27 Jul 2017 06:13:57 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:60094 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836AbdG0KN4 (ORCPT ); Thu, 27 Jul 2017 06:13:56 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MeBiQ-1dEAIx3kRq-00Pxwv; Thu, 27 Jul 2017 12:13:22 +0200 From: Arnd Bergmann To: Sekhar Nori , Kevin Hilman Cc: Arnd Bergmann , Bartosz Golaszewski , Axel Haslam , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND] ARM: davinci: don't mark vpif_input structures as 'const' Date: Thu, 27 Jul 2017 12:12:59 +0200 Message-Id: <20170727101320.609258-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K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el-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A change to the platform data definitions caused a warning in the board code: arch/arm/mach-davinci/board-dm646x-evm.c:680:13: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] arch/arm/mach-davinci/board-dm646x-evm.c:690:13: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] This is a bit unfortunate, since we generally like structure definitions to be const, but as this is legacy code, the easiest way out is still to remove the 'const' annotation here. Fixes: 4a5f8ae50b66 ("[media] davinci: vpif_capture: get subdevs from DT when available") Fixes: 231ce279e6e3 ("ARM: davinci: fix const warnings") Signed-off-by: Arnd Bergmann --- I originally sent my fix on Jun 9, but Kevin had already applied an identical fix for two of the three affected files. This fixes the third one that his patch missed. I have a couple of other patches that I'm planning to apply directly to the fixes branch now, and would do the same for this one unless there are objections. --- arch/arm/mach-davinci/board-da850-evm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 Acked-by: Sekhar Nori diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index b5625d009288..e568c8c6f69c 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -1166,7 +1166,7 @@ static struct tvp514x_platform_data tvp5146_pdata = { #define TVP514X_STD_ALL (V4L2_STD_NTSC | V4L2_STD_PAL) -static const struct vpif_input da850_ch0_inputs[] = { +static struct vpif_input da850_ch0_inputs[] = { { .input = { .index = 0, @@ -1181,7 +1181,7 @@ static const struct vpif_input da850_ch0_inputs[] = { }, }; -static const struct vpif_input da850_ch1_inputs[] = { +static struct vpif_input da850_ch1_inputs[] = { { .input = { .index = 0,