sunrpc: Include missing smp_lock.h
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 13 Apr 2010 20:46:36 +0000 (22:46 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Mon, 17 May 2010 01:06:31 +0000 (03:06 +0200)
Now that cache_ioctl_procfs() calls the bkl explicitly, we need to
include the relevant header as well.

This fixes the following build error:

net/sunrpc/cache.c: In function 'cache_ioctl_procfs':
net/sunrpc/cache.c:1355: error: implicit declaration of function 'lock_kernel'
net/sunrpc/cache.c:1359: error: implicit declaration of function 'unlock_kernel'

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
net/sunrpc/cache.c

index 95690a8a4d805f782d24d51527467603ccbdbf76..77970fe8bff24b2e7afe41538eac48992106fdfd 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/workqueue.h>
 #include <linux/mutex.h>
 #include <linux/pagemap.h>
+#include <linux/smp_lock.h>
 #include <asm/ioctls.h>
 #include <linux/sunrpc/types.h>
 #include <linux/sunrpc/cache.h>