[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <5508988.K5Wec8A6hA@wuerfel>
Date: Tue, 10 Jun 2014 10:34:36 +0200
From: Arnd Bergmann <arnd@...db.de>
To: netdev@...r.kernel.org
Cc: David Miller <davem@...emloft.net>, Wei Liu <wei.liu2@...rix.com>,
"Andrew J. Bennieston" <andrew.bennieston@...rix.com>,
xen-devel@...ts.xenproject.org,
Josh Boyer <jwboyer@...oraproject.org>
Subject: [PATCH] net: xen-netback: include linux/vmalloc.h again
commit e9ce7cb6b107 ("xen-netback: Factor queue-specific data into
queue struct") added a use of vzalloc/vfree to interface.c, but
removed the #include <linux/vmalloc.h> statement at the same time,
which causes this build error:
drivers/net/xen-netback/interface.c: In function 'xenvif_free':
drivers/net/xen-netback/interface.c:754:2: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]
vfree(vif->queues);
^
cc1: some warnings being treated as errors
Signed-off-by: Arnd Bergmann <arnd@...db.de>
Cc: Wei Liu <wei.liu2@...rix.com>
Cc: Andrew J. Bennieston <andrew.bennieston@...rix.com>
---
I haven't found another report of this bug, but if someone else already
submitted a fix, please ignore this one.
Incidentally, it's the same bug that Josh fixed before in January,
but it has reappeared now, see https://lkml.org/lkml/2014/1/5/36
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c
index 6929bcb..852da34 100644
--- a/drivers/net/xen-netback/interface.c
+++ b/drivers/net/xen-netback/interface.c
@@ -34,6 +34,7 @@
#include <linux/ethtool.h>
#include <linux/rtnetlink.h>
#include <linux/if_vlan.h>
+#include <linux/vmalloc.h>
#include <xen/events.h>
#include <asm/xen/hypercall.h>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists