Re: Casting away noderef and address spaces?

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

 



On Mon, Dec 22, 2008 at 12:57 PM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> The right solution is
>        (*(typeof(v) __attribute__((address_space(0), force)) *)(&v))
>
> Cast there will take a pointer to type of V and force-cast it to pointer to
> unqualified type of V.  *(cast)&v will do the obvious thing.  Will trim
> both the AS and noderef.

Thanks, that is much better. However sparse don't know how to handle it yet.

/tmp/typeof.c:11:64: warning: incorrect type in assignment (invalid types)
/tmp/typeof.c:11:64:    expected unknown type 11 <noident>
/tmp/typeof.c:11:64:    got int

classify_type does not know how to handle SYM_TYPEOF yet.
Let me see if I can make it to work.

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