make struct of_device_id.data const
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 11 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 11 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/11] make struct of_device_id.data const
Quoted 11 lines · Rob Herring
Quoted 10 lines · y at pengutronix.de
From: Uwe Kleine-K?nig <[email protected]>
this series' goal is to make struct of_device_id.data const. Conceptually a driver must not modify the data contained there so making it const is the right thing.
This change might introduce warnings because drivers don't use const to access the data pointed to by of_device_id.data. In most cases the fix is to add some consts.
Quoted 5 lines
Quoted 3 lines
This series (apart from adding this const in patch 10) fixes all drivers covered by all arm defconfigs (based on v3.5-rc6).
What about other arches?
I didn't looked at them, mainly because I don't have the scripts for arches other than arm to do such testing. Also note that it introduces only some warnings, but no breakage. So adding the const in the merge window might be ok?!
I'm not sure I'll have the capacity to fix other arches now. Maybe only add the const for ARCH=arm for now and I'll address the other archs as time permits even though this is ugly? At least getting in patches 1-9 would be nice to get in to save me from keeping them up to date.
Which other arches do you consider relevant?
$ git grep -l '\<OF\>' arch/*/Kconfig arch/arm/Kconfig arch/c6x/Kconfig arch/microblaze/Kconfig arch/mips/Kconfig arch/openrisc/Kconfig arch/powerpc/Kconfig arch/sparc/Kconfig arch/x86/Kconfig
For most of these I first have to look where to get a toolchain from.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |