]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
nvram: Fix missing smp_lock.h in nvram
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 9 Dec 2009 17:31:53 +0000 (18:31 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Dec 2009 02:53:23 +0000 (18:53 -0800)
The bkl has been removed from nvram_llseek() and smp_lock.h was removed
because another patch in the same tree zapped the remaining usage of bkl
in the same file.  But this patch must have been excluded later, then we
still need the smp_lock.h headers for the bkl use in nvram_open().

This fixes the following build error:

  drivers/char/nvram.c: In function ‘nvram_open’:
  drivers/char/nvram.c:332: erreur: implicit declaration of function ‘lock_kernel’
  drivers/char/nvram.c:339: erreur: implicit declaration of function ‘unlock_kernel’
  make[2]: *** [drivers/char/nvram.o] Erreur 1
  make[1]: *** [drivers/char] Erreur 2
  make: *** [drivers] Erreur 2

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/nvram.c

index 2100a8f7bd8627fb7a999b3dcf40896d96066fcf..4008e2ce73c1a37e14ec5e8939d9b3a2ee59efde 100644 (file)
 #include <linux/spinlock.h>
 #include <linux/io.h>
 #include <linux/uaccess.h>
+#include <linux/smp_lock.h>
 
 #include <asm/system.h>