Message ID | 20250325121624.523258-33-guoren@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | rv64ilp32_abi: Build CONFIG_64BIT kernel-self with ILP32 ABI | expand |
Context | Check | Description |
---|---|---|
bjorn/pre-ci_am | success | Success |
bjorn/build-rv32-defconfig | fail | build-rv32-defconfig |
bjorn/build-rv64-clang-allmodconfig | fail | build-rv64-clang-allmodconfig |
bjorn/build-rv64-gcc-allmodconfig | fail | build-rv64-gcc-allmodconfig |
bjorn/build-rv64-nommu-k210-defconfig | success | build-rv64-nommu-k210-defconfig |
bjorn/build-rv64-nommu-k210-virt | success | build-rv64-nommu-k210-virt |
bjorn/checkpatch | warning | checkpatch |
bjorn/dtb-warn-rv64 | success | dtb-warn-rv64 |
bjorn/header-inline | success | header-inline |
bjorn/kdoc | success | kdoc |
bjorn/module-param | success | module-param |
bjorn/verify-fixes | success | verify-fixes |
bjorn/verify-signedoff | success | verify-signedoff |
diff --git a/include/linux/mm.h b/include/linux/mm.h index 7b1068ddcbb7..454fb8ca724c 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2058,7 +2058,7 @@ static inline long folio_nr_pages(const struct folio *folio) { if (!folio_test_large(folio)) return 1; -#ifdef CONFIG_64BIT +#if BITS_PER_LONG == 64 return folio->_folio_nr_pages; #else return 1L << (folio->_flags_1 & 0xff); @@ -2083,7 +2083,7 @@ static inline unsigned long compound_nr(struct page *page) if (!test_bit(PG_head, &folio->flags)) return 1; -#ifdef CONFIG_64BIT +#if BITS_PER_LONG == 64 return folio->_folio_nr_pages; #else return 1L << (folio->_flags_1 & 0xff); diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 6b27db7f9496..da3ba1a79ad5 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -370,7 +370,7 @@ struct folio { atomic_t _entire_mapcount; atomic_t _nr_pages_mapped; atomic_t _pincount; -#ifdef CONFIG_64BIT +#if BITS_PER_LONG == 64 unsigned int _folio_nr_pages; #endif /* private: the union with struct page is transitional */ diff --git a/mm/internal.h b/mm/internal.h index 109ef30fee11..c9372a8552ba 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -682,7 +682,7 @@ static inline void folio_set_order(struct folio *folio, unsigned int order) return; folio->_flags_1 = (folio->_flags_1 & ~0xffUL) | order; -#ifdef CONFIG_64BIT +#if BITS_PER_LONG == 64 folio->_folio_nr_pages = 1U << order; #endif }