ASoC: Add mc13783 codec
[deliverable/linux.git] / net / core / kmap_skb.h
CommitLineData
a1f8e7f7
AV
1#include <linux/highmem.h>
2
3static inline void *kmap_skb_frag(const skb_frag_t *frag)
4{
5#ifdef CONFIG_HIGHMEM
6 BUG_ON(in_irq());
7
8 local_bh_disable();
9#endif
0352bc55 10 return kmap_atomic(skb_frag_page(frag));
a1f8e7f7
AV
11}
12
13static inline void kunmap_skb_frag(void *vaddr)
14{
0352bc55 15 kunmap_atomic(vaddr);
a1f8e7f7
AV
16#ifdef CONFIG_HIGHMEM
17 local_bh_enable();
18#endif
19}
This page took 0.490773 seconds and 5 git commands to generate.