[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] mipsnet incorrect device ID fix
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] [PATCH] mipsnet incorrect device ID fix |
Date: |
Thu, 13 Mar 2008 01:18:46 +0000 |
User-agent: |
KMail/1.9.9 |
> That's the '&' which is wrong here. The string can be accessed with
> *((uint32_t *)devid). So you can simply use:
>
> ret = le32_to_cpu(*((uint32_t *)devid))
No you can't. Even ignoring the aliasing violation, devid might not be
sufficiently aligned.
Paul