WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH mainline] xen: xen-selfballoon.c needs more header fi

To: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Subject: [Xen-devel] [PATCH mainline] xen: xen-selfballoon.c needs more header files
From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
Date: Wed, 10 Aug 2011 11:22:42 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Konrad Wilk <konrad.wilk@xxxxxxxxxx>
Delivery-date: Wed, 10 Aug 2011 11:23:42 -0700
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenotime.net; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-Id:Subject:Cc:To:From:Date; bh=3cYFm0njZR4tQBy3nsH3zilbG1yb4Wwa6ZDKQuiEy80=; b=PVo4huu6FXJUGznRo6esU2mMX/3mdES01pZvBxr17w+jTB0urU56hSuX1V2ZIEGI7ki2wdBJ/KYB9ZLzyLAtXUY0OEZ4zmVBQ82hlVZi4EMbqQNWOIms30EHurnddXoW;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CA+55aFwkJdyEpyNY64aAQ5ChrPZ8Kvx9iRUwy1J6_SRaxoN=zA@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: YPO4
References: <CA+55aFwkJdyEpyNY64aAQ5ChrPZ8Kvx9iRUwy1J6_SRaxoN=zA@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>

Fix build errors (found when CONFIG_SYSFS is not enabled):

drivers/xen/xen-selfballoon.c:446: warning: data definition has no type or 
storage class
drivers/xen/xen-selfballoon.c:446: warning: type defaults to 'int' in 
declaration of 'EXPORT_SYMBOL'
drivers/xen/xen-selfballoon.c:446: warning: parameter names (without types) in 
function declaration
drivers/xen/xen-selfballoon.c:485: error: expected declaration specifiers or 
'...' before string constant
drivers/xen/xen-selfballoon.c:485: warning: data definition has no type or 
storage class
drivers/xen/xen-selfballoon.c:485: warning: type defaults to 'int' in 
declaration of 'MODULE_LICENSE'
drivers/xen/xen-selfballoon.c:485: warning: function declaration isn't a 
prototype

Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
---
 drivers/xen/xen-selfballoon.c |    1 +
 1 file changed, 1 insertion(+)

and will need <linux/export.h> when module.h is split up.

--- lnx-31-rc1.orig/drivers/xen/xen-selfballoon.c
+++ lnx-31-rc1/drivers/xen/xen-selfballoon.c
@@ -70,6 +70,7 @@
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/mman.h>
+#include <linux/module.h>
 #include <linux/workqueue.h>
 #include <xen/balloon.h>
 #include <xen/tmem.h>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>