RE: [PATCH 2/2] arm: omap: ehci: avoid compiler error with touchbook

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



felipe.balbi@xxxxxxxxx wrote:
> 
> From: Felipe Balbi <felipe.balbi@xxxxxxxxx>
> 
> the early_param() call in board-omap3touchbook.c expands to:
> 
> static const char __setup_str_early_touchbook_revision[]
> 	__section(.init.rodata) _aligned(1) = tbr;
> [...]
> 
> and we have a non-const variable being added to the
> same section:
> 
> static struct ehci_hcd_omap_platform_data ehci_pdata
> __section(.init.rodata);
> 
> because of that, gcc generates a section type conflict
> which can (and actually should) be avoided by marking
> const every variable marked with __initconst.
> 
> This patch fixes that for the ehci_hdc_omap_platform_data.
> 

should be ehci_hcd_omap_platform_data ;)

BTW, this breaks compile for omap3-evm.
Could you please build with omap3_defconfig and check.

- Anand
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux