Browse Source

staging: lustre: fix more build errors in errno.c

And we need even more .h files to be included to build this file.  So
add kernel.h and module.h, and hopefully that's enough...

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 0922c0084b91 ("staging: lustre: remove libcfs_all from ptlrpc")
Cc: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Greg Kroah-Hartman 7 years ago
parent
commit
7a5abc3d96
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/staging/lustre/lustre/ptlrpc/errno.c

+ 2 - 0
drivers/staging/lustre/lustre/ptlrpc/errno.c

@@ -27,6 +27,8 @@
  */
 
 #include <linux/errno.h>
+#include <linux/kernel.h>
+#include <linux/module.h>
 #include <lustre_errno.h>
 
 /*