Skip to content

Commit 99df95a

Browse files
committed
sunrpc: Include missing smp_lock.h
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 <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
1 parent c2f9805 commit 99df95a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sunrpc/cache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <linux/workqueue.h>
2929
#include <linux/mutex.h>
3030
#include <linux/pagemap.h>
31+
#include <linux/smp_lock.h>
3132
#include <asm/ioctls.h>
3233
#include <linux/sunrpc/types.h>
3334
#include <linux/sunrpc/cache.h>

0 commit comments

Comments
 (0)