]> Pileus Git - ~andy/linux/blobdiff - include/linux/page-flags.h
pwm: Use pr_* functions in pwm-samsung.c file
[~andy/linux] / include / linux / page-flags.h
index e90a673be67e1eebb4c98ba30c198ede805dcb82..c88d2a9451af811bff67e3ee9c8d37c8ef691ef3 100644 (file)
@@ -6,6 +6,7 @@
 #define PAGE_FLAGS_H
 
 #include <linux/types.h>
+#include <linux/bug.h>
 #ifndef __GENERATING_BOUNDS_H
 #include <linux/mm_types.h>
 #include <generated/bounds.h>
@@ -414,11 +415,26 @@ static inline int PageTransHuge(struct page *page)
        return PageHead(page);
 }
 
+/*
+ * PageTransCompound returns true for both transparent huge pages
+ * and hugetlbfs pages, so it should only be called when it's known
+ * that hugetlbfs pages aren't involved.
+ */
 static inline int PageTransCompound(struct page *page)
 {
        return PageCompound(page);
 }
 
+/*
+ * PageTransTail returns true for both transparent huge pages
+ * and hugetlbfs pages, so it should only be called when it's known
+ * that hugetlbfs pages aren't involved.
+ */
+static inline int PageTransTail(struct page *page)
+{
+       return PageTail(page);
+}
+
 #else
 
 static inline int PageTransHuge(struct page *page)
@@ -430,6 +446,11 @@ static inline int PageTransCompound(struct page *page)
 {
        return 0;
 }
+
+static inline int PageTransTail(struct page *page)
+{
+       return 0;
+}
 #endif
 
 #ifdef CONFIG_MMU