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: 9866535 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C39206038F for ; Thu, 27 Jul 2017 10:14:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B45DA287CF for ; Thu, 27 Jul 2017 10:14:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8BEF287EE; Thu, 27 Jul 2017 10:14:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DDB87287D8 for ; Thu, 27 Jul 2017 10:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=BkI8vUnbEKs4Q09ay2yjSlTFnwuIEoPHqQyxbuVavog=; b=a7s +by77MiNZuUNY4l8dlHzL13jzGWN8qTOFAPsnnbQaRm+XqXSlMS5XYGDNgbxPCgTUqzVMgR43hYGG RNYSxjiOSwRbduahmlrgNrddWr9jTGVNxDeVVeDcME8VqgyT1M9ewDu7Q+5adVd5+mF2nsqah5/32 ENiOI5LPxvVfs6EfmZcGvUkQmtNrWyJOgEjN3RDPK58WnfOM3mPNgm+uArkvWyxL5XhFWueRFvPZr 0ALGfbMTxCzdw4O9Sc1sF7n6FEbU6A8KJYjIN5niTZHlrMAp1JKxJorVQkQeg6YhMNX1aV9rUgHaY Gzd3EucZ9nL8SXoPKMWVA5oFyExAg8w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dafnl-0004mM-7y; Thu, 27 Jul 2017 10:13:53 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dafnh-0004lb-Qo for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2017 10:13:51 +0000 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 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:K0:LmXbDr+SJx71YyVQ1n7Iy5B8NC/019FMUf8k4adY3fre4tOYxHB KWWgbNmcP6iMiAd93qC3eSkJHgg14XSDUxoBYyfwdM3qW/lzS7Agrz92Bw9973FCoU+n+YY nmJD3xqe1HfXiBKgrq9KbnEHmDW0qeRsfZ5PPIBUq243UjvXiszLIUZcVIlPyyAElKGKwzC uUgbfPZpyRvk5zexfT9IA== X-UI-Out-Filterresults: notjunk:1; V01:K0:jgfQFgq2+V0=:+tIv0a9lbmY+rhyrIQqYfa lw+QOb6pfVV6AHrYkhlTwCpBZYKLGxWHKKfcyBCL/oTQVLrGzx+J55/eBgxe471pNYYEr0EY3 iTivyoshCAxz7SVqsINHW8F2IQQjVsUDOH8u0Z2oXAZ6luK8sXQMoIinlqS+zs7d9d3n39HF/ hrFoZPN6GygEPkUvJkW7edK3FL4FN3vpXu1ZoYmz0ziIB/Ji9fVJFHL8T2N3GMAZZLp1O92Kl anNVxXR5XPyhyHiIMQBDUrZ5pkkukvE9vUAo6n3MF+y6tb6RkcA7hHWwuhkvtIuHyoOkxKapX QB+EiRFxjGQFQry44Aw+bF+SwbnpG0Zxby2GECLWHNy5CVN3t062w2D+Qe5q9ZLCskjFlU93W JL9EmPjbP358/lj10uzKIPhaP61/2nu9LhUjTnsaFvokEoQ54JFRbl8yDMisUHp82wYjbSbLs nTlNznvR3Z8fdQzpWr7Vw0IplCT/gL/YBQfKv0G36nhbIoVwiHv9uXuFAZk1S1Rhlp/JnPR3l T9IHAKG3jR5V92tpRfneN8g/2Lqvf2cqi0sBNbmQSh9Kg6crgVSKH4eQK8Knx7mHnhs43hxpk ZoYzSL4HUuYF2/+XiTIMA8iKC0o1N4T/6ihiLhvzRrYLJ1QClITZ38PTJZdpxP3qd2i9X5+6G WzKoBKBh83dEW4i3IrePxChTlGlCuuAEiAzXOjJ+Gj/H0DaOI+mZF4pFUU4i7zynd6bIlWfpx GoUChcCP0qgFuUG0Sb4tFf9hTvw8KgmyQeN2vg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170727_031350_205127_271E81DC X-CRM114-Status: GOOD ( 13.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Axel Haslam , linux-kernel@vger.kernel.org, Bartosz Golaszewski , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Sekhar Nori --- 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(-) 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,