Skip to content

Commit

Permalink
Fix build due to 0c3ce2f50261cd2f654d931eeb933c370a3a7d7a
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-mnemonic committed Nov 22, 2024
1 parent dcbc3ee commit 9788753
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/mm/page_frag_cache.c b/mm/page_frag_cache.c
index 3f7a203d3..38b395810 100644
--- a/mm/page_frag_cache.c
+++ b/mm/page_frag_cache.c
@@ -23,7 +23,14 @@
static unsigned long encoded_page_create(struct page *page, unsigned int order,
bool pfmemalloc)
{
- BUILD_BUG_ON(PAGE_FRAG_CACHE_MAX_ORDER > PAGE_FRAG_CACHE_ORDER_MASK);
+// DEBUG
+#define XSTR(x) STR(x)
+#define STR(x) #x
+
+#pragma message "PAGE_FRAG_CACHE_MAX_ORDER = " XSTR(PAGE_FRAG_CACHE_MAX_ORDER)
+#pragma message "PAGE_FRAG_CACHE_ORDER_MASK = " XSTR(PAGE_FRAG_CACHE_ORDER_MASK)
+// DEBUG
+ //BUILD_BUG_ON(PAGE_FRAG_CACHE_MAX_ORDER > PAGE_FRAG_CACHE_ORDER_MASK);
BUILD_BUG_ON(PAGE_FRAG_CACHE_PFMEMALLOC_BIT >= PAGE_SIZE);

return (unsigned long)page_address(page) |

0 comments on commit 9788753

Please sign in to comment.