Re: Casting away noderef and address spaces?

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

 



On Sun, Dec 21, 2008 at 9:36 PM, Rusty Russell <rusty@xxxxxxxxxxxxxxx> wrote:
> #define convert(v) \
>        (*(__attribute__((address_space(0), force)) typeof(&v))(v))
>
Am I reading it right? You are trying to dereferenc a type instead of a pointer?

I don't think you can do that with sparse.

Are you trying to declare the per_cpu as the third address space
and force every usage of the per_cpu variable going through the conversion?

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

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux