diff mbox

[net-next:master,925/931] include/linux/rhashtable.h:522:13: error: 'EEXIST' undeclared

Message ID 20150320213251.GD23301@gondor.apana.org.au
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Herbert Xu March 20, 2015, 9:32 p.m. UTC
On Sat, Mar 21, 2015 at 04:49:22AM +0800, kbuild test robot wrote:
>
> All error/warnings:
> 
>    In file included from net/tipc/socket.c:37:0:
>    include/linux/rhashtable.h: In function '__rhashtable_insert_fast':
> >> include/linux/rhashtable.h:522:13: error: 'EEXIST' undeclared (first use in this function)
>      int err = -EEXIST;

Thanks for the report, this should fix it:

---8<---
rhashtable: Fix undeclared EEXIST build error on ia64

We need to include linux/errno.h in rhashtable.h since it doesn't
always get included otherwise.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Comments

David Miller March 20, 2015, 10:19 p.m. UTC | #1
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Sat, 21 Mar 2015 08:32:51 +1100

> rhashtable: Fix undeclared EEXIST build error on ia64
> 
> We need to include linux/errno.h in rhashtable.h since it doesn't
> always get included otherwise.
> 
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h
index e5b76cf..18a6488 100644
--- a/include/linux/rhashtable.h
+++ b/include/linux/rhashtable.h
@@ -18,6 +18,7 @@ 
 #define _LINUX_RHASHTABLE_H
 
 #include <linux/compiler.h>
+#include <linux/errno.h>
 #include <linux/list_nulls.h>
 #include <linux/workqueue.h>
 #include <linux/mutex.h>