Messages in this thread | | | Subject | Re: [PATCH/RFC v3] introduce ARCH_CAN_UNALIGNED_ACCESS Kconfig symbol | From | Johannes Berg <> | Date | Thu, 20 Mar 2008 20:12:03 +0100 |
| |
> > +#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] | |