linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-new 305/305] mm/zblock.h:21:2: warning: #warning This PAGE_SIZE is not quite supported yet
@ 2025-07-06 22:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-06 22:13 UTC (permalink / raw)
  To: Vitaly Wool
  Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List,
	Igor Belousov

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head:   15faa166415229365c95213d236c96d189b0153e
commit: 380fc659823f83ca2f89aa27eca81d7a65d666f6 [305/305] mm: add zblock allocator
config: openrisc-allyesconfig (https://download.01.org/0day-ci/archive/20250707/202507070438.bBff5GNo-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250707/202507070438.bBff5GNo-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507070438.bBff5GNo-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from mm/zblock.c:29:
>> mm/zblock.h:21:2: warning: #warning This PAGE_SIZE is not quite supported yet [-Wcpp]
      21 | #warning This PAGE_SIZE is not quite supported yet
         |  ^~~~~~~
   In file included from <command-line>:
   In function 'create_rbtree',
       inlined from 'init_zblock' at mm/zblock.c:450:12:
   include/linux/compiler_types.h:568:45: error: call to '__compiletime_assert_310' declared with attribute error: BUILD_BUG_ON failed: ARRAY_SIZE(block_desc) > MAX_TABLE_SIZE
     568 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                             ^
   include/linux/compiler_types.h:549:25: note: in definition of macro '__compiletime_assert'
     549 |                         prefix ## suffix();                             \
         |                         ^~~~~~
   include/linux/compiler_types.h:568:9: note: in expansion of macro '_compiletime_assert'
     568 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   mm/zblock.c:415:9: note: in expansion of macro 'BUILD_BUG_ON'
     415 |         BUILD_BUG_ON(ARRAY_SIZE(block_desc) > MAX_TABLE_SIZE);
         |         ^~~~~~~~~~~~


vim +21 mm/zblock.h

    13	
    14	#if PAGE_SIZE == 0x1000
    15	/* max 64 slots per block, max table size 64 */
    16	#define SLOT_BITS 6
    17	#elif PAGE_SIZE == 0x4000
    18	/* max 256 slots per block, max table size 64 */
    19	#define SLOT_BITS 8
    20	#else
  > 21	#warning This PAGE_SIZE is not quite supported yet
    22	#define SLOT_BITS 8
    23	#endif
    24	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-06 22:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-06 22:13 [akpm-mm:mm-new 305/305] mm/zblock.h:21:2: warning: #warning This PAGE_SIZE is not quite supported yet kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).