FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 08-03-2012, 05:06 PM
Mike Snitzer
 
Default dm: all kstrto* consumers should include kernel.h

Commit 1a66a08ae8 ("dm: replace simple_strtoul") should've included
<linux/kernel.h>. Likewise for commit 991d9fa0 ("dm: add thin
provisioning target").

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
---
drivers/md/dm-exception-store.c | 1 +
drivers/md/dm-stripe.c | 1 +
drivers/md/dm-thin.c | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c
index ebaa4f8..4ddcd8a 100644
--- a/drivers/md/dm-exception-store.c
+++ b/drivers/md/dm-exception-store.c
@@ -11,6 +11,7 @@
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/vmalloc.h>
+#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>

diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c
index a087bf2..0a70334 100644
--- a/drivers/md/dm-stripe.c
+++ b/drivers/md/dm-stripe.c
@@ -7,6 +7,7 @@
#include <linux/device-mapper.h>

#include <linux/module.h>
+#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/blkdev.h>
#include <linux/bio.h>
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index af1fc3b..c961efd 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -7,6 +7,7 @@
#include "dm-thin-metadata.h"
#include "dm.h"

+#include <linux/kernel.h>
#include <linux/device-mapper.h>
#include <linux/dm-io.h>
#include <linux/dm-kcopyd.h>
--
1.7.4.4

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 01:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org