On Thu, 25 Nov 2010 15:14:32 +0100 Alexey Orishko <alexey.orishko@xxxxxxxxx> wrote: > +/* > + * We need to align the beginning of the IP packet (not the Ethernet framing). > + * The following macro aligns the given offset to the given remainder > + * and modulus, which must be power of two. > + */ > +#define CDC_NCM_ALIGN(rem, offset, mod) \ > + ((long)(((long)(rem)) - ((long)((-(long)(offset)) & (-(long)(mod)))))) Isn't existing PTR_ALIGN macro sufficient? -- -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html