Skip to content

Commit af352fe

Browse files
sfrothwellSteve French
authored andcommitted
cifs: Include linux/err.h for IS_ERR and PTR_ERR
Fixes build errors: net/dns_resolver/dns_key.c: In function 'init_dns_resolver': net/dns_resolver/dns_key.c:170: error: implicit declaration of function 'IS_ERR' net/dns_resolver/dns_key.c:171: error: implicit declaration of function 'PTR_ERR' net/dns_resolver/dns_query.c: In function 'dns_query': net/dns_resolver/dns_query.c:126: error: implicit declaration of function 'IS_ERR' net/dns_resolver/dns_query.c:127: error: implicit declaration of function 'PTR_ERR' Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
1 parent 07567a5 commit af352fe

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎net/dns_resolver/dns_key.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <linux/string.h>
2929
#include <linux/kernel.h>
3030
#include <linux/keyctl.h>
31+
#include <linux/err.h>
3132
#include <keys/dns_resolver-type.h>
3233
#include <keys/user-type.h>
3334
#include "internal.h"

‎net/dns_resolver/dns_query.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include <linux/module.h>
4040
#include <linux/slab.h>
4141
#include <linux/dns_resolver.h>
42+
#include <linux/err.h>
4243
#include <keys/dns_resolver-type.h>
4344
#include <keys/user-type.h>
4445

0 commit comments

Comments
 (0)