Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2f66ea
)
Branch b1_6
author
yangsheng
<yangsheng>
Fri, 8 Aug 2008 07:37:17 +0000
(07:37 +0000)
committer
yangsheng
<yangsheng>
Fri, 8 Aug 2008 07:37:17 +0000
(07:37 +0000)
b=16059
i=johann, shadow
Fixed for ppc64 lack of PAGE_SHIFT defined.
lnet/include/libcfs/user-prim.h
patch
|
blob
|
history
diff --git
a/lnet/include/libcfs/user-prim.h
b/lnet/include/libcfs/user-prim.h
index
781e1e4
..
389483a
100644
(file)
--- a/
lnet/include/libcfs/user-prim.h
+++ b/
lnet/include/libcfs/user-prim.h
@@
-127,7
+127,9
@@
struct page {
typedef struct page cfs_page_t;
-#ifndef PAGE_SIZE
+/* ppc64 defined PAGE_SIZE but without PAGE_SHIFT
+ */
+#if !defined(PAGE_SHIFT) || !defined(PAGE_SIZE)
/* 4K */
#define CFS_PAGE_SHIFT 12