]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Fix fib_trie.c build, missing linux/vmalloc.h include.
authorDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2015 04:19:03 +0000 (00:19 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2015 04:19:03 +0000 (00:19 -0400)
commit4d9f8b3e8b2bae41f5e031c2216ebd4534462847
tree4350456562b8273129442558f812656ab6fcc167
parent61959b32921e25be305142f2f367a80e9f845708
ipv4: Fix fib_trie.c build, missing linux/vmalloc.h include.

We used to get this indirectly I supposed, but no longer do.

Either way, an explicit include should have been done in the
first place.

   net/ipv4/fib_trie.c: In function '__node_free_rcu':
>> net/ipv4/fib_trie.c:293:3: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]
      vfree(n);
      ^
   net/ipv4/fib_trie.c: In function 'tnode_alloc':
>> net/ipv4/fib_trie.c:312:3: error: implicit declaration of function 'vzalloc' [-Werror=implicit-function-declaration]
      return vzalloc(size);
      ^
>> net/ipv4/fib_trie.c:312:3: warning: return makes pointer from integer without a cast
   cc1: some warnings being treated as errors

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c