OMAP3: Warning: swp{b} use is deprecated for this architecture

Jean Pihet jean.pihet at newoldbits.com
Thu Dec 16 16:44:49 EST 2010


On Thu, Dec 16, 2010 at 9:10 PM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> On Thu, Dec 16, 2010 at 08:04:41PM +0000, Dave Martin wrote:
>> Note that the above bit of code is similar/identical to a bit of code
>> already present in the OMAP BSP... so this still needs to be
>> addressed.
>>
>> See arch/arm/mach-omap2/sleep34xx.S:lock_scratchpad_sem
>
> That's odd.
>
> | The following warning is issued by the compiler (gcc version 4.4.1
> | (Sourcery G++ Lite 2010q1-202):
> | arch/arm/mach-omap2/sleep34xx.S:87: Warning: swp{b} use is deprecated
> | for this architecture
>
> It seems we're discussing the same code!
>
> As has been pointed out, and as Jean points out, this code is not called
> at the moment, so can be removed to resolve the problem.
>
Exactly! It is actually planned for removal, cf.
http://marc.info/?l=linux-omap&m=129252188012958&w=2

A better solution will be needed at the time the API will be in use.

Thanks,
Jean



More information about the linux-arm-kernel mailing list