[Precise] Fix build of dm-raid45 and re-enable it
Stefan Bader
stefan.bader at canonical.com
Thu Nov 10 15:33:32 UTC 2011
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 at 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 at 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
--
1.7.0.4
More information about the kernel-team
mailing list