Commit dacdd0e04768da1fd2b24a6ee274c582b40d0c5b

Authored by Joel Becker
Committed by Mark Fasheh
1 parent 94ad374a07

[PATCH] configfs: Include linux/err.h in linux/configfs.h

We now use PTR_ERR() in the ->make_item() and ->make_group() operations.
Folks including configfs.h need err.h.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>

Showing 2 changed files with 2 additions and 1 deletions Side-by-side Diff

... ... @@ -1094,7 +1094,7 @@
1094 1094 kfree(name);
1095 1095 if (ret) {
1096 1096 /*
1097   - * If item == NULL, then link_obj() was never called.
  1097 + * If ret != 0, then link_obj() was never called.
1098 1098 * There are no extra references to clean up.
1099 1099 */
1100 1100 goto out_put;
include/linux/configfs.h
... ... @@ -40,6 +40,7 @@
40 40 #include <linux/list.h>
41 41 #include <linux/kref.h>
42 42 #include <linux/mutex.h>
  43 +#include <linux/err.h>
43 44  
44 45 #include <asm/atomic.h>
45 46