Re: [PATCH] mm/memory_hotplug: Cache auto_movable stats to optimize online check

From: kernel test robot

Date: Sun Dec 07 2025 - 05:17:39 EST


Hi Swaraj,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 3cfeff1d2304237b1c14628d695a6df44daff48f]

url: https://github.com/intel-lab-lkp/linux/commits/Swaraj-Gaikwad/mm-memory_hotplug-Cache-auto_movable-stats-to-optimize-online-check/20251206-235737
base: 3cfeff1d2304237b1c14628d695a6df44daff48f
patch link: https://lore.kernel.org/r/20251206212507.135503-1-swarajgaikwad1925%40gmail.com
patch subject: [PATCH] mm/memory_hotplug: Cache auto_movable stats to optimize online check
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20251207/202512071758.SKaL9BlQ-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251207/202512071758.SKaL9BlQ-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/202512071758.SKaL9BlQ-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> mm/memory_hotplug.c:53:34: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct auto_movable_stats' [-Wtentative-definition-incomplete-type]
53 | static struct auto_movable_stats global_auto_movable_stats;
| ^
mm/memory_hotplug.c:53:15: note: forward declaration of 'struct auto_movable_stats'
53 | static struct auto_movable_stats global_auto_movable_stats;
| ^
1 warning generated.


vim +53 mm/memory_hotplug.c

52
> 53 static struct auto_movable_stats global_auto_movable_stats;
54

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