From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Hutchings Subject: [PATCH] CIFS: Include in dns_resolve.h Date: Fri, 06 Aug 2010 01:53:02 +0100 Message-ID: <1281055982.2902.14.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Cc: David Howells , linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, samba-technical-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org To: Steve French Return-path: Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: fs/cifs/dns_resolve.c fails to build on some architectures: In file included from fs/cifs/dns_resolve.c:30: fs/cifs/dns_resolve.h:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cifs_init_dns_resolver' We need to include to ensure that __init is defined. Signed-off-by: Ben Hutchings Cc: stable-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org [after 51c20fc] --- fs/cifs/dns_resolve.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/cifs/dns_resolve.h b/fs/cifs/dns_resolve.h index 5d7f291..71c4769 100644 --- a/fs/cifs/dns_resolve.h +++ b/fs/cifs/dns_resolve.h @@ -24,6 +24,7 @@ #define _DNS_RESOLVE_H #ifdef __KERNEL__ +#include extern int __init cifs_init_dns_resolver(void); extern void cifs_exit_dns_resolver(void); extern int dns_resolve_server_name_to_ip(const char *unc, char **ip_addr); -- 1.7.1