summaryrefslogtreecommitdiffstats
path: root/fs/qnx4
diff options
context:
space:
mode:
Diffstat (limited to 'fs/qnx4')
-rw-r--r--fs/qnx4/Makefile5
-rw-r--r--fs/qnx4/inode.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/fs/qnx4/Makefile b/fs/qnx4/Makefile
index 943eb1223..a3a3c5a7d 100644
--- a/fs/qnx4/Makefile
+++ b/fs/qnx4/Makefile
@@ -8,7 +8,8 @@
# Note 2! The CFLAGS definitions are now in the main makefile...
O_TARGET := qnx4.o
-O_OBJS := inode.o dir.o namei.o file.o bitmap.o truncate.o fsync.o
-M_OBJS := $(O_TARGET)
+
+obj-y := inode.o dir.o namei.o file.o bitmap.o truncate.o fsync.o
+obj-m := $(O_TARGET)
include $(TOPDIR)/Rules.make
diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c
index 45a945209..c40f488e5 100644
--- a/fs/qnx4/inode.c
+++ b/fs/qnx4/inode.c
@@ -426,7 +426,7 @@ static int qnx4_readpage(struct file *file, struct page *page)
static int qnx4_prepare_write(struct file *file, struct page *page, unsigned from, unsigned to)
{
return cont_prepare_write(page,from,to,qnx4_get_block,
- &((struct inode*)page->mapping->host)->u.qnx4_i.mmu_private);
+ &page->mapping->host->u.qnx4_i.mmu_private);
}
static int qnx4_bmap(struct address_space *mapping, long block)
{