Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1697891
| From | Sekhar Nori <nsekhar@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH RESEND] ARM: davinci: don't mark vpif_input structures as 'const' |
| Date | 2017-07-27 13:00 +0200 |
| Message-ID | <u7OGm-556-7@gated-at.bofh.it> (permalink) |
| References | <u7O3E-4Qj-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Arnd,
On Thursday 27 July 2017 03:42 PM, Arnd Bergmann wrote:
> 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]
You can replace these by:
arch/arm/mach-davinci/board-da850-evm.c:1221:13: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
arch/arm/mach-davinci/board-da850-evm.c:1231:13: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
to match with this patch.
>
> 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 <arnd@arndb.de>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Looks like this slipped my testing since I had
CONFIG_DA850_UI_SD_VIDEO_PORT switched off. Thanks for catching it.
> ---
> 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.
No problem. Thanks!
~Sekhar
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH RESEND] ARM: davinci: don't mark vpif_input structures as 'const' Arnd Bergmann <arnd@arndb.de> - 2017-07-27 12:20 +0200
Re: [PATCH RESEND] ARM: davinci: don't mark vpif_input structures as 'const' Sekhar Nori <nsekhar@ti.com> - 2017-07-27 13:00 +0200
Re: [PATCH RESEND] ARM: davinci: don't mark vpif_input structures as 'const' Arnd Bergmann <arnd@arndb.de> - 2017-07-27 13:20 +0200
csiph-web