Re: [PATCH v2 12/13] mm: Add sysctl vm.compress-batching switch for compress batching during swapout.

From: kernel test robot
Date: Sun Nov 03 2024 - 05:26:39 EST


Hi Kanchana,

kernel test robot noticed the following build errors:

[auto build test ERROR on 5c4cf96cd70230100b5d396d45a5c9a332539d19]

url: https://github.com/intel-lab-lkp/linux/commits/Kanchana-P-Sridhar/crypto-acomp-Define-two-new-interfaces-for-compress-decompress-batching/20241103-112337
base: 5c4cf96cd70230100b5d396d45a5c9a332539d19
patch link: https://lore.kernel.org/r/20241103032111.333282-13-kanchana.p.sridhar%40intel.com
patch subject: [PATCH v2 12/13] mm: Add sysctl vm.compress-batching switch for compress batching during swapout.
config: i386-buildonly-randconfig-002-20241103 (https://download.01.org/0day-ci/archive/20241103/202411031803.xNibgI5N-lkp@xxxxxxxxx/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241103/202411031803.xNibgI5N-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411031803.xNibgI5N-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from mm/swap.c:17:
In file included from include/linux/mm.h:2213:
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
In file included from mm/swap.c:26:
include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages);
| ~~~~~~~~~~~ ^ ~~~
include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
49 | NR_ZONE_LRU_BASE + lru, nr_pages);
| ~~~~~~~~~~~~~~~~ ^ ~~~
>> mm/swap.c:51:14: error: expected identifier or '('
51 | unsigned int compress_batching;
| ^
include/linux/mm.h:88:27: note: expanded from macro 'compress_batching'
88 | #define compress_batching 0
| ^
>> mm/swap.c:1082:20: error: expression is not assignable
1082 | compress_batching = 0;
| ~~~~~~~~~~~~~~~~~ ^
3 warnings and 2 errors generated.


vim +51 mm/swap.c

49
50 /* Enable/disable compress batching during swapout. */
> 51 unsigned int compress_batching;
52

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