Thread (1 message) 1 message, 1 author, 2008-03-20

Re: [PATCH/RFC v3] introduce ARCH_CAN_UNALIGNED_ACCESS Kconfig symbol

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2008-03-20 19:12:37
Also in: linux-wireless, lkml

quoted
+#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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help