diff mbox

[Precise] Fix build of dm-raid45 and re-enable it

Message ID 1320939212-5476-1-git-send-email-stefan.bader@canonical.com
State New
Headers show

Commit Message

Stefan Bader Nov. 10, 2011, 3:33 p.m. UTC
As far as a quick search seems to confirm, the dmraid tool still
seems to be the only way to make use of the BIOS aided or fakeraid
setups. Though when asked half a year ago, it was claimed that
the user-space would be changing to use the dm-raid456 kernel
module which in turn uses md, there does not seem to be any newer
development there.
So I fixed up the compile issues and re-enabled the module to be
built in precise again.

-Stefan

From a7a27fc556ded20f0d8c8236cdf21d1a6197cb44 Mon Sep 17 00:00:00 2001
From: Stefan Bader <smb@canonical.com>
Date: Thu, 10 Nov 2011 09:32:35 -0500
Subject: [PATCH] UBUNTU: Fix build of dm-raid45 and re-enable it

Looks like some used header removed the includion of module.h.

Signed-off-by: Stefan Bader <smb@canonical.com>
---
 ubuntu/Makefile                 |    2 +-
 ubuntu/dm-raid4-5/dm-memcache.c |    1 +
 ubuntu/dm-raid4-5/dm-message.c  |    1 +
 ubuntu/dm-raid4-5/dm-raid4-5.c  |    1 +
 4 files changed, 4 insertions(+), 1 deletions(-)

Comments

Tim Gardner Nov. 10, 2011, 3:46 p.m. UTC | #1
On 11/10/2011 08:33 AM, Stefan Bader wrote:
> As far as a quick search seems to confirm, the dmraid tool still
> seems to be the only way to make use of the BIOS aided or fakeraid
> setups. Though when asked half a year ago, it was claimed that
> the user-space would be changing to use the dm-raid456 kernel
> module which in turn uses md, there does not seem to be any newer
> development there.
> So I fixed up the compile issues and re-enabled the module to be
> built in precise again.
>
> -Stefan
>
>  From a7a27fc556ded20f0d8c8236cdf21d1a6197cb44 Mon Sep 17 00:00:00 2001
> From: Stefan Bader<smb@canonical.com>
> Date: Thu, 10 Nov 2011 09:32:35 -0500
> Subject: [PATCH] UBUNTU: Fix build of dm-raid45 and re-enable it
>
> Looks like some used header removed the includion of module.h.
>
> Signed-off-by: Stefan Bader<smb@canonical.com>
> ---
>   ubuntu/Makefile                 |    2 +-
>   ubuntu/dm-raid4-5/dm-memcache.c |    1 +
>   ubuntu/dm-raid4-5/dm-message.c  |    1 +
>   ubuntu/dm-raid4-5/dm-raid4-5.c  |    1 +
>   4 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/ubuntu/Makefile b/ubuntu/Makefile
> index 16136d2..aa6a69a 100644
> --- a/ubuntu/Makefile
> +++ b/ubuntu/Makefile
> @@ -15,7 +15,7 @@
>   ##
>   ##
>   ##
> -#obj-$(CONFIG_DM_RAID45)		+= dm-raid4-5/
> +obj-$(CONFIG_DM_RAID45)		+= dm-raid4-5/
>   ##
>   ##
>   ##
> diff --git a/ubuntu/dm-raid4-5/dm-memcache.c b/ubuntu/dm-raid4-5/dm-memcache.c
> index 1b15859..346abb4 100644
> --- a/ubuntu/dm-raid4-5/dm-memcache.c
> +++ b/ubuntu/dm-raid4-5/dm-memcache.c
> @@ -19,6 +19,7 @@
>   #include "dm-memcache.h"
>   #include<linux/dm-io.h>
>   #include<linux/slab.h>
> +#include<linux/module.h>
>
>   struct dm_mem_cache_client {
>   	spinlock_t lock;
> diff --git a/ubuntu/dm-raid4-5/dm-message.c b/ubuntu/dm-raid4-5/dm-message.c
> index a66b015..de21e52 100644
> --- a/ubuntu/dm-raid4-5/dm-message.c
> +++ b/ubuntu/dm-raid4-5/dm-message.c
> @@ -14,6 +14,7 @@
>   #include "dm.h"
>   #include "dm-message.h"
>   #include<linux/kernel.h>
> +#include<linux/module.h>
>
>   #define DM_MSG_PREFIX	"dm_message"
>
> diff --git a/ubuntu/dm-raid4-5/dm-raid4-5.c b/ubuntu/dm-raid4-5/dm-raid4-5.c
> index 88db795..667630f 100644
> --- a/ubuntu/dm-raid4-5/dm-raid4-5.c
> +++ b/ubuntu/dm-raid4-5/dm-raid4-5.c
> @@ -54,6 +54,7 @@ static const char *version = "v0.2594b";
>   #include "dm-region-hash.h"
>
>   #include<linux/slab.h>
> +#include<linux/module.h>
>
>   /*
>    * Configurable parameters
diff mbox

Patch

diff --git a/ubuntu/Makefile b/ubuntu/Makefile
index 16136d2..aa6a69a 100644
--- a/ubuntu/Makefile
+++ b/ubuntu/Makefile
@@ -15,7 +15,7 @@ 
 ##
 ##
 ##
-#obj-$(CONFIG_DM_RAID45)		+= dm-raid4-5/
+obj-$(CONFIG_DM_RAID45)		+= dm-raid4-5/
 ##
 ##
 ##
diff --git a/ubuntu/dm-raid4-5/dm-memcache.c b/ubuntu/dm-raid4-5/dm-memcache.c
index 1b15859..346abb4 100644
--- a/ubuntu/dm-raid4-5/dm-memcache.c
+++ b/ubuntu/dm-raid4-5/dm-memcache.c
@@ -19,6 +19,7 @@ 
 #include "dm-memcache.h"
 #include <linux/dm-io.h>
 #include <linux/slab.h>
+#include <linux/module.h>
 
 struct dm_mem_cache_client {
 	spinlock_t lock;
diff --git a/ubuntu/dm-raid4-5/dm-message.c b/ubuntu/dm-raid4-5/dm-message.c
index a66b015..de21e52 100644
--- a/ubuntu/dm-raid4-5/dm-message.c
+++ b/ubuntu/dm-raid4-5/dm-message.c
@@ -14,6 +14,7 @@ 
 #include "dm.h"
 #include "dm-message.h"
 #include <linux/kernel.h>
+#include <linux/module.h>
 
 #define DM_MSG_PREFIX	"dm_message"
 
diff --git a/ubuntu/dm-raid4-5/dm-raid4-5.c b/ubuntu/dm-raid4-5/dm-raid4-5.c
index 88db795..667630f 100644
--- a/ubuntu/dm-raid4-5/dm-raid4-5.c
+++ b/ubuntu/dm-raid4-5/dm-raid4-5.c
@@ -54,6 +54,7 @@  static const char *version = "v0.2594b";
 #include "dm-region-hash.h"
 
 #include <linux/slab.h>
+#include <linux/module.h>
 
 /*
  * Configurable parameters