On Mon, Dec 22, 2008 at 12:06:03PM -0800, Christopher Li wrote: > 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. 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. -- 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