kernel: fix linux 4.4 mac80211 build error
[openwrt/openwrt.git] / tools / mtd-utils / patches / 137-no_extern_inline.patch
1 --- a/mkfs.ubifs/hashtable/hashtable_itr.c
2 +++ b/mkfs.ubifs/hashtable/hashtable_itr.c
3 @@ -35,18 +35,6 @@ hashtable_iterator(struct hashtable *h)
4 }
5
6 /*****************************************************************************/
7 -/* key - return the key of the (key,value) pair at the current position */
8 -/* value - return the value of the (key,value) pair at the current position */
9 -
10 -void *
11 -hashtable_iterator_key(struct hashtable_itr *i)
12 -{ return i->e->k; }
13 -
14 -void *
15 -hashtable_iterator_value(struct hashtable_itr *i)
16 -{ return i->e->v; }
17 -
18 -/*****************************************************************************/
19 /* advance - advance the iterator to the next element
20 * returns zero if advanced to end of table */
21
22 --- a/mkfs.ubifs/hashtable/hashtable_itr.h
23 +++ b/mkfs.ubifs/hashtable/hashtable_itr.h
24 @@ -28,7 +28,7 @@ hashtable_iterator(struct hashtable *h);
25 /* hashtable_iterator_key
26 * - return the value of the (key,value) pair at the current position */
27
28 -extern inline void *
29 +static inline void *
30 hashtable_iterator_key(struct hashtable_itr *i)
31 {
32 return i->e->k;
33 @@ -37,7 +37,7 @@ hashtable_iterator_key(struct hashtable_
34 /*****************************************************************************/
35 /* value - return the value of the (key,value) pair at the current position */
36
37 -extern inline void *
38 +static inline void *
39 hashtable_iterator_value(struct hashtable_itr *i)
40 {
41 return i->e->v;