lkml.org 
[lkml]   [2008]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH/RFC v3] introduce ARCH_CAN_UNALIGNED_ACCESS Kconfig symbol
From
Date
> > +#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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2008-03-20 20:15    [W:1.082 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site