Re: [PATCH/RFC v3] introduce ARCH_CAN_UNALIGNED_ACCESS Kconfigsymbol

From: Johannes Berg
Date: Thu Mar 20 2008 - 15:12:38 EST


> > +#ifdef CONFIG_HAVE_UNALIGNED_ACCESS_SUPPORT
> > + skb = original skb
> > +#else
> > + skb = copy skb
> > +#endif
> > +
>
> Couldn't this just be made an inline in a networking header somewhere,
> instead of ifdefs in the code?

That was just an example, you might want to do other things too. If it
turns out that a similar code pattern will be used all over the place we
can then consolidate that.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part